diff --git a/sepolicy/common/file_contexts b/sepolicy/common/file_contexts index b844035..2ec0e36 100644 --- a/sepolicy/common/file_contexts +++ b/sepolicy/common/file_contexts @@ -37,9 +37,5 @@ /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 -# mdnie sysfs -/sys/devices/virtual/lcd/panel/panel/auto_brightness 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 +# sysfs - mdnie +/sys/devices/virtual/mdnie/mdnie(/.*)? u:object_r:sysfs_mdnie:s0 diff --git a/sepolicy/common/init.te b/sepolicy/common/init.te new file mode 100644 index 0000000..28fce7a --- /dev/null +++ b/sepolicy/common/init.te @@ -0,0 +1 @@ +allow init sysfs_mdnie:file setattr; diff --git a/sepolicy/common/system_app.te b/sepolicy/common/system_app.te index 5bce4cf..9aa08bc 100644 --- a/sepolicy/common/system_app.te +++ b/sepolicy/common/system_app.te @@ -1 +1,2 @@ +allow system_app sysfs_mdnie:dir search; allow system_app sysfs_mdnie:file rw_file_perms;