1class security 2class file 3 4sid kernel 5 6common file 7{ 8 read 9} 10 11class file 12inherits file 13{ 14 entrypoint 15} 16 17class security 18{ 19 compute_av 20} 21 22ifdef(`enable_mls',` 23sensitivity s0; 24 25dominance { s0 } 26 27category c0; 28 29level s0:c0; 30 31mlsconstrain file { read } 32 ( h1 dom h2 ); 33') 34 35attribute myattr; 36type mytype_t; 37role myrole_r; 38role myrole_r types mytype_t; 39bool mybool true; 40gen_user(myuser_u,, myrole_r, s0, s0 - s0:c0) 41 42sid kernel gen_context(myuser_u:myrole_r:mytype_t, s0) 43 44 45