summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinoth Jayaram <quic_c_vinoja@quicinc.com>2021-11-22 12:07:31 +0530
committeralk3pInjection <webmaster@raspii.tech>2022-01-20 10:28:00 +0800
commit43d5549223679788e1c0585b99f2f71aa3025e3b (patch)
treed988bd3e93c63e5832d05b1cfabbedfe7e86f3b4
parentf6d7bb6ad008e3bdb2f74411b102800c750de242 (diff)
sepolicy: Allow access for hal_graphics_composer_defaultHEADsugisawa
Allow bootanim prop access for hal_graphics_composer_default. Change-Id: Ic6d5c2b12a2cc03dfc9b2348b76a7ce9e7dfc2b9
-rw-r--r--legacy/vendor/common/file_contexts3
-rw-r--r--legacy/vendor/common/hal_graphics_composer.te6
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)