gts3l-common: sepolicy: Add touch HAL policies
Signed-off-by: Deokgyu Yang <secugyu@gmail.com> Change-Id: I8f6f3757d7e16080ddf2e7b4dbb977912fe38a17
This commit is contained in:
parent
5f43768923
commit
6f1d7bef0b
5 changed files with 13 additions and 0 deletions
|
@ -54,4 +54,5 @@ type sysfs_mdnie_writable, fs_type, sysfs_type;
|
|||
type sysfs_sec_keypad, fs_type, sysfs_type;
|
||||
type sysfs_tsp, fs_type, sysfs_type;
|
||||
type sysfs_wifi, fs_type, sysfs_type;
|
||||
type sysfs_touchkey, fs_type, sysfs_type;
|
||||
type dsp_file, fs_type, contextmount_type;
|
||||
|
|
|
@ -177,6 +177,7 @@
|
|||
/(vendor|system/vendor)/bin/hw/android\.hardware\.light@2\.0-service\.samsung u:object_r:hal_light_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.usb@1\.2-service-qti u:object_r:hal_usb_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.livedisplay@2\.0-service\.gts3l u:object_r:hal_lineage_livedisplay_sysfs_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch@1\.0-service\.gts3l u:object_r:hal_lineage_touch_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/vendor\.samsung\.hardware\.miscpower@1\.0-service u:object_r:hal_power_default_exec:s0
|
||||
|
||||
# Rootfs
|
||||
|
@ -194,6 +195,7 @@
|
|||
/sys/class/power_supply/battery(/.*)? -- u:object_r:sysfs_batteryinfo:s0
|
||||
/sys/class/rfkill/rfkill[0-9]+/state -- u:object_r:sysfs_bluetooth_writable:s0
|
||||
/sys/class/rfkill/rfkill[0-9]+/type -- u:object_r:sysfs_bluetooth_writable:s0
|
||||
/sys/class/sec/sec_touchkey(/.*)? u:object_r:sysfs_touchkey:s0
|
||||
/sys/devices/platform/soc/soc:battery/power_supply(/.*)? -- u:object_r:sysfs_batteryinfo:s0
|
||||
/sys/devices/virtual/audio/earjack/state u:object_r:sysfs_audio_writable:s0
|
||||
/sys/devices/virtual/camera(/.*)? u:object_r:sysfs_camera_writable:s0
|
||||
|
|
5
sepolicy/hal_lineage_touch_default.te
Normal file
5
sepolicy/hal_lineage_touch_default.te
Normal file
|
@ -0,0 +1,5 @@
|
|||
allow hal_lineage_touch_default sysfs_touchkey:dir search;
|
||||
allow hal_lineage_touch_default sysfs_touchkey:lnk_file read;
|
||||
allow hal_lineage_touch_default sysfs_touchkey:file { open read write };
|
||||
|
||||
allow hal_lineage_touch_default sysfs:file { open read write };
|
|
@ -9,4 +9,6 @@ allow hal_power_default sysfs_tsp:dir r_dir_perms;
|
|||
allow hal_power_default sysfs_tsp:file rw_file_perms;
|
||||
allow hal_power_default sysfs_tsp:lnk_file read;
|
||||
|
||||
allow hal_power_default sysfs_touchkey:lnk_file read;
|
||||
|
||||
allow hal_power_default sysfs:file { open read write };
|
||||
|
|
|
@ -28,4 +28,7 @@ allow init self:netlink_socket { create read bind };
|
|||
allow init self:tcp_socket { bind create };
|
||||
|
||||
allow init sysfs:dir create;
|
||||
|
||||
allow init sysfs:file { open setattr write };
|
||||
|
||||
allow init sysfs_touchkey:lnk_file read;
|
||||
|
|
Loading…
Reference in a new issue