summaryrefslogtreecommitdiff
path: root/vibrator/cs40l26/hal_vibrator_default.te
diff options
context:
space:
mode:
Diffstat (limited to 'vibrator/cs40l26/hal_vibrator_default.te')
-rw-r--r--vibrator/cs40l26/hal_vibrator_default.te11
1 files changed, 11 insertions, 0 deletions
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);