diff options
| author | dianlujitao <dianlujitao@lineageos.org> | 2019-02-17 10:55:53 +0800 |
|---|---|---|
| committer | dianlujitao <dianlujitao@lineageos.org> | 2019-06-16 21:00:59 +0800 |
| commit | ea5abd34aeade0b4a74a6186159637f028d28b0e (patch) | |
| tree | 30ff26506da99e51764f8a026f61df17996cbef4 | |
| parent | f8ee6f5160bd1f9b8854a80d150b87cfa8a49347 (diff) | |
op3: Rewrite livedisplay HAL sepolicy
Change-Id: Ib322e9ff67700a57a98c9635978773fec90ddbf8
| -rw-r--r-- | sepolicy/file.te | 1 | ||||
| -rw-r--r-- | sepolicy/file_contexts | 6 | ||||
| -rw-r--r-- | sepolicy/genfs_contexts | 4 | ||||
| -rw-r--r-- | sepolicy/hal_lineage_livedisplay_default.te | 1 | ||||
| -rw-r--r-- | sepolicy/hal_lineage_livedisplay_qti.te | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/sepolicy/file.te b/sepolicy/file.te index b81049cd..11e30ffe 100644 --- a/sepolicy/file.te +++ b/sepolicy/file.te @@ -1,4 +1,3 @@ type debugfs_rmt_storage, debugfs_type, fs_type; type proc_touchpanel, fs_type, proc_type; type sysfs_fpc, sysfs_type, fs_type; -type sysfs_livedisplay, sysfs_type, fs_type; diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index fe5eeee5..8dbf9da6 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -7,10 +7,6 @@ # Charger /dev/dash u:object_r:dash_device:s0 -# Display -/sys/devices/virtual/graphics/fb0/dci_p3 u:object_r:sysfs_livedisplay:s0 -/sys/devices/virtual/graphics/fb0/srgb u:object_r:sysfs_livedisplay:s0 - # Fingerprint /dev/fpc1020 u:object_r:fpc1020_device:s0 /data/fpc(/.*)? u:object_r:fingerprintd_data_file:s0 @@ -27,7 +23,7 @@ /sys/devices/soc/leds-qpnp-[0-9]+/leds(/.*)? u:object_r:sysfs_leds:s0 # Lineage hardware -/(vendor|system/vendor)/bin/hw/vendor\.lineage\.livedisplay@2\.0-service\.oneplus3 u:object_r:hal_lineage_livedisplay_default_exec:s0 +/(vendor|system/vendor)/bin/hw/vendor\.lineage\.livedisplay@2\.0-service\.oneplus3 u:object_r:hal_lineage_livedisplay_qti_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch@1\.0-service\.oneplus3 u:object_r:hal_lineage_touch_default_exec:s0 # OTA diff --git a/sepolicy/genfs_contexts b/sepolicy/genfs_contexts index 116f4183..9902139d 100644 --- a/sepolicy/genfs_contexts +++ b/sepolicy/genfs_contexts @@ -1,6 +1,10 @@ # Fingerprint genfscon sysfs /devices/soc/soc:fpc_fpc1020 u:object_r:sysfs_fpc:s0 +# LiveDisplay +genfscon sysfs /devices/virtual/graphics/fb0/dci_p3 u:object_r:sysfs_livedisplay_tuneable:s0 +genfscon sysfs /devices/virtual/graphics/fb0/srgb u:object_r:sysfs_livedisplay_tuneable:s0 + # Ril genfscon debugfs /rmt_storage u:object_r:debugfs_rmt_storage:s0 diff --git a/sepolicy/hal_lineage_livedisplay_default.te b/sepolicy/hal_lineage_livedisplay_default.te deleted file mode 100644 index 0e6f488e..00000000 --- a/sepolicy/hal_lineage_livedisplay_default.te +++ /dev/null @@ -1 +0,0 @@ -allow hal_lineage_livedisplay_default sysfs_livedisplay:file rw_file_perms; diff --git a/sepolicy/hal_lineage_livedisplay_qti.te b/sepolicy/hal_lineage_livedisplay_qti.te new file mode 100644 index 00000000..78a0dd34 --- /dev/null +++ b/sepolicy/hal_lineage_livedisplay_qti.te @@ -0,0 +1,2 @@ +# Grant access over LiveDisplay tuneables +allow hal_lineage_livedisplay_qti sysfs_livedisplay_tuneable:file rw_file_perms; |
