summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-08-31 23:08:01 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-08-31 23:08:01 +0000
commit007f30333bf1aa35f3faf4495e9eb878694b35f9 (patch)
tree6d0820a6c2477ad62f57b488070906a97106350b
parent344224a4b6657d63f107cd14026001d356bb5a7c (diff)
parent932084071f3856bc3e40b808cd04b9c7f67696ed (diff)
downloadredbull-sepolicy-007f30333bf1aa35f3faf4495e9eb878694b35f9.tar.gz
Snap for 6803753 from 932084071f3856bc3e40b808cd04b9c7f67696ed to rvc-qpr1-release
Change-Id: Ic008b7cfa793ba2f92db246042a3f5ea40121aae
-rw-r--r--vendor/google/file_contexts1
-rw-r--r--vendor/google/init_twoshay.te11
-rw-r--r--vendor/google/property.te1
-rw-r--r--vendor/google/property_contexts3
-rw-r--r--vendor/qcom/common/file_contexts1
5 files changed, 17 insertions, 0 deletions
diff --git a/vendor/google/file_contexts b/vendor/google/file_contexts
index b9c635a..a2e1fc9 100644
--- a/vendor/google/file_contexts
+++ b/vendor/google/file_contexts
@@ -58,6 +58,7 @@
/vendor/bin/init\.qti\.chg_policy\.sh u:object_r:init_qti_chg_policy_exec:s0
/vendor/bin/init\.modem\.sh u:object_r:init_modem_exec:s0
/vendor/bin/init\.gadgethal\.sh u:object_r:init_gadgethal_exec:s0
+/vendor/bin/init\.twoshay\.sh u:object_r:init_twoshay_exec:s0
/mnt/vendor/persist/battery(/.*)? u:object_r:persist_battery_file:s0
/mnt/vendor/persist/haptics(/.*)? u:object_r:persist_haptics_file:s0
diff --git a/vendor/google/init_twoshay.te b/vendor/google/init_twoshay.te
new file mode 100644
index 0000000..ff89f17
--- /dev/null
+++ b/vendor/google/init_twoshay.te
@@ -0,0 +1,11 @@
+type init_twoshay, domain;
+type init_twoshay_exec, exec_type, vendor_file_type, file_type;
+init_daemon_domain(init_twoshay)
+
+allow init_twoshay vendor_toolbox_exec:file execute_no_trans;
+
+allow init_twoshay sysfs_display:dir search;
+allow init_twoshay sysfs_display:file r_file_perms;
+
+set_prop(init_twoshay, vendor_twoshay_prop)
+
diff --git a/vendor/google/property.te b/vendor/google/property.te
index 12b45e8..473c3df 100644
--- a/vendor/google/property.te
+++ b/vendor/google/property.te
@@ -8,6 +8,7 @@ type vendor_shutdown_prop, property_type;
type vendor_battery_defender_prop, property_type;
type vendor_vibrator_prop, property_type;
type vendor_sensor_prop, property_type;
+type vendor_twoshay_prop, property_type;
# vendor verbose logging property
type vendor_logging_prop, property_type;
diff --git a/vendor/google/property_contexts b/vendor/google/property_contexts
index a6adea5..1ad0a49 100644
--- a/vendor/google/property_contexts
+++ b/vendor/google/property_contexts
@@ -67,3 +67,6 @@ ro.vendor.vibrator.hal.lptrigger u:object_r:vendor_vibrator_prop:
# Sensor
vendor.sensor. u:object_r:vendor_sensor_prop:s0
+
+# twoshay
+vendor.twoshay.study_group u:object_r:vendor_twoshay_prop:s0 exact bool
diff --git a/vendor/qcom/common/file_contexts b/vendor/qcom/common/file_contexts
index f3bc23d..a01eb18 100644
--- a/vendor/qcom/common/file_contexts
+++ b/vendor/qcom/common/file_contexts
@@ -148,6 +148,7 @@
/vendor/lib(64)?/libadreno_utils\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libgpudataproducer\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libgsl\.so u:object_r:same_process_hal_file:s0
+/vendor/lib64/libipebpsstriping\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libEGL_adreno\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libGLESv1_CM_adreno\.so u:object_r:same_process_hal_file:s0