diff options
-rw-r--r-- | legacy/vendor/common/file_contexts | 3 | ||||
-rw-r--r-- | legacy/vendor/common/hal_graphics_composer.te | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/legacy/vendor/common/file_contexts b/legacy/vendor/common/file_contexts index fd9e83d8..ab7e4f44 100644 --- a/legacy/vendor/common/file_contexts +++ b/legacy/vendor/common/file_contexts @@ -435,6 +435,9 @@ /sys/devices/virtual/rotator/mdss_rotator/caps u:object_r:sysfs_graphics:s0 /sys/devices/virtual/hdcp/msm_hdcp/min_level_change u:object_r:sysfs_graphics:s0 +/sys/devices/platform/soc/soc:qcom,cam-req-mgr/video4linux/video0/name u:object_r:sysfs_graphics:s0 +/sys/devices/platform/cam_sync/video4linux/video1/name u:object_r:sysfs_graphics:s0 + /sys/devices/platform/vfb.([0-3])+/graphics/fb([0-3])+/modes u:object_r:sysfs_graphics:s0 /sys/devices/platform/vfb.([0-3])+/graphics/fb([0-3])+/mode u:object_r:sysfs_graphics:s0 /sys/module/drm/parameters/vblankoffdelay u:object_r:sysfs_graphics:s0 diff --git a/legacy/vendor/common/hal_graphics_composer.te b/legacy/vendor/common/hal_graphics_composer.te index fb330a1b..51281969 100644 --- a/legacy/vendor/common/hal_graphics_composer.te +++ b/legacy/vendor/common/hal_graphics_composer.te @@ -1,4 +1,4 @@ -# Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. +# Copyright (c) 2017-2019, 2021, The Linux Foundation. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are @@ -69,6 +69,10 @@ allow hal_graphics_composer_default mnt_vendor_file:dir search; # Allow dir search in '/oem' allow hal_graphics_composer oemfs:dir r_dir_perms; +# Rule for bootanim_system_prop +allow hal_graphics_composer_default bootanim_system_prop:file { getattr open read }; +allow hal_graphics_composer_default sysfs_graphics:file { getattr open read }; + # Allow pps socket access unix_socket_connect(hal_graphics_composer_default, pps, mm-pp-daemon) |