You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
467 B
45 lines
467 B
4 months ago
|
class security
|
||
|
class file
|
||
|
|
||
|
sid kernel
|
||
|
|
||
|
common file
|
||
|
{
|
||
|
read
|
||
|
}
|
||
|
|
||
|
class file
|
||
|
inherits file
|
||
|
{
|
||
|
entrypoint
|
||
|
}
|
||
|
|
||
|
class security
|
||
|
{
|
||
|
compute_av
|
||
|
}
|
||
|
|
||
|
ifdef(`enable_mls',`
|
||
|
sensitivity s0;
|
||
|
|
||
|
dominance { s0 }
|
||
|
|
||
|
category c0;
|
||
|
|
||
|
level s0:c0;
|
||
|
|
||
|
mlsconstrain file { read }
|
||
|
( h1 dom h2 );
|
||
|
')
|
||
|
|
||
|
attribute myattr;
|
||
|
type mytype_t;
|
||
|
role myrole_r;
|
||
|
role myrole_r types mytype_t;
|
||
|
bool mybool true;
|
||
|
gen_user(myuser_u,, myrole_r, s0, s0 - s0:c0)
|
||
|
|
||
|
sid kernel gen_context(myuser_u:myrole_r:mytype_t, s0)
|
||
|
|
||
|
|