sepolicy: allow hal_omx to access audio devices
hal_omx needs to access audio devices to use OMX HW decoders and
encoders. Allow hal_omx to access audio devices.
authored-by: Banajit Goswami <bgoswami@codeaurora.org>
Bug: 133224154
Change-Id: I742c29c4105e5647ca1a7e017e311559a0567b52
(cherry picked from commit 155ca12879
)
This commit is contained in:
parent
676d9590f4
commit
ce9fc89865
@ -32,7 +32,7 @@ neverallow hal_audio_server { file_type fs_type }:file execute_no_trans;
|
|||||||
neverallow hal_audio_server domain:{ tcp_socket udp_socket rawip_socket } *;
|
neverallow hal_audio_server domain:{ tcp_socket udp_socket rawip_socket } *;
|
||||||
|
|
||||||
# Only audio HAL may directly access the audio hardware
|
# Only audio HAL may directly access the audio hardware
|
||||||
neverallow { halserverdomain -hal_audio_server } audio_device:chr_file *;
|
neverallow { halserverdomain -hal_audio_server -hal_omx_server } audio_device:chr_file *;
|
||||||
|
|
||||||
get_prop(hal_audio, bluetooth_a2dp_offload_prop)
|
get_prop(hal_audio, bluetooth_a2dp_offload_prop)
|
||||||
get_prop(hal_audio, bluetooth_audio_hal_prop)
|
get_prop(hal_audio, bluetooth_audio_hal_prop)
|
||||||
|
@ -32,7 +32,7 @@ neverallow hal_audio_server { file_type fs_type }:file execute_no_trans;
|
|||||||
neverallow hal_audio_server domain:{ tcp_socket udp_socket rawip_socket } *;
|
neverallow hal_audio_server domain:{ tcp_socket udp_socket rawip_socket } *;
|
||||||
|
|
||||||
# Only audio HAL may directly access the audio hardware
|
# Only audio HAL may directly access the audio hardware
|
||||||
neverallow { halserverdomain -hal_audio_server } audio_device:chr_file *;
|
neverallow { halserverdomain -hal_audio_server -hal_omx_server } audio_device:chr_file *;
|
||||||
|
|
||||||
get_prop(hal_audio, bluetooth_a2dp_offload_prop)
|
get_prop(hal_audio, bluetooth_a2dp_offload_prop)
|
||||||
get_prop(hal_audio, bluetooth_audio_hal_prop)
|
get_prop(hal_audio, bluetooth_audio_hal_prop)
|
||||||
|
Loading…
Reference in New Issue
Block a user