davinci: sepolicy: Add audio rules
Change-Id: I5da3edd3525831412d5eec131dcfa02dc88053ab
This commit is contained in:
parent
a9d5dfade7
commit
167d382728
3
sepolicy/vendor/file_contexts
vendored
3
sepolicy/vendor/file_contexts
vendored
@ -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
8
sepolicy/vendor/hal_audio_default.te
vendored
Normal 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;
|
Loading…
Reference in New Issue
Block a user