msm8974-common: sepolicy: Update sysfs_mdnie, resolve denials
* avc: denied { setattr } for name="scenario" dev="sysfs" ino=12753 scontext=u:r:init:s0 tcontext=u:object_r:sysfs_mdnie:s0 tclass=file permissive=0 * avc: denied { search } for name="mdnie" dev="sysfs" ino=12743i scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs_mdnie:s0 tclass=dir permissive=0 Change-Id: I4a0530136d7d1e6ee8ede0733e70de813382372b
This commit is contained in:
parent
828c5416ba
commit
241d260828
@ -37,9 +37,5 @@
|
|||||||
/sys/module/dhd/parameters/firmware_path u:object_r:sysfs_wifi_writeable:s0
|
/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
|
/sys/module/dhd/parameters/nvram_path u:object_r:sysfs_wifi_writeable:s0
|
||||||
|
|
||||||
# mdnie sysfs
|
# sysfs - mdnie
|
||||||
/sys/devices/virtual/lcd/panel/panel/auto_brightness u:object_r:sysfs_mdnie:s0
|
/sys/devices/virtual/mdnie/mdnie(/.*)? u:object_r:sysfs_mdnie:s0
|
||||||
/sys/devices/virtual/mdnie/mdnie/accessibility u:object_r:sysfs_mdnie:s0
|
|
||||||
/sys/devices/virtual/mdnie/mdnie/mode u:object_r:sysfs_mdnie:s0
|
|
||||||
/sys/devices/virtual/mdnie/mdnie/outdoor u:object_r:sysfs_mdnie:s0
|
|
||||||
/sys/devices/virtual/mdnie/mdnie/scenario u:object_r:sysfs_mdnie:s0
|
|
||||||
|
1
sepolicy/common/init.te
Normal file
1
sepolicy/common/init.te
Normal file
@ -0,0 +1 @@
|
|||||||
|
allow init sysfs_mdnie:file setattr;
|
@ -1 +1,2 @@
|
|||||||
|
allow system_app sysfs_mdnie:dir search;
|
||||||
allow system_app sysfs_mdnie:file rw_file_perms;
|
allow system_app sysfs_mdnie:file rw_file_perms;
|
||||||
|
Loading…
Reference in New Issue
Block a user