diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index 9543f15..a654f32 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -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 diff --git a/sepolicy/vendor/hal_audio_default.te b/sepolicy/vendor/hal_audio_default.te index 24cab04..97a9154 100644 --- a/sepolicy/vendor/hal_audio_default.te +++ b/sepolicy/vendor/hal_audio_default.te @@ -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; diff --git a/sepolicy/vendor/hal_sensors_default.te b/sepolicy/vendor/hal_sensors_default.te new file mode 100644 index 0000000..7f6a35b --- /dev/null +++ b/sepolicy/vendor/hal_sensors_default.te @@ -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;