SELinux: Remove ir things and tiny clean up

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Iffe986d9b385e973919b690da95221395f031819
This commit is contained in:
Deokgyu Yang 2021-05-13 16:47:15 +09:00
parent 393b892d00
commit 8cc38fc81e
3 changed files with 7 additions and 14 deletions

View file

@ -1,4 +1,3 @@
type captouch_device, dev_type;
type lirc_device, dev_type;
type sound_device, dev_type;
type sysmatdrv_device, dev_type;

View file

@ -1,7 +1,6 @@
# Devices
/dev/captouch u:object_r:captouch_device:s0
/dev/elliptic(.*)? u:object_r:sound_device:s0
/dev/lirc[0-9]* u:object_r:lirc_device:s0
/dev/pn548 u:object_r:nfc_device:s0
/dev/sysmatdrv u:object_r:sysmatdrv_device:s0
@ -44,17 +43,8 @@
/(vendor|system/vendor)/bin/readmac u:object_r:readmac_exec:s0
# HALs
/(vendor|system/vendor)/bin/hw/android\.hardware\.drm@1\.1-service\.clearkey u:object_r:hal_drm_clearkey_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.drm@1\.1-service\.widevine u:object_r:hal_drm_widevine_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.ir@1\.0-service\.samsung u:object_r:hal_ir_default_exec:s0
/(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/vendor\.lineage\.touch@1\.0-service\.samsung u:object_r:hal_lineage_touch_default_exec:s0
# Shell scripts
/(vendor|system/vendor)/bin/init\.panel\.sh u:object_r:init_panel_exec:s0
/(vendor|system/vendor)/bin/init\.tfa\.sh u:object_r:init_tfa_exec:s0
# HALs
/(vendor|system/vendor)/bin/hw/android\.hardware\.drm@1\.1-service\.clearkey u:object_r:hal_drm_clearkey_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.drm@1\.1-service\.widevine u:object_r:hal_drm_widevine_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.fingerprint@2\.1-service\.samsung u:object_r:hal_fingerprint_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.health@2\.0-service\.samsung u:object_r:hal_health_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.keymaster@4\.0-service\.samsung u:object_r:hal_keymaster_default_exec:s0
@ -63,3 +53,8 @@
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.livedisplay@2\.0-service\.samsung-qcom u:object_r:hal_lineage_livedisplay_sysfs_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.samsung\.hardware\.camera\.provider@3\.0-service u:object_r:hal_camera_default_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.samsung\.hardware\.miscpower@2\.0-service u:object_r:hal_power_default_exec:s0
# Shell scripts
/(vendor|system/vendor)/bin/init\.panel\.sh u:object_r:init_panel_exec:s0
/(vendor|system/vendor)/bin/init\.tfa\.sh u:object_r:init_tfa_exec:s0

View file

@ -1 +0,0 @@
allow hal_ir_default lirc_device:chr_file rw_file_perms;