Merge "Add astd sepolicy to gs-common for P26 factory builds" into main
This commit is contained in:
commit
be9f4c732e
3 changed files with 22 additions and 0 deletions
9
astd/astd.mk
Normal file
9
astd/astd.mk
Normal file
|
@ -0,0 +1,9 @@
|
|||
# This module is only for factory targets, please include this makefile
|
||||
# with check:
|
||||
#
|
||||
# ifneq ($(filter factory_%,$(TARGET_PRODUCT)),)
|
||||
# include device/google/gs-common/astd/astd.mk
|
||||
# endif
|
||||
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += device/google/gs-common/astd/sepolicy
|
||||
|
||||
PRODUCT_PACKAGES_DEBUG += astd
|
10
astd/sepolicy/astd.te
Normal file
10
astd/sepolicy/astd.te
Normal file
|
@ -0,0 +1,10 @@
|
|||
# astd service
|
||||
type astd, domain;
|
||||
type astd_exec, exec_type, file_type, system_file_type;
|
||||
|
||||
typeattribute astd coredomain;
|
||||
|
||||
userdebug_or_eng(`
|
||||
init_daemon_domain(astd)
|
||||
')
|
||||
|
3
astd/sepolicy/file_contexts
Normal file
3
astd/sepolicy/file_contexts
Normal file
|
@ -0,0 +1,3 @@
|
|||
/system_ext/bin/astc u:object_r:astd_exec:s0
|
||||
/system_ext/bin/astd u:object_r:astd_exec:s0
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue