sm8150-common: sepolicy: Label some more fod sysfs

Change-Id: I2e5be11f196bc069e44079663a6afb1be13aa0bb
This commit is contained in:
Scott Warner 2019-07-10 12:59:08 -04:00 committed by LuK1337
parent b5aef97de0
commit d48a4f3691
3 changed files with 8 additions and 1 deletions

View File

@ -7,3 +7,5 @@ genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1
genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/dim_alpha u:object_r:sysfs_fod:s0 genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/dim_alpha u:object_r:sysfs_fod:s0
genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/op_friginer_print_hbm u:object_r:sysfs_fod:s0 genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/op_friginer_print_hbm u:object_r:sysfs_fod:s0
genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/notify_aod u:object_r:sysfs_aod:s0 genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/notify_aod u:object_r:sysfs_aod:s0
genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/notify_dim u:object_r:sysfs_fod:s0
genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/notify_fppress u:object_r:sysfs_fod:s0

View File

@ -4,5 +4,6 @@ hal_server_domain(hal_display_default, hal_display)
type hal_display_default_exec, exec_type, vendor_file_type, file_type; type hal_display_default_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_display_default) init_daemon_domain(hal_display_default)
# Allow hal_display_default to read/write AOD sysfs nodes # Allow hal_display_default to read/write aod/fod sysfs nodes
allow hal_display_default sysfs_aod:file rw_file_perms; allow hal_display_default sysfs_aod:file rw_file_perms;
allow hal_display_default sysfs_fod:file rw_file_perms;

View File

@ -18,3 +18,7 @@ allow hal_fingerprint_default tee_device:chr_file rw_file_perms;
# Allow hal_fingerprint_default to read and write to proc_touchpanel # Allow hal_fingerprint_default to read and write to proc_touchpanel
allow hal_fingerprint_default proc_touchpanel:dir search; allow hal_fingerprint_default proc_touchpanel:dir search;
allow hal_fingerprint_default proc_touchpanel:file rw_file_perms; allow hal_fingerprint_default proc_touchpanel:file rw_file_perms;
# Allow hal_fingerprint_default access to sysfs nodes
allow hal_fingerprint_default sysfs_fod:file rw_file_perms;
allow hal_fingerprint_default sysfs_aod:file r_file_perms;