Set up access control rule for aocxd
Test: make -j64 Bug: 385663354 Flag: EXEMPT bugfix Change-Id: I1b6584a0643085e9d69c85b27a0ba3667aacf1cf
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/aoc/sepolicy
|
||||
|
||||
# Skip aosp_ build due to dcservice_app is not available
|
||||
ifeq (,$(filter aosp_%, $(TARGET_PRODUCT)))
|
||||
BOARD_VENDOR_SEPOLICY_DIRS += \
|
||||
device/google/gs-common/aoc/sepolicy/allowlist
|
||||
endif
|
||||
|
||||
PRODUCT_PACKAGES += dump_aoc \
|
||||
aocd \
|
||||
aocxd
|
||||
|
||||
2
aoc/sepolicy/allowlist/aocxd_neverallow.te
Normal file
2
aoc/sepolicy/allowlist/aocxd_neverallow.te
Normal file
@@ -0,0 +1,2 @@
|
||||
# set up rule to control the access to aocxd
|
||||
neverallow { domain -hwservicemanager -servicemanager -vndservicemanager -system_suspend_server -dumpstate -hal_audio_default -dcservice_app } aocxd:binder { call transfer };
|
||||
Reference in New Issue
Block a user