device_phh_treble/sepolicy/vndk_detect.te
Pierre-Hugues Husson 2886155138 mount bind /system/bin/adbd /sbin/adbd before adbd starts
This is needed for master on A-only devices
2018-02-19 00:06:48 +01:00

17 lines
562 B
Plaintext

type vndk_detect, coredomain, domain;
type vndk_detect_exec, exec_type, file_type;
init_daemon_domain(vndk_detect);
allow vndk_detect sepolicy_file:file r_file_perms;
set_prop(vndk_detect,system_prop);
allow vndk_detect shell_exec:file rx_file_perms;
allow vndk_detect toolbox_exec:file rx_file_perms;
#/system/bin/grep
allow vndk_detect system_file:file rx_file_perms;
#mount -o bind /system/bin/adbd /sbin/adbd
allow vndk_detect adbd_exec:file { getattr };
allow vndk_detect rootfs:file { mounton getattr };
allow vndk_detect self:capability { sys_admin };