diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2021-04-20 11:49:51 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2021-04-20 11:49:51 +0000 |
commit | 3f3367c233ace7bf36614a4d29658dbb2237999e (patch) | |
tree | 082abe2f639eaaa779c551324a02f9d412ad44f1 | |
parent | e02e22748ccbd127decefd4c20585db9ead866d0 (diff) | |
parent | e306107be1e9459ba79741c6fcd6ccce35ccc59e (diff) | |
download | pixel-sepolicy-3f3367c233ace7bf36614a4d29658dbb2237999e.tar.gz |
Merge "vibrator: cs40l26: setup sepolicy" into sc-dev
-rw-r--r-- | vibrator/cs40l26/file_contexts | 2 | ||||
-rw-r--r-- | vibrator/cs40l26/hal_vibrator_default.te | 11 | ||||
-rw-r--r-- | vibrator/cs40l26/property_contexts | 1 | ||||
-rw-r--r-- | vibrator/cs40l26/vendor_init.te | 1 |
4 files changed, 15 insertions, 0 deletions
diff --git a/vibrator/cs40l26/file_contexts b/vibrator/cs40l26/file_contexts new file mode 100644 index 0000000..13513c9 --- /dev/null +++ b/vibrator/cs40l26/file_contexts @@ -0,0 +1,2 @@ +/vendor/bin/hw/android\.hardware\.vibrator-service\.cs40l26 u:object_r:hal_vibrator_default_exec:s0 +/vendor/bin/hw/android\.hardware\.vibrator-service\.cs40l26-dual u:object_r:hal_vibrator_default_exec:s0 diff --git a/vibrator/cs40l26/hal_vibrator_default.te b/vibrator/cs40l26/hal_vibrator_default.te new file mode 100644 index 0000000..963a1c9 --- /dev/null +++ b/vibrator/cs40l26/hal_vibrator_default.te @@ -0,0 +1,11 @@ +allow hal_vibrator_default input_device:dir search; +allow hal_vibrator_default input_device:chr_file rw_file_perms; + +allow hal_vibrator_default mnt_vendor_file:dir search; +allow hal_vibrator_default persist_file:dir search; +r_dir_file(hal_vibrator_default, persist_haptics_file) + +get_prop(hal_vibrator_default, vendor_vibrator_prop); + +# Allow vibrator HAL's default implementation to use vendor-binder service +vndbinder_use(hal_vibrator_default); diff --git a/vibrator/cs40l26/property_contexts b/vibrator/cs40l26/property_contexts new file mode 100644 index 0000000..64a2600 --- /dev/null +++ b/vibrator/cs40l26/property_contexts @@ -0,0 +1 @@ +ro.vendor.vibrator.hal. u:object_r:vendor_vibrator_prop:s0 diff --git a/vibrator/cs40l26/vendor_init.te b/vibrator/cs40l26/vendor_init.te new file mode 100644 index 0000000..417a40c --- /dev/null +++ b/vibrator/cs40l26/vendor_init.te @@ -0,0 +1 @@ +set_prop(vendor_init, vendor_vibrator_prop) |