官术网_书友最值得收藏!

The security model of Firefox OS

In Firefox OS, each application runs in an iframe with superpowers; hence, apps that run on Gecko run on a separate process that is a child process of the B2G system process. Due to this, a malicious application cannot disturb Gaia or other applications. Access to the underlying hardware is available only via the WebAPIs, which themselves are divided into different levels of permissions: Hosted (Web), Privileged, and Certified.

Each Firefox OS application has a manifest file that contains the details of the application. The developer has to declare the permissions for the use of the WebAPIs in the manifest file. Every application that runs in Firefox OS runs in a sandboxed environment. This means that the data generated by the application is sandboxed as well, and hence the data of one application cannot be accessed by another application. The following illustration will help you grasp the preceding discussion of application sandboxing:

The security model of Firefox OS

Even permissions from different websites are sandboxed on Firefox OS. For example, if an application uses OAuth to authenticate its users, then another app which uses a similar OAuth mechanism will ask for the login credentials again, even when you have used the login credentials in one application. This is because both applications are running in different sandboxes separately from one another, and the cookies of one application cannot be accessed by another application.

Don't worry if the concepts of the manifest file and the permissions levels are not clear yet; we will cover these topics in depth in Chapter 3, Getting Your Hands Dirty: Firefox OS Apps. Right now, you can just think of them as features that contribute to the application security in Firefox OS.

Firefox OS pays great attention to the user's data security as well. There is a setting called Do Not Track that helps to protect a user's privacy when browsing the Internet. The apps run in a sandboxed mode as described earlier, and once a user uninstalls an application, all the data associated with the application, such as cookies, AppCache, Local Storage, and IndexedDB, is also permanently deleted.

主站蜘蛛池模板: 嘉兴市| 陈巴尔虎旗| 凭祥市| 迁安市| 左云县| 离岛区| 健康| 巩留县| 那坡县| 通城县| 南皮县| 临高县| 广饶县| 博野县| 台山市| 香港| 准格尔旗| 渭南市| 肇源县| 綦江县| 宝应县| 来宾市| 察雅县| 嘉定区| 保康县| 三台县| 大新县| 威海市| 镇平县| 澄迈县| 银川市| 梅河口市| 上蔡县| 红河县| 区。| 泸水县| 两当县| 涪陵区| 潼南县| 遂溪县| 宁化县|