audio: introduce sepolicy for hal audio ext service

Bug: 206738075
Test: build pass

Change-Id: I742566946d744c966443f30740adb8a3a4b3c00c
Signed-off-by: Jasmine Cha <chajasmine@google.com>
This commit is contained in:
Jasmine Cha 2023-02-24 11:23:32 +08:00
parent 39e672acb4
commit b6ccc2ea0f
3 changed files with 6 additions and 0 deletions

View file

@ -14,6 +14,8 @@ allow hal_audio_default aoc_device:chr_file rw_file_perms;
allow hal_audio_default hal_audio_ext_hwservice:hwservice_manager { find add };
add_service(hal_audio_default, hal_audio_ext_service)
allow hal_audio_default amcs_device:file rw_file_perms;
allow hal_audio_default amcs_device:chr_file rw_file_perms;
allow hal_audio_default sysfs_pixelstats:file rw_file_perms;

2
aoc/sepolicy/service.te Normal file
View file

@ -0,0 +1,2 @@
# Audio
type hal_audio_ext_service, service_manager_type;

View file

@ -0,0 +1,2 @@
# Audio
vendor.google.whitechapel.audio.extension.IAudioExtension/default u:object_r:hal_audio_ext_service:s0