davinci: sepolicy: Add audio rules

Change-Id: I5da3edd3525831412d5eec131dcfa02dc88053ab
This commit is contained in:
Demon000 2020-03-04 00:55:46 +01:00 committed by Arian
parent a9d5dfade7
commit 167d382728
No known key found for this signature in database
GPG Key ID: 48029380598CE3B9
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,6 @@
# Audio
/dev/socket/audio_hw_socket u:object_r:audio_socket:s0
# HALs # HALs
/vendor/bin/hw/android\.hardware\.light@2\.0-service\.davinci u:object_r:hal_light_default_exec:s0 /vendor/bin/hw/android\.hardware\.light@2\.0-service\.davinci u:object_r:hal_light_default_exec:s0

8
sepolicy/vendor/hal_audio_default.te vendored Normal file
View File

@ -0,0 +1,8 @@
type audio_socket, file_type;
allow hal_audio_default mnt_vendor_file:dir search;
r_dir_file(hal_audio_default, persist_audio_file)
set_prop(hal_audio_default, vendor_audio_prop)
allow hal_audio_default audio_socket:sock_file rw_file_perms;