Files
device_google_wahoo/sepolicy/init_power.te
Sandeep Patil 59b3eaccd3 tag all vendor domains that rely on system executables
Bug: 36463595
Test: lunch walleye-userdebug && make sepolicy

Change-Id: I7ec48b3109d66f9537e5834933ed28aa76da367e
Signed-off-by: Sandeep Patil <sspatil@google.com>
2017-04-15 19:30:07 -07:00

24 lines
665 B
Plaintext

type init_power, domain, vendor_executes_system_violators;
type init_power_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(init_power)
set_prop(init_power, post_boot_prop)
allow init_power shell_exec:file rx_file_perms;
allow init_power toolbox_exec:file rx_file_perms;
r_dir_file(init_power, sysfs_msm_subsys)
allow init_power sysfs_msm_subsys:file write;
allow init_power sysfs_thermal:dir search;
allow init_power sysfs_thermal:file w_file_perms;
allow init_power sysfs_devices_system_cpu:file w_file_perms;
allow init_power sysfs_soc:file r_file_perms;
allow init_power sysfs_soc:dir search;
userdebug_or_eng(`
permissive init_power;
')