mirror of
https://github.com/S3NEO/android_device_samsung_msm8226-common.git
synced 2024-11-06 21:55:45 +00:00
msm8974-common: sepolicy: More sysfs_graphics, resolve denials
* avc: denied { setattr } for name="brightness" dev="sysfs" ino=12913 scontext=u:r:init:s0 tcontext=u:object_r:sysfs_graphics:s0 tclass=file permissive=1 * avc: denied { read } for name="window_type" dev="sysfs" ino=12710 scontext=u:r:init:s0 tcontext=u:object_r:sysfs_graphics:s0 tclass=file permissive=1 * avc: denied { read } for name="window_type" dev="sysfs" ino=12710 scontext=u:r:hal_sensors_default:s0 tcontext=u:object_r:sysfs_graphics:s0 tclass=file permissive=0 * avc: denied { search } for name="panel" dev="sysfs" ino=12358 scontext=u:r:hal_sensors_default:s0 tcontext=u:object_r:sysfs_graphics:s0 tclass=dir permissive=0 Change-Id: I8597d7be6217816924a8fee854341e4f2fb18562
This commit is contained in:
parent
241d260828
commit
4cea2fcca2
3 changed files with 14 additions and 1 deletions
|
@ -37,5 +37,11 @@
|
|||
/sys/module/dhd/parameters/firmware_path u:object_r:sysfs_wifi_writeable:s0
|
||||
/sys/module/dhd/parameters/nvram_path u:object_r:sysfs_wifi_writeable:s0
|
||||
|
||||
# sysfs - graphics/panel
|
||||
/sys/class/mhl(/.*)? u:object_r:sysfs_graphics:s0
|
||||
/sys/devices/mdp\.[0-9](/.*)? u:object_r:sysfs_graphics:s0
|
||||
/sys/devices/virtual/graphics/fb0/csc_cfg u:object_r:sysfs_graphics:s0
|
||||
/sys/devices/virtual/lcd/panel(/.*)? u:object_r:sysfs_graphics:s0
|
||||
|
||||
# sysfs - mdnie
|
||||
/sys/devices/virtual/mdnie/mdnie(/.*)? u:object_r:sysfs_mdnie:s0
|
||||
|
|
2
sepolicy/common/hal_sensors_default.te
Normal file
2
sepolicy/common/hal_sensors_default.te
Normal file
|
@ -0,0 +1,2 @@
|
|||
allow hal_sensors_default sysfs_graphics:dir search;
|
||||
allow hal_sensors_default sysfs_graphics:file r_file_perms;
|
|
@ -1 +1,6 @@
|
|||
allow init sysfs_mdnie:file setattr;
|
||||
allow init sysfs_graphics:file r_file_perms;
|
||||
|
||||
allow init {
|
||||
sysfs_graphics
|
||||
sysfs_mdnie
|
||||
}:file setattr;
|
||||
|
|
Loading…
Reference in a new issue