blob: b530a35f395be9c1cfeeb4d6f19f9da661e65f08 [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
Pierre-Hugues Husson1e27cc12018-04-01 00:21:03 +020014allow vndk_detect adbd_exec:file { getattr read };
Pierre-Hugues Husson28861552018-02-19 00:06:31 +010015allow vndk_detect rootfs:file { mounton getattr };
16allow vndk_detect self:capability { sys_admin };
Pierre-Hugues Husson1e27cc12018-04-01 00:21:03 +020017
18#mount -o bind /system/etc/usb_audio_policy_configuration.xml /vendor/etc/usb_audio_policy_configuration.xml
19allow init vendor_configs_file:file { getattr mounton };
20