blob: dfc6258252021e92c20bf414acb54e8a1aa92c0d [file] [log] [blame]
Stephen Smalley2dd4e512012-01-04 12:33:27 -05001# Life begins with the kernel.
2type kernel, domain;
Nick Kralevichfed8a2a2014-01-24 20:43:07 -08003
4allow kernel init:process dyntransition;
5
Stephen Smalley2dd4e512012-01-04 12:33:27 -05006# The kernel is unconfined.
7unconfined_domain(kernel)
Nick Kralevich0c9708b2013-07-10 14:46:05 -07008relabelto_domain(kernel)
9
10allow kernel {fs_type dev_type file_type}:dir_file_class_set relabelto;
Geremy Condra217f8af2013-09-05 15:36:30 -070011allow kernel unlabeled:filesystem mount;
Stephen Smalleyfea6e662013-12-06 08:05:53 -050012
13# Initial setenforce by init prior to switching to init domain.
14allow kernel self:security setenforce;
Stephen Smalley8b516742014-01-08 09:29:30 -050015
16# Set checkreqprot by init.rc prior to switching to init domain.
17allow kernel self:security setcheckreqprot;