diff options
author | Xin Li <delphij@google.com> | 2022-03-08 00:18:34 +0000 |
---|---|---|
committer | Xin Li <delphij@google.com> | 2022-03-08 00:18:34 +0000 |
commit | 56583f0c31d3a2b528aba97db23b1871943c8178 (patch) | |
tree | 7eead88f6de66e1afebfa8da6ba9e53beaf2e6c7 | |
parent | aadfae0cdd4c232b7eeafc4502b0ff68cf73fdac (diff) | |
parent | 10f3588cb0e1b67cd387aa13edbcf85ad04ec0c7 (diff) | |
download | pixel-sepolicy-56583f0c31d3a2b528aba97db23b1871943c8178.tar.gz |
Merge Android 12L
Bug: 222710654
Merged-In: I22c51a0303fa4be5f3cf0208b74b2cca0c1f951c
Change-Id: I7acec8db4e5ed791c7eb72c93e12349282a94641
-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 |