blob: 6fd0b8562345c7e6dbf378fc4fe7d84537d013d2 [file] [log] [blame]
myfluxi12daaee2014-11-22 19:33:26 +01001type sysinit, domain;
2type sysinit_exec, exec_type, file_type;
3
4init_daemon_domain(sysinit)
5
6#============= sysinit ==============
7allow sysinit devpts:chr_file { rw_file_perms };
8allow sysinit shell_exec:file { rx_file_perms };
9allow sysinit system_file:file { rx_file_perms };
10allow sysinit self:process setcurrent;
11
Emerson Pinterdc699fb2015-02-12 19:20:19 -020012userdebug_or_eng(`
13 allow sysinit userinit_data_exec:file { r_file_perms relabelto };
14 allow sysinit property_socket:sock_file write;
15 allow sysinit init:unix_stream_socket connectto;
16 allow sysinit userinit_prop:property_service set;
17 allow sysinit sysfs:file rw_file_perms;
18 allow sysinit sysfs_devices_system_cpu:file write;
19 allow sysinit self:capability dac_override;
20 allow sysinit userinit_exec:file { rx_file_perms };
21')