summaryrefslogtreecommitdiff
path: root/input/twoshay.te
diff options
context:
space:
mode:
authorPhilip Quinn <pquinn@google.com>2021-05-12 21:49:22 -0700
committerPhilip Quinn <pquinn@google.com>2021-09-29 20:08:07 -0700
commit4fc81b9e01e44b8ad3f8137db56ec2308286a0e4 (patch)
treee2c75e562d88282d45ee865609a760d96f9dc9ec /input/twoshay.te
parent7f45b5855739bbb90b823bdd276cde52ed2fc937 (diff)
downloadpixel-sepolicy-4fc81b9e01e44b8ad3f8137db56ec2308286a0e4.tar.gz
Consolidate sepolicy for twoshay and touchflow targets.
Bug: 187654303 Bug: 187795940 Bug: 198755236 Test: twoshay works on B5, R4, B3, P7; reflector works on O6 Change-Id: I04b98c3b42e886b1900150c175318095e559fa25
Diffstat (limited to 'input/twoshay.te')
-rw-r--r--input/twoshay.te16
1 files changed, 16 insertions, 0 deletions
diff --git a/input/twoshay.te b/input/twoshay.te
new file mode 100644
index 0000000..eba1cce
--- /dev/null
+++ b/input/twoshay.te
@@ -0,0 +1,16 @@
+type twoshay, domain;
+type twoshay_exec, exec_type, vendor_file_type, file_type;
+
+init_daemon_domain(twoshay)
+
+allow twoshay touch_offload_device:chr_file rw_file_perms;
+allow twoshay twoshay:capability sys_nice;
+
+binder_use(twoshay)
+add_service(twoshay, touch_context_service)
+
+allow twoshay fwk_stats_service:service_manager find;
+binder_call(twoshay, stats_service_server)
+
+# b/198755236
+dontaudit twoshay twoshay:capability dac_override;