Introduction to WebVM

This article firstly post to my QQ Zone. You can visit http://user.qzone.qq.com/457283 to get more blog.

 

E-mail: linuxemacs <at> gmail dot com


What is WebVM

WebVM is a cross platform browser plugin(similar to Google Gear) that provides device API with security framework aimed at enabling new services on mobile devices. WebVM device APIs can be implemented by Java or native C/C++ modules.

 

How does WebVM work

WebVM is a portable browser plugin, deployed as an extra component to the browser. WebVM must be embedded at manufacture to provide a functional Web experience to rival that of native applications. WebVM abstract away differences between NAPI(WebKit) & ActiveX(Internet Explorer) browser interfaces.
WebVM is able to securely provide devices implemented in either Java or native C/C++ modules as a Javascript scriptable object for Web developers. WebVM incorporates a security framework supporting policies base on open standards.

 

The below diagram is the framework of WebVM. The WebVM is a proxy layer between Browser and Native.

图片


WebVM Configuration

home:

Home directory/namespace of WebVM
store.temp:

Temporary directory/storage
store.persistent:

Persistent storage
store.security:

Security policy storage
java.vm:

The Java VM provider
java.vm.nOptions:

The number of additional VM options
java.vm.option.x:

Additional VM options. The x is the number of arguments.
java.classfile.version:

Java class file major.minor version
java.class.path:

The default java classpath to execute WebVM modules

 

WebVM Security Policy File

<!-- Defines a set of security policy -->

<policy-set combine="my-marching-target">
        <!-- Defines my-application access policy -->
        <policy combine="my-application" description="Trust Application">
                <!-- Defines target information -->
                <target>
                        <subject>
                                <subject-match attr="uri.host" match="*.xxx.com"/>
                        </subject>
                </target>
                <!-- Defines rules -->
                <rule effect="deny">
                        <condition>
                                <resource-match attr="device-cap" match="test.deny"/>
                       </condition>
                </rule>
        </policy>
</policy-set>

Hacking in WebVM Framework

Because the EULA License don't allow user to reverse, decompile and disassemble the binary file. So i ignore this section.


Reference resource

If you are interest in WebVM, you can get more information from WebVM website(http://webvm.net).

 

~~~ END ~~~

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值