diff options
author | Xin Li <delphij@google.com> | 2022-02-11 06:57:38 +0000 |
---|---|---|
committer | Xin Li <delphij@google.com> | 2022-02-11 06:57:38 +0000 |
commit | 2c7c7ecd2c5e2f69fc7a686472251f269880128f (patch) | |
tree | d874013d449bfa94a7e3fd185ff591b424390169 | |
parent | 92b850f65132f6d7823071ab9daee276a55d8e9d (diff) | |
parent | 00fe92af2df94d421600066d183c43ab0b3bfb49 (diff) | |
download | pixel-sepolicy-2c7c7ecd2c5e2f69fc7a686472251f269880128f.tar.gz |
Merge sc-v2-dev-plus-aosp-without-vendor@8084891
Bug: 214455710
Merged-In: I351dfd300186a6de8bdcf1edfcb7a461e80670cd
Change-Id: I797e513e2eafd613c72e1943be760a9f644755a5
-rw-r--r-- | input/device.te | 1 | ||||
-rw-r--r-- | input/dumpstate.te | 2 | ||||
-rw-r--r-- | input/file_contexts | 4 | ||||
-rw-r--r-- | input/hal_dumpstate_default.te | 2 | ||||
-rw-r--r-- | input/platform_app.te | 2 | ||||
-rw-r--r-- | input/service.te | 1 | ||||
-rw-r--r-- | input/service_contexts | 1 | ||||
-rw-r--r-- | input/touchflow_debug/file_contexts | 3 | ||||
-rw-r--r-- | input/twoshay.te | 16 | ||||
-rw-r--r-- | vibrator/common/property_contexts (renamed from vibrator/cs40l25/property_contexts) | 0 | ||||
-rw-r--r-- | vibrator/cs40l26/property_contexts | 1 | ||||
-rw-r--r-- | vibrator/drv2624/property_contexts | 1 |
12 files changed, 32 insertions, 2 deletions
diff --git a/input/device.te b/input/device.te new file mode 100644 index 0000000..d3ce622 --- /dev/null +++ b/input/device.te @@ -0,0 +1 @@ +type touch_offload_device, dev_type; diff --git a/input/dumpstate.te b/input/dumpstate.te new file mode 100644 index 0000000..b2c0c81 --- /dev/null +++ b/input/dumpstate.te @@ -0,0 +1,2 @@ +# b/187795940 +dontaudit dumpstate twoshay:binder call; diff --git a/input/file_contexts b/input/file_contexts new file mode 100644 index 0000000..2157b00 --- /dev/null +++ b/input/file_contexts @@ -0,0 +1,4 @@ +/dev/touch_offload u:object_r:touch_offload_device:s0 +/dev/touch_offload_fts u:object_r:touch_offload_device:s0 +/dev/touch_offload_fts_ext u:object_r:touch_offload_device:s0 +/vendor/bin/twoshay u:object_r:twoshay_exec:s0 diff --git a/input/hal_dumpstate_default.te b/input/hal_dumpstate_default.te new file mode 100644 index 0000000..81edc36 --- /dev/null +++ b/input/hal_dumpstate_default.te @@ -0,0 +1,2 @@ +allow hal_dumpstate_default touch_context_service:service_manager find; +binder_call(hal_dumpstate_default, twoshay) diff --git a/input/platform_app.te b/input/platform_app.te new file mode 100644 index 0000000..17cc511 --- /dev/null +++ b/input/platform_app.te @@ -0,0 +1,2 @@ +allow platform_app touch_context_service:service_manager find; +binder_call(platform_app, twoshay) diff --git a/input/service.te b/input/service.te new file mode 100644 index 0000000..63681d2 --- /dev/null +++ b/input/service.te @@ -0,0 +1 @@ +type touch_context_service, service_manager_type, vendor_service; diff --git a/input/service_contexts b/input/service_contexts new file mode 100644 index 0000000..95e70f8 --- /dev/null +++ b/input/service_contexts @@ -0,0 +1 @@ +com.google.input.ITouchContextService/default u:object_r:touch_context_service:s0 diff --git a/input/touchflow_debug/file_contexts b/input/touchflow_debug/file_contexts new file mode 100644 index 0000000..abde29a --- /dev/null +++ b/input/touchflow_debug/file_contexts @@ -0,0 +1,3 @@ +/vendor/bin/hw/android\.hardware\.input\.classifier@1\.0-reflector u:object_r:hal_input_classifier_default_exec:s0 +/vendor/bin/twoshay_touchflow u:object_r:twoshay_exec:s0 + 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; diff --git a/vibrator/cs40l25/property_contexts b/vibrator/common/property_contexts index 64a2600..64a2600 100644 --- a/vibrator/cs40l25/property_contexts +++ b/vibrator/common/property_contexts diff --git a/vibrator/cs40l26/property_contexts b/vibrator/cs40l26/property_contexts deleted file mode 100644 index 64a2600..0000000 --- a/vibrator/cs40l26/property_contexts +++ /dev/null @@ -1 +0,0 @@ -ro.vendor.vibrator.hal. u:object_r:vendor_vibrator_prop:s0 diff --git a/vibrator/drv2624/property_contexts b/vibrator/drv2624/property_contexts deleted file mode 100644 index 64a2600..0000000 --- a/vibrator/drv2624/property_contexts +++ /dev/null @@ -1 +0,0 @@ -ro.vendor.vibrator.hal. u:object_r:vendor_vibrator_prop:s0 |