blob: 01dec96b4b25ee146f71dddea0bd23efe463f7f3 [file] [log] [blame]
Pierre-Hugues Husson8a07d2c2018-02-16 22:41:03 +01001type vndk_detect, coredomain, domain;
2type vndk_detect_exec, exec_type, file_type;
3
4init_daemon_domain(vndk_detect);
5allow vndk_detect sepolicy_file:file r_file_perms;
6set_prop(vndk_detect,system_prop);
7
8allow vndk_detect shell_exec:file rx_file_perms;
9allow vndk_detect toolbox_exec:file rx_file_perms;
10#/system/bin/grep
11allow vndk_detect system_file:file rx_file_perms;
Pierre-Hugues Husson28861552018-02-19 00:06:31 +010012
13#mount -o bind /system/bin/adbd /sbin/adbd
14allow vndk_detect adbd_exec:file { getattr };
15allow vndk_detect rootfs:file { mounton getattr };
16allow vndk_detect self:capability { sys_admin };