|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
ifdef(`enable_mls',`
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# Define sensitivities
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# Each sensitivity has a name and zero or more aliases.
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
sensitivity s0;
|
|
Chris PeBenito |
134191 |
sensitivity s1;
|
|
Chris PeBenito |
134191 |
sensitivity s2;
|
|
Chris PeBenito |
134191 |
sensitivity s3;
|
|
Chris PeBenito |
134191 |
sensitivity s4;
|
|
Chris PeBenito |
134191 |
sensitivity s5;
|
|
Chris PeBenito |
134191 |
sensitivity s6;
|
|
Chris PeBenito |
134191 |
sensitivity s7;
|
|
Chris PeBenito |
134191 |
sensitivity s8;
|
|
Chris PeBenito |
134191 |
sensitivity s9;
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# Define the ordering of the sensitivity levels (least to greatest)
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
dominance { s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 }
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# Define the categories
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# Each category has a name and zero or more aliases.
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
category c0;
|
|
Chris PeBenito |
134191 |
category c1;
|
|
Chris PeBenito |
134191 |
category c2;
|
|
Chris PeBenito |
134191 |
category c3;
|
|
Chris PeBenito |
134191 |
category c4;
|
|
Chris PeBenito |
134191 |
category c5;
|
|
Chris PeBenito |
134191 |
category c6;
|
|
Chris PeBenito |
134191 |
category c7;
|
|
Chris PeBenito |
134191 |
category c8;
|
|
Chris PeBenito |
134191 |
category c9;
|
|
Chris PeBenito |
134191 |
category c10;
|
|
Chris PeBenito |
134191 |
category c11;
|
|
Chris PeBenito |
134191 |
category c12;
|
|
Chris PeBenito |
134191 |
category c13;
|
|
Chris PeBenito |
134191 |
category c14;
|
|
Chris PeBenito |
134191 |
category c15;
|
|
Chris PeBenito |
134191 |
category c16;
|
|
Chris PeBenito |
134191 |
category c17;
|
|
Chris PeBenito |
134191 |
category c18;
|
|
Chris PeBenito |
134191 |
category c19;
|
|
Chris PeBenito |
134191 |
category c20;
|
|
Chris PeBenito |
134191 |
category c21;
|
|
Chris PeBenito |
134191 |
category c22;
|
|
Chris PeBenito |
134191 |
category c23;
|
|
Chris PeBenito |
134191 |
category c24;
|
|
Chris PeBenito |
134191 |
category c25;
|
|
Chris PeBenito |
134191 |
category c26;
|
|
Chris PeBenito |
134191 |
category c27;
|
|
Chris PeBenito |
134191 |
category c28;
|
|
Chris PeBenito |
134191 |
category c29;
|
|
Chris PeBenito |
134191 |
category c30;
|
|
Chris PeBenito |
134191 |
category c31;
|
|
Chris PeBenito |
134191 |
category c32;
|
|
Chris PeBenito |
134191 |
category c33;
|
|
Chris PeBenito |
134191 |
category c34;
|
|
Chris PeBenito |
134191 |
category c35;
|
|
Chris PeBenito |
134191 |
category c36;
|
|
Chris PeBenito |
134191 |
category c37;
|
|
Chris PeBenito |
134191 |
category c38;
|
|
Chris PeBenito |
134191 |
category c39;
|
|
Chris PeBenito |
134191 |
category c40;
|
|
Chris PeBenito |
134191 |
category c41;
|
|
Chris PeBenito |
134191 |
category c42;
|
|
Chris PeBenito |
134191 |
category c43;
|
|
Chris PeBenito |
134191 |
category c44;
|
|
Chris PeBenito |
134191 |
category c45;
|
|
Chris PeBenito |
134191 |
category c46;
|
|
Chris PeBenito |
134191 |
category c47;
|
|
Chris PeBenito |
134191 |
category c48;
|
|
Chris PeBenito |
134191 |
category c49;
|
|
Chris PeBenito |
134191 |
category c50;
|
|
Chris PeBenito |
134191 |
category c51;
|
|
Chris PeBenito |
134191 |
category c52;
|
|
Chris PeBenito |
134191 |
category c53;
|
|
Chris PeBenito |
134191 |
category c54;
|
|
Chris PeBenito |
134191 |
category c55;
|
|
Chris PeBenito |
134191 |
category c56;
|
|
Chris PeBenito |
134191 |
category c57;
|
|
Chris PeBenito |
134191 |
category c58;
|
|
Chris PeBenito |
134191 |
category c59;
|
|
Chris PeBenito |
134191 |
category c60;
|
|
Chris PeBenito |
134191 |
category c61;
|
|
Chris PeBenito |
134191 |
category c62;
|
|
Chris PeBenito |
134191 |
category c63;
|
|
Chris PeBenito |
134191 |
category c64;
|
|
Chris PeBenito |
134191 |
category c65;
|
|
Chris PeBenito |
134191 |
category c66;
|
|
Chris PeBenito |
134191 |
category c67;
|
|
Chris PeBenito |
134191 |
category c68;
|
|
Chris PeBenito |
134191 |
category c69;
|
|
Chris PeBenito |
134191 |
category c70;
|
|
Chris PeBenito |
134191 |
category c71;
|
|
Chris PeBenito |
134191 |
category c72;
|
|
Chris PeBenito |
134191 |
category c73;
|
|
Chris PeBenito |
134191 |
category c74;
|
|
Chris PeBenito |
134191 |
category c75;
|
|
Chris PeBenito |
134191 |
category c76;
|
|
Chris PeBenito |
134191 |
category c77;
|
|
Chris PeBenito |
134191 |
category c78;
|
|
Chris PeBenito |
134191 |
category c79;
|
|
Chris PeBenito |
134191 |
category c80;
|
|
Chris PeBenito |
134191 |
category c81;
|
|
Chris PeBenito |
134191 |
category c82;
|
|
Chris PeBenito |
134191 |
category c83;
|
|
Chris PeBenito |
134191 |
category c84;
|
|
Chris PeBenito |
134191 |
category c85;
|
|
Chris PeBenito |
134191 |
category c86;
|
|
Chris PeBenito |
134191 |
category c87;
|
|
Chris PeBenito |
134191 |
category c88;
|
|
Chris PeBenito |
134191 |
category c89;
|
|
Chris PeBenito |
134191 |
category c90;
|
|
Chris PeBenito |
134191 |
category c91;
|
|
Chris PeBenito |
134191 |
category c92;
|
|
Chris PeBenito |
134191 |
category c93;
|
|
Chris PeBenito |
134191 |
category c94;
|
|
Chris PeBenito |
134191 |
category c95;
|
|
Chris PeBenito |
134191 |
category c96;
|
|
Chris PeBenito |
134191 |
category c97;
|
|
Chris PeBenito |
134191 |
category c98;
|
|
Chris PeBenito |
134191 |
category c99;
|
|
Chris PeBenito |
134191 |
category c100;
|
|
Chris PeBenito |
134191 |
category c101;
|
|
Chris PeBenito |
134191 |
category c102;
|
|
Chris PeBenito |
134191 |
category c103;
|
|
Chris PeBenito |
134191 |
category c104;
|
|
Chris PeBenito |
134191 |
category c105;
|
|
Chris PeBenito |
134191 |
category c106;
|
|
Chris PeBenito |
134191 |
category c107;
|
|
Chris PeBenito |
134191 |
category c108;
|
|
Chris PeBenito |
134191 |
category c109;
|
|
Chris PeBenito |
134191 |
category c110;
|
|
Chris PeBenito |
134191 |
category c111;
|
|
Chris PeBenito |
134191 |
category c112;
|
|
Chris PeBenito |
134191 |
category c113;
|
|
Chris PeBenito |
134191 |
category c114;
|
|
Chris PeBenito |
134191 |
category c115;
|
|
Chris PeBenito |
134191 |
category c116;
|
|
Chris PeBenito |
134191 |
category c117;
|
|
Chris PeBenito |
134191 |
category c118;
|
|
Chris PeBenito |
134191 |
category c119;
|
|
Chris PeBenito |
134191 |
category c120;
|
|
Chris PeBenito |
134191 |
category c121;
|
|
Chris PeBenito |
134191 |
category c122;
|
|
Chris PeBenito |
134191 |
category c123;
|
|
Chris PeBenito |
134191 |
category c124;
|
|
Chris PeBenito |
134191 |
category c125;
|
|
Chris PeBenito |
134191 |
category c126;
|
|
Chris PeBenito |
134191 |
category c127;
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# Each MLS level specifies a sensitivity and zero or more categories which may
|
|
Chris PeBenito |
134191 |
# be associated with that sensitivity.
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
level s0:c0.c127;
|
|
Chris PeBenito |
134191 |
level s1:c0.c127;
|
|
Chris PeBenito |
134191 |
level s2:c0.c127;
|
|
Chris PeBenito |
134191 |
level s3:c0.c127;
|
|
Chris PeBenito |
134191 |
level s4:c0.c127;
|
|
Chris PeBenito |
134191 |
level s5:c0.c127;
|
|
Chris PeBenito |
134191 |
level s6:c0.c127;
|
|
Chris PeBenito |
134191 |
level s7:c0.c127;
|
|
Chris PeBenito |
134191 |
level s8:c0.c127;
|
|
Chris PeBenito |
134191 |
level s9:c0.c127;
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# Define the MLS policy
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# mlsconstrain class_set perm_set expression ;
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# mlsvalidatetrans class_set expression ;
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# expression : ( expression )
|
|
Chris PeBenito |
134191 |
# | not expression
|
|
Chris PeBenito |
134191 |
# | expression and expression
|
|
Chris PeBenito |
134191 |
# | expression or expression
|
|
Chris PeBenito |
134191 |
# | u1 op u2
|
|
Chris PeBenito |
134191 |
# | r1 role_mls_op r2
|
|
Chris PeBenito |
134191 |
# | t1 op t2
|
|
Chris PeBenito |
134191 |
# | l1 role_mls_op l2
|
|
Chris PeBenito |
134191 |
# | l1 role_mls_op h2
|
|
Chris PeBenito |
134191 |
# | h1 role_mls_op l2
|
|
Chris PeBenito |
134191 |
# | h1 role_mls_op h2
|
|
Chris PeBenito |
134191 |
# | l1 role_mls_op h1
|
|
Chris PeBenito |
134191 |
# | l2 role_mls_op h2
|
|
Chris PeBenito |
134191 |
# | u1 op names
|
|
Chris PeBenito |
134191 |
# | u2 op names
|
|
Chris PeBenito |
134191 |
# | r1 op names
|
|
Chris PeBenito |
134191 |
# | r2 op names
|
|
Chris PeBenito |
134191 |
# | t1 op names
|
|
Chris PeBenito |
134191 |
# | t2 op names
|
|
Chris PeBenito |
134191 |
# | u3 op names (NOTE: this is only available for mlsvalidatetrans)
|
|
Chris PeBenito |
134191 |
# | r3 op names (NOTE: this is only available for mlsvalidatetrans)
|
|
Chris PeBenito |
134191 |
# | t3 op names (NOTE: this is only available for mlsvalidatetrans)
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# op : == | !=
|
|
Chris PeBenito |
134191 |
# role_mls_op : == | != | eq | dom | domby | incomp
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# names : name | { name_list }
|
|
Chris PeBenito |
134191 |
# name_list : name | name_list name#
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the file classes
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# make sure these file classes are "single level"
|
|
Chris PeBenito |
134191 |
mlsconstrain { file lnk_file fifo_file } { create relabelto }
|
|
Chris PeBenito |
134191 |
( l2 eq h2 );
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# new file labels must be dominated by the relabling subject clearance
|
|
Chris PeBenito |
134191 |
mlsconstrain { dir file lnk_file chr_file blk_file sock_file fifo_file } relabelto
|
|
Chris PeBenito |
134191 |
( h1 dom h2 );
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the file "read" ops (note the check is dominance of the low level)
|
|
Chris PeBenito |
134191 |
mlsconstrain { dir file lnk_file chr_file blk_file sock_file fifo_file } { read getattr execute }
|
|
Chris PeBenito |
134191 |
(( l1 dom l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsfilereadtoclr ) and ( h1 dom l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsfileread ) or
|
|
Chris PeBenito |
134191 |
( t2 == mlstrustedobject ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
mlsconstrain dir search
|
|
Chris PeBenito |
134191 |
(( l1 dom l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsfilereadtoclr ) and ( h1 dom l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsfileread ) or
|
|
Chris PeBenito |
134191 |
( t2 == mlstrustedobject ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the "single level" file "write" ops
|
|
Chris PeBenito |
134191 |
mlsconstrain { file lnk_file fifo_file } { write create setattr relabelfrom append unlink link rename mounton }
|
|
Chris PeBenito |
134191 |
(( l1 eq l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsfilewritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsfilewrite ) or
|
|
Chris PeBenito |
134191 |
( t2 == mlstrustedobject ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the "ranged" file "write" ops
|
|
Chris PeBenito |
134191 |
mlsconstrain { dir chr_file blk_file sock_file } { write create setattr relabelfrom append unlink link rename mounton }
|
|
Chris PeBenito |
134191 |
((( l1 dom l2 ) and ( l1 domby h2 )) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsfilewritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsfilewrite ) or
|
|
Chris PeBenito |
134191 |
( t2 == mlstrustedobject ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
mlsconstrain dir { add_name remove_name reparent rmdir }
|
|
Chris PeBenito |
134191 |
((( l1 dom l2 ) and ( l1 domby h2 )) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsfilewritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsfilewrite ) or
|
|
Chris PeBenito |
134191 |
( t2 == mlstrustedobject ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# these access vectors have no MLS restrictions
|
|
Chris PeBenito |
134191 |
# { dir file lnk_file chr_file blk_file sock_file fifo_file } { ioctl lock swapon quotaon }
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# file { execute_no_trans entrypoint }
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the file upgrade/downgrade rule
|
|
Chris PeBenito |
134191 |
mlsvalidatetrans { file lnk_file chr_file blk_file sock_file fifo_file }
|
|
Chris PeBenito |
134191 |
((( l1 eq l2 ) or
|
|
Chris PeBenito |
134191 |
(( t3 == mlsfileupgrade ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
(( t3 == mlsfiledowngrade ) and ( l1 dom l2 )) or
|
|
Chris PeBenito |
134191 |
(( t3 == mlsfiledowngrade ) and ( l1 incomp l2 ))) and
|
|
Chris PeBenito |
134191 |
(( h1 eq h2 ) or
|
|
Chris PeBenito |
134191 |
(( t3 == mlsfileupgrade ) and ( h1 domby h2 )) or
|
|
Chris PeBenito |
134191 |
(( t3 == mlsfiledowngrade ) and ( h1 dom h2 )) or
|
|
Chris PeBenito |
134191 |
(( t3 == mlsfiledowngrade ) and ( h1 incomp h2 ))));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# create can also require the upgrade/downgrade checks if the creating process
|
|
Chris PeBenito |
134191 |
# has used setfscreate (note that both the high and low level of the object
|
|
Chris PeBenito |
134191 |
# default to the process sensitivity level)
|
|
Chris PeBenito |
134191 |
mlsconstrain { dir file lnk_file chr_file blk_file sock_file fifo_file } create
|
|
Chris PeBenito |
134191 |
((( l1 eq l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsfileupgrade ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsfiledowngrade ) and ( l1 dom l2 )) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsfiledowngrade ) and ( l1 incomp l2 ))) and
|
|
Chris PeBenito |
134191 |
(( l1 eq h2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsfileupgrade ) and ( l1 domby h2 )) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsfiledowngrade ) and ( l1 dom h2 )) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsfiledowngrade ) and ( l1 incomp h2 ))));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the filesystem class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# new filesystem labels must be dominated by the relabling subject clearance
|
|
Chris PeBenito |
134191 |
mlsconstrain filesystem relabelto
|
|
Chris PeBenito |
134191 |
( h1 dom h2 );
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the filesystem "read" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain filesystem { getattr quotaget }
|
|
Chris PeBenito |
134191 |
(( l1 dom l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsfilereadtoclr ) and ( h1 dom l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsfileread ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# all the filesystem "write" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain filesystem { mount remount unmount relabelfrom quotamod }
|
|
Chris PeBenito |
134191 |
(( l1 eq l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsfilewritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsfilewrite ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# these access vectors have no MLS restrictions
|
|
Chris PeBenito |
134191 |
# filesystem { transition associate }
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the socket classes
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# new socket labels must be dominated by the relabling subject clearance
|
|
Chris PeBenito |
134191 |
mlsconstrain { socket tcp_socket udp_socket rawip_socket netlink_socket packet_socket key_socket unix_stream_socket unix_dgram_socket netlink_route_socket netlink_firewall_socket netlink_tcpdiag_socket netlink_nflog_socket netlink_xfrm_socket netlink_selinux_socket netlink_audit_socket netlink_ip6fw_socket netlink_dnrt_socket } relabelto
|
|
Chris PeBenito |
134191 |
( h1 dom h2 );
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the socket "read" ops (note that the we check dominance of the low level)
|
|
Chris PeBenito |
134191 |
mlsconstrain { socket tcp_socket udp_socket rawip_socket netlink_socket packet_socket key_socket unix_stream_socket unix_dgram_socket netlink_route_socket netlink_firewall_socket netlink_tcpdiag_socket netlink_nflog_socket netlink_xfrm_socket netlink_selinux_socket netlink_audit_socket netlink_ip6fw_socket netlink_dnrt_socket } { read getattr listen accept getopt recvfrom recv_msg }
|
|
Chris PeBenito |
134191 |
(( l1 dom l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsnetreadtoclr ) and ( h1 dom l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsnetread ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
mlsconstrain { tcp_socket unix_stream_socket } acceptfrom
|
|
Chris PeBenito |
134191 |
(( l1 dom l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsnetreadtoclr ) and ( h1 dom l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsnetread ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
mlsconstrain { netlink_route_socket netlink_firewall_socket netlink_tcpdiag_socket netlink_xfrm_socket netlink_audit_socket netlink_ip6fw_socket } nlmsg_read
|
|
Chris PeBenito |
134191 |
(( l1 dom l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsnetreadtoclr ) and ( h1 dom l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsnetread ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the socket "write" ops
|
|
Chris PeBenito |
134191 |
mlsconstrain { socket tcp_socket udp_socket rawip_socket netlink_socket packet_socket key_socket unix_stream_socket unix_dgram_socket netlink_route_socket netlink_firewall_socket netlink_tcpdiag_socket netlink_nflog_socket netlink_xfrm_socket netlink_selinux_socket netlink_audit_socket netlink_ip6fw_socket netlink_dnrt_socket } { setattr relabelfrom connect setopt shutdown }
|
|
Chris PeBenito |
134191 |
((( l1 dom l2 ) and ( l1 domby h2 )) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsnetwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsnetwrite ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
mlsconstrain { tcp_socket unix_stream_socket } { connectto newconn }
|
|
Chris PeBenito |
134191 |
((( l1 dom l2 ) and ( l1 domby h2 )) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsnetwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsnetwrite ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# these access vectors have no MLS restrictions
|
|
Chris PeBenito |
134191 |
# { socket tcp_socket udp_socket rawip_socket netlink_socket packet_socket key_socket unix_stream_socket unix_dgram_socket netlink_route_socket netlink_firewall_socket netlink_tcpdiag_socket netlink_nflog_socket netlink_xfrm_socket netlink_selinux_socket netlink_audit_socket netlink_ip6fw_socket netlink_dnrt_socket } { ioctl write create lock append bind sendto send_msg name_bind }
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# { tcp_socket udp_socket rawip_socket } node_bind
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# { netlink_route_socket netlink_firewall_socket netlink_tcpdiag_socket netlink_xfrm_socket netlink_audit_socket netlink_ip6fw_socket } nlmsg_write
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the ipc classes
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the ipc "read" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain { ipc sem msgq shm } { getattr read unix_read }
|
|
Chris PeBenito |
134191 |
(( l1 dom l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsipcreadtoclr ) and ( h1 dom l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsipcread ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
mlsconstrain msg receive
|
|
Chris PeBenito |
134191 |
(( l1 dom l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsipcreadtoclr ) and ( h1 dom l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsipcread ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the ipc "write" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain { ipc sem msgq shm } { create destroy setattr write unix_write }
|
|
Chris PeBenito |
134191 |
(( l1 eq l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsipcwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsipcwrite ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
mlsconstrain msgq enqueue
|
|
Chris PeBenito |
134191 |
(( l1 eq l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsipcwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsipcwrite ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
mlsconstrain shm lock
|
|
Chris PeBenito |
134191 |
(( l1 eq l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsipcwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsipcwrite ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
mlsconstrain msg send
|
|
Chris PeBenito |
134191 |
(( l1 eq l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsipcwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsipcwrite ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# these access vectors have no MLS restrictions
|
|
Chris PeBenito |
134191 |
# { ipc sem msgq shm } associate
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the fd class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# these access vectors have no MLS restrictions
|
|
Chris PeBenito |
134191 |
# fd use
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the node class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# these access vectors have no MLS restrictions
|
|
Chris PeBenito |
134191 |
# node { tcp_recv tcp_send udp_recv udp_send rawip_recv rawip_send enforce_dest }
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the netif class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# these access vectors have no MLS restrictions
|
|
Chris PeBenito |
134191 |
# netif { tcp_recv tcp_send udp_recv udp_send rawip_recv rawip_send enforce_dest }
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the process class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# new process labels must be dominated by the relabling subject clearance and
|
|
Chris PeBenito |
134191 |
# sensitivity level changes require privilege
|
|
Chris PeBenito |
134191 |
mlsconstrain process { transition dyntransition }
|
|
Chris PeBenito |
134191 |
(( h1 dom h2 ) and
|
|
Chris PeBenito |
134191 |
(( l1 eq l2 ) or ( t1 == mlsprocsetsl )));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# all the process "read" ops
|
|
Chris PeBenito |
134191 |
mlsconstrain process { getsched getsession getpgid getcap getattr ptrace share }
|
|
Chris PeBenito |
134191 |
(( l1 dom l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsprocreadtoclr ) and ( h1 dom l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsprocread ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# all the process "write" ops (note the check is equality on the low level)
|
|
Chris PeBenito |
134191 |
mlsconstrain process { sigkill sigstop signal setsched setpgid setcap setexec setfscreate setcurrent ptrace share }
|
|
Chris PeBenito |
134191 |
(( l1 eq l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsprocwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsprocwrite ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# these access vectors have no MLS restrictions
|
|
Chris PeBenito |
134191 |
# process { fork sigchld signull noatsecure siginh setrlimit rlimitinh}
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the security class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# these access vectors have no MLS restrictions
|
|
Chris PeBenito |
134191 |
# security *
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the system class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# these access vectors have no MLS restrictions
|
|
Chris PeBenito |
134191 |
# system *
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the capability class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# these access vectors have no MLS restrictions
|
|
Chris PeBenito |
134191 |
# capability *
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the passwd class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# these access vectors have no MLS restrictions
|
|
Chris PeBenito |
134191 |
# passwd *
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the drawable class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the drawable "read" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain drawable { getattr copy }
|
|
Chris PeBenito |
134191 |
(( l1 dom l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsxwinreadtoclr ) and ( h1 dom l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsxwinread ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the drawable "write" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain drawable { create destroy draw copy }
|
|
Chris PeBenito |
134191 |
(( l1 eq l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsxwinwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsxwinwrite ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the gc class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the gc "read" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain gc getattr
|
|
Chris PeBenito |
134191 |
(( l1 dom l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsxwinreadtoclr ) and ( h1 dom l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsxwinread ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the gc "write" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain gc { create free setattr }
|
|
Chris PeBenito |
134191 |
(( l1 eq l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsxwinwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsxwinwrite ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the window class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the window "read" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain window { listprop getattr enumerate mousemotion inputevent drawevent windowchangeevent windowchangerequest serverchangeevent extensionevent }
|
|
Chris PeBenito |
134191 |
(( l1 dom l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsxwinreadtoclr ) and ( h1 dom l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsxwinread ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the window "write" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain window { addchild create destroy chstack chproplist chprop setattr setfocus move chselection chparent ctrllife transparent clientcomevent }
|
|
Chris PeBenito |
134191 |
(( l1 eq l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsxwinwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsxwinwrite ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# these access vectors have no MLS restrictions
|
|
Chris PeBenito |
134191 |
# window { map unmap }
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the font class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the font "read" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain font { load getattr }
|
|
Chris PeBenito |
134191 |
(( l1 dom l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsxwinreadtoclr ) and ( h1 dom l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsxwinread ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the font "write" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain font free
|
|
Chris PeBenito |
134191 |
(( l1 eq l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsxwinwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsxwinwrite ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# these access vectors have no MLS restrictions
|
|
Chris PeBenito |
134191 |
# font use
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the colormap class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the colormap "read" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain colormap { list read getattr }
|
|
Chris PeBenito |
134191 |
(( l1 dom l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsxwinreadtoclr ) and ( h1 dom l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsxwinread ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the colormap "write" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain colormap { create free install uninstall store setattr }
|
|
Chris PeBenito |
134191 |
(( l1 eq l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsxwinwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsxwinwrite ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the property class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the property "read" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain property { read }
|
|
Chris PeBenito |
134191 |
(( l1 dom l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsxwinreadtoclr ) and ( h1 dom l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsxwinread ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the property "write" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain property { create free write }
|
|
Chris PeBenito |
134191 |
(( l1 eq l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsxwinwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsxwinwrite ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the cursor class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the cursor "write" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain cursor { create createglyph free assign setattr }
|
|
Chris PeBenito |
134191 |
(( l1 eq l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsxwinwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsxwinwrite ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the xclient class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the xclient "write" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain xclient kill
|
|
Chris PeBenito |
134191 |
(( l1 eq l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsxwinwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsxwinwrite ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the xinput class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the xinput "read" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain xinput { lookup getattr mousemotion }
|
|
Chris PeBenito |
134191 |
(( l1 dom l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsxwinreadtoclr ) and ( h1 dom l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsxwinread ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the xinput "write" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain xinput { setattr setfocus warppointer activegrab passivegrab ungrab bell relabelinput }
|
|
Chris PeBenito |
134191 |
(( l1 eq l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsxwinwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsxwinwrite ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the xserver class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the xserver "read" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain xserver { gethostlist getfontpath getattr screensaver }
|
|
Chris PeBenito |
134191 |
(( l1 dom l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsxwinreadtoclr ) and ( h1 dom l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsxwinread ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the xserver "write" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain xserver { sethostlist setfontpath grab ungrab screensaver }
|
|
Chris PeBenito |
134191 |
(( l1 eq l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsxwinwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsxwinwrite ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the xextension class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the xextension "read" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain xextension query
|
|
Chris PeBenito |
134191 |
(( l1 dom l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsxwinreadtoclr ) and ( h1 dom l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsxwinread ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# the xextension "write" ops (implicit single level)
|
|
Chris PeBenito |
134191 |
mlsconstrain xextension use
|
|
Chris PeBenito |
134191 |
(( l1 eq l2 ) or
|
|
Chris PeBenito |
134191 |
(( t1 == mlsxwinwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
|
|
Chris PeBenito |
134191 |
( t1 == mlsxwinwrite ));
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the pax class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# these access vectors have no MLS restrictions
|
|
Chris PeBenito |
134191 |
# pax { pageexec emutramp mprotect randmmap randexec segmexec }
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the dbus class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# these access vectors have no MLS restrictions
|
|
Chris PeBenito |
134191 |
# dbus { acquire_svc send_msg }
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the nscd class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# these access vectors have no MLS restrictions
|
|
Chris PeBenito |
134191 |
# nscd { getpwd getgrp gethost getstat admin shmempwd shmemgrp shmemhost }
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
# MLS policy for the association class
|
|
Chris PeBenito |
134191 |
#
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
# these access vectors have no MLS restrictions
|
|
Chris PeBenito |
134191 |
# association { sendto recvfrom }
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
attribute mlsfileread;
|
|
Chris PeBenito |
134191 |
attribute mlsfilereadtoclr;
|
|
Chris PeBenito |
134191 |
attribute mlsfilewrite;
|
|
Chris PeBenito |
134191 |
attribute mlsfilewritetoclr;
|
|
Chris PeBenito |
134191 |
attribute mlsfileupgrade;
|
|
Chris PeBenito |
134191 |
attribute mlsfiledowngrade;
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
attribute mlsnetread;
|
|
Chris PeBenito |
134191 |
attribute mlsnetreadtoclr;
|
|
Chris PeBenito |
134191 |
attribute mlsnetwrite;
|
|
Chris PeBenito |
134191 |
attribute mlsnetwritetoclr;
|
|
Chris PeBenito |
134191 |
attribute mlsnetupgrade;
|
|
Chris PeBenito |
134191 |
attribute mlsnetdowngrade;
|
|
Chris PeBenito |
134191 |
attribute mlsnetbindall;
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
attribute mlsipcread;
|
|
Chris PeBenito |
134191 |
attribute mlsipcreadtoclr;
|
|
Chris PeBenito |
134191 |
attribute mlsipcwrite;
|
|
Chris PeBenito |
134191 |
attribute mlsipcwritetoclr;
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
attribute mlsprocread;
|
|
Chris PeBenito |
134191 |
attribute mlsprocreadtoclr;
|
|
Chris PeBenito |
134191 |
attribute mlsprocwrite;
|
|
Chris PeBenito |
134191 |
attribute mlsprocwritetoclr;
|
|
Chris PeBenito |
134191 |
attribute mlsprocsetsl;
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
attribute mlsxwinread;
|
|
Chris PeBenito |
134191 |
attribute mlsxwinreadtoclr;
|
|
Chris PeBenito |
134191 |
attribute mlsxwinwrite;
|
|
Chris PeBenito |
134191 |
attribute mlsxwinwritetoclr;
|
|
Chris PeBenito |
134191 |
attribute mlsxwinupgrade;
|
|
Chris PeBenito |
134191 |
attribute mlsxwindowngrade;
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
attribute mlstrustedobject;
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
attribute privrangetrans;
|
|
Chris PeBenito |
134191 |
attribute mlsrangetrans;
|
|
Chris PeBenito |
134191 |
|
|
Chris PeBenito |
134191 |
') dnl end enable_mls
|