Browse Source

msm8976-common: hal_lineage_livedisplay_default -> hal_lineage_livedisplay_sysfs

Change-Id: If8954290c41913b7453a1cba4d67f7a63d08d2dd
changes/91/250291/2
LuK1337 3 years ago
parent
commit
a7e7fcdd35
  1. 2
      sepolicy/file_contexts
  2. 2
      sepolicy/hal_lineage_livedisplay_default.te
  3. 7
      sepolicy/hal_lineage_livedisplay_sysfs.te

2
sepolicy/file_contexts

@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
/sys/devices/virtual/sec/sec_touchkey/brightness u:object_r:sysfs_leds:s0
# LiveDisplay
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.livedisplay@2\.0-service\.samsung-qcom u:object_r:hal_lineage_livedisplay_default_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.livedisplay@2\.0-service\.samsung-qcom u:object_r:hal_lineage_livedisplay_sysfs_exec:s0
# mDNIe
/sys/devices/virtual/mdnie/mdnie(/.*)? u:object_r:sysfs_mdnie:s0

2
sepolicy/hal_lineage_livedisplay_default.te

@ -1,2 +0,0 @@ @@ -1,2 +0,0 @@
allow hal_lineage_livedisplay_default { sysfs_graphics sysfs_mdnie }:dir search;
allow hal_lineage_livedisplay_default { sysfs_graphics sysfs_mdnie }:file rw_file_perms;

7
sepolicy/hal_lineage_livedisplay_sysfs.te

@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
# Allow LiveDisplay to store files under /data/vendor/display and access them
allow hal_lineage_livedisplay_sysfs display_vendor_data_file:dir rw_dir_perms;
allow hal_lineage_livedisplay_sysfs display_vendor_data_file:file create_file_perms;
# Allow LiveDisplay to read and write to files in sysfs_graphics, sysfs_mdnie
allow hal_lineage_livedisplay_sysfs { sysfs_graphics sysfs_mdnie }:dir search;
allow hal_lineage_livedisplay_sysfs { sysfs_graphics sysfs_mdnie }:file rw_file_perms;
Loading…
Cancel
Save