diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2022-02-21 05:53:24 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-02-21 05:53:24 +0000 |
commit | ee419de0deba2a4935012451f51d2f2476fe8e2c (patch) | |
tree | 9edbc3e944e7f763bed9525589e44879e244e2ff | |
parent | 1d70c59cb8ca8c4eeab91cf4284db3f68f63ed8c (diff) | |
parent | 33a5a822875dcdcbbf62538fcdb41fe63339cca7 (diff) | |
download | pixel-sepolicy-ee419de0deba2a4935012451f51d2f2476fe8e2c.tar.gz |
Merge changes I3ea34185,Ic4f433a9 am: aadfae0cdd am: 10f3588cb0 am: 33a5a82287
Original change: https://android-review.googlesource.com/c/platform/hardware/google/pixel-sepolicy/+/1991760
Change-Id: I19c0ef2929a40ff6ffd02c851c86398321a71d84
-rw-r--r-- | vibrator/cs40l26/file_contexts | 3 | ||||
-rw-r--r-- | vibrator/cs40l26/hal_vibrator_default.te | 10 |
2 files changed, 12 insertions, 1 deletions
diff --git a/vibrator/cs40l26/file_contexts b/vibrator/cs40l26/file_contexts index 13513c9..5c9f669 100644 --- a/vibrator/cs40l26/file_contexts +++ b/vibrator/cs40l26/file_contexts @@ -1,2 +1,5 @@ /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 + +/dev/snd/pcmC0D24p u:object_r:vibrator_snd_device:s0 +/dev/snd/pcmC1D24p u:object_r:vibrator_snd_device:s0 diff --git a/vibrator/cs40l26/hal_vibrator_default.te b/vibrator/cs40l26/hal_vibrator_default.te index 963a1c9..478bee9 100644 --- a/vibrator/cs40l26/hal_vibrator_default.te +++ b/vibrator/cs40l26/hal_vibrator_default.te @@ -1,5 +1,13 @@ -allow hal_vibrator_default input_device:dir search; +allow hal_vibrator_default input_device:dir r_dir_perms; allow hal_vibrator_default input_device:chr_file rw_file_perms; +allow hal_vibrator_default sysfs_vibrator:dir search; +allow hal_vibrator_default sysfs_vibrator:file rw_file_perms; + +allow hal_vibrator_default audio_device:dir search; +allow hal_vibrator_default proc_asound:dir search; +allow hal_vibrator_default proc_asound:file r_file_perms; +allow hal_vibrator_default vibrator_snd_device:chr_file rw_file_perms; +allow hal_vibrator_default vibrator_snd_device:dir search; allow hal_vibrator_default mnt_vendor_file:dir search; allow hal_vibrator_default persist_file:dir search; |