android开发分享android 10 system app 读取sysfs_leds avc修改

/device/qcom/sepolicy/generic/vendor/common/system_app.te+allow system_app sysfs_leds:dir r_dir_perms;+allow system_app sysfs_leds:file rw_file_perms;+allow system_app sysfs_leds:lnk_file read;device/qcom/sepolicy/generic/vendor/common/genfs_contexts+

/device/qcom/sepolicy/generic/vendor/common/system_app.te

+allow system_app sysfs_leds:dir r_dir_perms; +allow system_app sysfs_leds:file rw_file_perms; +allow system_app sysfs_leds:lnk_file read;

device/qcom/sepolicy/generic/vendor/common/genfs_contexts

+genfscon sysfs /devices/platform/soc/4a84000.i2c/i2c-0/0-0045/leds               u:object_r:sysfs_leds:s0  +genfscon sysfs /devices/platform/soc/soc:gpio-leds/leds                          u:object_r:sysfs_leds:s

/system/sepolicy/prebuilts/api/29.0/private/coredomain.te

@@ -11,6 +11,8 @@ neverallow { # generic access to sysfs_type -ueventd       -vold  +    -system_app } sysfs_leds:file *; ') 

/system/sepolicy/private/coredomain.te

@@ -11,6 +11,8 @@ neverallow { # generic access to sysfs_type -ueventd       -vold  + # meig:jicong.wang add for cit +    -system_app } sysfs_leds:file *; ') 

本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。

ctvol管理联系方式QQ:251552304

本文章地址:https://www.ctvol.com/addevelopment/894363.html

(0)
上一篇 2021年10月21日
下一篇 2021年10月21日

精彩推荐