gts3l-common: sepolicy: Add touch HAL policies

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I8f6f3757d7e16080ddf2e7b4dbb977912fe38a17
This commit is contained in:
Deokgyu Yang 2022-02-07 23:42:30 +09:00
parent 57ba7cff63
commit 5307ee113a
5 changed files with 13 additions and 0 deletions

View file

@ -55,4 +55,5 @@ type sysfs_sec_keypad, fs_type, sysfs_type;
type sysfs_sec_switch, 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;

View file

@ -178,6 +178,7 @@
/(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\.fastcharge@1\.0-service\.samsung u:object_r:hal_lineage_fastcharge_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
@ -195,6 +196,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

View 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 };

View file

@ -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 };

View file

@ -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;