blob: fd49c4998b28da2d5bfe11682d2e508e6ad220c6 [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);
Pierre-Hugues Hussona9a6cba2018-05-27 13:14:50 +02007set_prop(vndk_detect,debug_prop);
Pierre-Hugues Husson8a07d2c2018-02-16 22:41:03 +01008
9allow vndk_detect shell_exec:file rx_file_perms;
10allow vndk_detect toolbox_exec:file rx_file_perms;
11#/system/bin/grep
12allow vndk_detect system_file:file rx_file_perms;
Pierre-Hugues Husson28861552018-02-19 00:06:31 +010013
14#mount -o bind /system/bin/adbd /sbin/adbd
Pierre-Hugues Husson1e27cc12018-04-01 00:21:03 +020015allow vndk_detect adbd_exec:file { getattr read };
Pierre-Hugues Husson28861552018-02-19 00:06:31 +010016allow vndk_detect rootfs:file { mounton getattr };
17allow vndk_detect self:capability { sys_admin };
Pierre-Hugues Husson1e27cc12018-04-01 00:21:03 +020018
19#mount -o bind /system/etc/usb_audio_policy_configuration.xml /vendor/etc/usb_audio_policy_configuration.xml
20allow init vendor_configs_file:file { getattr mounton };
21