blob: efce6e7d8b18cbeaebf077b449d48cca986aba5f [file] [log] [blame]
Stephen Smalley2dd4e512012-01-04 12:33:27 -05001# init switches to init domain (via init.rc).
2type init, domain;
Stephen Smalley2dd4e512012-01-04 12:33:27 -05003# init is unconfined.
4unconfined_domain(init)
5tmpfs_domain(init)
Nick Kralevich0c9708b2013-07-10 14:46:05 -07006relabelto_domain(init)
repo sync77d47312013-05-17 17:11:29 -07007# add a rule to handle unlabelled mounts
8allow init unlabeled:filesystem mount;
Nick Kralevich0c9708b2013-07-10 14:46:05 -07009
Stephen Smalley5487ca02014-02-10 16:31:04 -050010allow init self:capability { sys_rawio mknod };
11
Stephen Smalleyb081cc12014-02-10 13:29:38 -050012allow init fs_type:filesystem *;
Nick Kralevich0c9708b2013-07-10 14:46:05 -070013allow init {fs_type dev_type file_type}:dir_file_class_set relabelto;
Stephen Smalleyfea6e662013-12-06 08:05:53 -050014allow init kernel:security load_policy;
Stephen Smalley7adb9992013-12-06 09:31:40 -050015allow init usermodehelper:file rw_file_perms;
16allow init proc_security:file rw_file_perms;
Nick Kralevichfed8a2a2014-01-24 20:43:07 -080017
18# Transitions to seclabel processes in init.rc
19allow init adbd:process transition;
20allow init healthd:process transition;
21allow init recovery:process transition;
22allow init shell:process transition;
23allow init ueventd:process transition;
24allow init watchdogd:process transition;