platform_system_sepolicy/private/composd.te
Alan Stokes d376e2041f Initial sepolicy for composd
Add what we need to allow composd to run and expose an AIDL service.

Also delete the policy for compsvc; we never access it in the host
now, and the real policy is in microdroid. Retain the compos_exec
type, since it is referenced in the APEX sepolicy.

Bug: 186126194
Test: adb shell cmd -w android.system.composd; no denials.
Change-Id: I5f06b2b01852cdebd2d67009b363ec08b17ce33a
2021-09-13 10:33:53 +01:00

15 lines
454 B
Text

type composd, domain, coredomain;
type composd_exec, system_file_type, exec_type, file_type;
# Host a dynamic AIDL service
init_daemon_domain(composd)
binder_use(composd)
add_service(composd, compos_service)
# Start a VM
virtualizationservice_use(composd)
# Access our APEX data files
allow composd apex_module_data_file:dir search;
allow composd apex_compos_data_file:dir create_dir_perms;
allow composd apex_compos_data_file:file create_file_perms;