2012-01-04 18:33:27 +01:00
|
|
|
# adbd seclabel is specified in init.rc since
|
|
|
|
# it lives in the rootfs and has no unique file type.
|
2017-02-07 18:55:05 +01:00
|
|
|
type adbd, domain;
|
2018-09-27 19:21:37 +02:00
|
|
|
type adbd_exec, exec_type, file_type, system_file_type;
|
2018-06-26 21:52:21 +02:00
|
|
|
|
|
|
|
# Only init is allowed to enter the adbd domain via exec()
|
|
|
|
neverallow { domain -init } adbd:process transition;
|
|
|
|
neverallow * adbd:process dyntransition;
|
2020-09-01 01:11:11 +02:00
|
|
|
|
|
|
|
# Access /data/local/tests.
|
|
|
|
allow adbd shell_test_data_file:dir create_dir_perms;
|
|
|
|
allow adbd shell_test_data_file:file create_file_perms;
|
|
|
|
allow adbd shell_test_data_file:lnk_file create_file_perms;
|