blob: 1a451a386bd137b623bddd85d0c1c524dd28fec6 [file] [log] [blame]
Alberto97d3359a02014-11-30 17:20:55 +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 };
Steve Kondik61e9e702016-09-20 02:41:26 -070010allow sysinit system_file:dir { r_dir_perms };
11allow sysinit toolbox_exec:file { rx_file_perms };
Alberto97d3359a02014-11-30 17:20:55 +010012allow sysinit self:process setcurrent;
13
Emerson Pinter9837fb52015-02-12 19:20:19 -020014userdebug_or_eng(`
15 allow sysinit userinit_data_exec:file { r_file_perms relabelto };
16 allow sysinit property_socket:sock_file write;
17 allow sysinit init:unix_stream_socket connectto;
18 allow sysinit userinit_prop:property_service set;
19 allow sysinit sysfs:file rw_file_perms;
20 allow sysinit sysfs_devices_system_cpu:file write;
21 allow sysinit self:capability dac_override;
22 allow sysinit userinit_exec:file { rx_file_perms };
23')