blob: 84fbf5a0fd3cfe4f489f29f97fee64c81a21f942 [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 Smalleyb081cc12014-02-10 13:29:38 -050010allow init fs_type:filesystem *;
Nick Kralevich0c9708b2013-07-10 14:46:05 -070011allow init {fs_type dev_type file_type}:dir_file_class_set relabelto;
Stephen Smalleyfea6e662013-12-06 08:05:53 -050012allow init kernel:security load_policy;
Stephen Smalley7adb9992013-12-06 09:31:40 -050013allow init usermodehelper:file rw_file_perms;
14allow init proc_security:file rw_file_perms;
Nick Kralevichfed8a2a2014-01-24 20:43:07 -080015
16# Transitions to seclabel processes in init.rc
17allow init adbd:process transition;
18allow init healthd:process transition;
19allow init recovery:process transition;
20allow init shell:process transition;
21allow init ueventd:process transition;
22allow init watchdogd:process transition;