summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-09-12 03:06:34 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-09-12 03:06:34 +0000
commit1c87ab9385ce16ebcb360b9a4db040e7cc87f2b2 (patch)
treea74454666c4f753d934aed19c578c5e7eedc6272
parent180e8cb87408d23a9c49a7b8d97b2444502fc2e8 (diff)
parentefa50073722d03178a0cc831a8934d288f5b1f56 (diff)
downloadcrosshatch-sepolicy-android-10.0.0_r29.tar.gz
Change-Id: I5ff822ed78dee60e2e19519253c7d490d5dee392
-rw-r--r--vendor/google/small_hals.te6
-rw-r--r--vendor/qcom/common/file_contexts1
-rw-r--r--vendor/qcom/common/hal_light_default.te2
3 files changed, 3 insertions, 6 deletions
diff --git a/vendor/google/small_hals.te b/vendor/google/small_hals.te
index b8e8359..79a3dfd 100644
--- a/vendor/google/small_hals.te
+++ b/vendor/google/small_hals.te
@@ -6,12 +6,6 @@ hal_server_domain(small_hals, hal_vibrator)
type small_hals_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(small_hals)
-# Light Permissions
-
-# This is the same as a line below for vibrator. We keep both so that it is
-# easier to see what rules are needed for what HAL.
-allow small_hals sysfs_msm_subsys:dir search;
-
# Memtrack Permissions
allow small_hals debugfs_kgsl:file { open read getattr };
diff --git a/vendor/qcom/common/file_contexts b/vendor/qcom/common/file_contexts
index d85a1f7..2729ce4 100644
--- a/vendor/qcom/common/file_contexts
+++ b/vendor/qcom/common/file_contexts
@@ -146,6 +146,7 @@
/vendor/bin/hw/vendor\.qti\.media\.c2@1\.0-service u:object_r:mediacodec_exec:s0
/vendor/bin/hw/vendor\.qti\.hardware\.display\.allocator@1\.0-service u:object_r:hal_graphics_allocator_default_exec:s0
/vendor/bin/hw/vendor\.google\.wireless_charger@1\.0-service-vendor u:object_r:hal_wlc_exec:s0
+/vendor/bin/hw/hardware\.google\.light@1\.0-service u:object_r:hal_light_default_exec:s0
###############################################
# same-process HAL files and their dependencies
diff --git a/vendor/qcom/common/hal_light_default.te b/vendor/qcom/common/hal_light_default.te
new file mode 100644
index 0000000..14df5a5
--- /dev/null
+++ b/vendor/qcom/common/hal_light_default.te
@@ -0,0 +1,2 @@
+allow hal_light_default sysfs_msm_subsys:dir search;
+