sm8350-common: sepolicy: add rules for elliptic proximity

This commit is contained in:
Cosmin Tanislav 2021-10-21 15:00:05 +03:00
parent c53064216c
commit 97b3076919
3 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,7 @@
# Audio
/dev/socket/audio_hw_socket u:object_r:audio_socket:s0
/dev/elliptic(.*)? u:object_r:sound_device:s0
# Battery
/vendor/bin/batteryd u:object_r:batteryd_exec:s0
/vendor/bin/batterysecret u:object_r:batterysecret_exec:s0

View File

@ -1 +1,7 @@
type audio_socket, file_type;
type sound_device, dev_type;
set_prop(hal_audio_default, vendor_audio_prop)
allow hal_audio_default audio_socket:sock_file rw_file_perms;
allow hal_audio_default sound_device:chr_file rw_file_perms;

View File

@ -0,0 +1,2 @@
allow hal_sensors_default audio_socket:sock_file rw_file_perms;
allow hal_sensors_default sound_device:chr_file rw_file_perms;