mirror of
https://github.com/S3NEO/android_device_samsung_msm8226-common.git
synced 2024-11-06 21:55:45 +00:00
msm8226-common: sepolicy: Label sysfs_msm_perf, resolve denials
* avc: denied { write } for name="suspend_enabled" dev="sysfs" ino=10567 scontext=u:r:init:s0 tcontext=u:object_r:sysfs_msm_perf:s0 tclass=file permissive=1 * avc: denied { open } for name="suspend_enabled" dev="sysfs" ino=10567 scontext=u:r:init:s0 tcontext=u:object_r:sysfs_msm_perf:s0 tclass=file permissive=1 Change-Id: I23d69f0442d126b2a6ac3aaeda5032856a4483f2
This commit is contained in:
parent
3d54b00d4e
commit
5bc5db2267
2 changed files with 8 additions and 2 deletions
|
@ -48,6 +48,9 @@
|
|||
# sysfs - block/storage
|
||||
/sys/devices/msm_sdcc\.[0-9]/mmc_host/mmc[0-9]/mmc[0-9]:[0-9]+/block/mmcblk[0-9]/stat u:object_r:sysfs_disk_stat:s0
|
||||
|
||||
# sysfs - cpu/perf
|
||||
/sys/module/msm_pm/modes/cpu[0-9](/.*)? u:object_r:sysfs_msm_perf:s0
|
||||
|
||||
# sysfs - graphics/panel
|
||||
/sys/class/mhl(/.*)? u:object_r:sysfs_graphics:s0
|
||||
/sys/devices/mdp\.[0-9](/.*)? u:object_r:sysfs_graphics:s0
|
||||
|
|
|
@ -7,8 +7,6 @@ allow init sysfs_input:file rw_file_perms;
|
|||
|
||||
allow init sysfs_graphics:file r_file_perms;
|
||||
|
||||
allow init sysfs_sec_key:file w_file_perms;
|
||||
|
||||
allow init {
|
||||
sysfs_batteryinfo
|
||||
sysfs_graphics
|
||||
|
@ -26,3 +24,8 @@ allow init {
|
|||
sysfs_sec_touchkey
|
||||
sysfs_sec_tsp
|
||||
}:file setattr;
|
||||
|
||||
allow init {
|
||||
sysfs_msm_perf
|
||||
sysfs_sec_key
|
||||
}:file w_file_perms;
|
||||
|
|
Loading…
Reference in a new issue