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

Android's use of DAC

In the Android sandbox model, every application runs as its own UID. This means that each app can separate its stored data from one another. The user and group are set to the UID and GID of that application, so no app can access the private files of an application without the application explicitly performing chmod on its objects. Also, applications in Android cannot have capabilities, so we don't have to worry about capabilities such as CAP_SYS_PTRACE, which is the ability to debug another application. In Android, in a perfect world, only system components run with privileges, and applications don't accidentally chmod private files for all to read. This issue was not corrected by the current AOSP SELinux policy due to app compatibility, but could be closed with SELinux. The proper way to share data between applications on Android is via binder, and sharing file descriptors. For smaller amounts of data, the provider model suffices.

主站蜘蛛池模板: 乌海市| 天峻县| 余庆县| 南宫市| 增城市| 子长县| 罗定市| 长阳| 江北区| 潼关县| 鲁山县| 师宗县| 高州市| 汪清县| 锦屏县| 洪洞县| 芜湖市| 甘洛县| 赤城县| 扶余县| 井研县| 宜章县| 黑河市| 嵊泗县| 牡丹江市| 邹平县| 黑河市| 和林格尔县| 甘泉县| 兴义市| 天长市| 磐石市| 祁阳县| 民乐县| 长葛市| 共和县| 天台县| 乐亭县| 荔浦县| 西充县| 萨迦县|