Chris PeBenito 134191b
ifdef(`enable_mls',`
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# Define sensitivities 
Chris PeBenito 134191b
#
Chris PeBenito e070dd2
# Domination of sensitivities is in increasin
Chris PeBenito e070dd2
# numerical order, with s0 being the lowest
Chris PeBenito 134191b
Chris PeBenito e070dd2
gen_sens(mls_num_sens)
Chris PeBenito 2705f9a
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# Define the categories
Chris PeBenito 134191b
#
Chris PeBenito e070dd2
# Generate declarations
Chris PeBenito 134191b
Chris PeBenito e070dd2
gen_cats(mls_num_cats)
Chris PeBenito 134191b
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# Each MLS level specifies a sensitivity and zero or more categories which may
Chris PeBenito 134191b
# be associated with that sensitivity.
Chris PeBenito 134191b
#
Chris PeBenito e070dd2
# Generate levels from all sensitivities
Chris PeBenito e070dd2
# with all categories
Chris PeBenito 134191b
Chris PeBenito e070dd2
gen_levels(mls_num_sens,mls_num_cats)
Chris PeBenito 134191b
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# Define the MLS policy
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# mlsconstrain class_set perm_set expression ;
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# mlsvalidatetrans class_set expression ;
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# expression : ( expression )
Chris PeBenito 134191b
#	     | not expression
Chris PeBenito 134191b
#	     | expression and expression
Chris PeBenito 134191b
#	     | expression or expression
Chris PeBenito 134191b
#	     | u1 op u2
Chris PeBenito 134191b
#	     | r1 role_mls_op r2
Chris PeBenito 134191b
#	     | t1 op t2
Chris PeBenito 134191b
#	     | l1 role_mls_op l2
Chris PeBenito 134191b
#	     | l1 role_mls_op h2
Chris PeBenito 134191b
#	     | h1 role_mls_op l2
Chris PeBenito 134191b
#	     | h1 role_mls_op h2
Chris PeBenito 134191b
#	     | l1 role_mls_op h1
Chris PeBenito 134191b
#	     | l2 role_mls_op h2
Chris PeBenito 134191b
#	     | u1 op names
Chris PeBenito 134191b
#	     | u2 op names
Chris PeBenito 134191b
#	     | r1 op names
Chris PeBenito 134191b
#	     | r2 op names
Chris PeBenito 134191b
#	     | t1 op names
Chris PeBenito 134191b
#	     | t2 op names
Chris PeBenito 134191b
#	     | u3 op names (NOTE: this is only available for mlsvalidatetrans)
Chris PeBenito 134191b
#	     | r3 op names (NOTE: this is only available for mlsvalidatetrans)
Chris PeBenito 134191b
#	     | t3 op names (NOTE: this is only available for mlsvalidatetrans)
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# op : == | !=
Chris PeBenito 134191b
# role_mls_op : == | != | eq | dom | domby | incomp
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# names : name | { name_list }
Chris PeBenito 2705f9a
# name_list : name | name_list name
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the file classes
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito 134191b
# make sure these file classes are "single level"
Chris PeBenito 134191b
mlsconstrain { file lnk_file fifo_file } { create relabelto }
Chris PeBenito 134191b
	( l2 eq h2 );
Chris PeBenito 134191b
Chris PeBenito bf080a4
# new file labels must be dominated by the relabeling subjects clearance
Chris PeBenito 134191b
mlsconstrain { dir file lnk_file chr_file blk_file sock_file fifo_file } relabelto
Chris PeBenito 134191b
	( h1 dom h2 );
Chris PeBenito 134191b
Chris PeBenito 134191b
# the file "read" ops (note the check is dominance of the low level)
Chris PeBenito 134191b
mlsconstrain { dir file lnk_file chr_file blk_file sock_file fifo_file } { read getattr execute }
Chris PeBenito 134191b
	(( l1 dom l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsfilereadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsfileread ) or
Chris PeBenito 134191b
	 ( t2 == mlstrustedobject ));
Chris PeBenito 134191b
Chris PeBenito 134191b
mlsconstrain dir search
Chris PeBenito 134191b
	(( l1 dom l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsfilereadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsfileread ) or
Chris PeBenito 134191b
	 ( t2 == mlstrustedobject ));
Chris PeBenito 134191b
Chris PeBenito 134191b
# the "single level" file "write" ops
Chris PeBenito a5e2133
mlsconstrain { file lnk_file fifo_file dir chr_file blk_file sock_file } { write create setattr relabelfrom append unlink link rename mounton }
Chris PeBenito 134191b
	(( l1 eq l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsfilewritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito f497b8d
	 (( t2 == mlsfilewriteinrange ) and ( l1 dom l2 ) and ( h1 domby h2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsfilewrite ) or
Chris PeBenito 134191b
	 ( t2 == mlstrustedobject ));
Chris PeBenito 134191b
Chris PeBenito d62c088
# Directory "write" ops
Chris PeBenito 134191b
mlsconstrain dir { add_name remove_name reparent rmdir }
Chris PeBenito d62c088
	(( l1 eq l2 ) or
Chris PeBenito d62c088
	 (( t1 == mlsfilewriteinrange ) and ( l1 dom l2 ) and ( l1 domby h2 )) or
Chris PeBenito 134191b
	 (( t1 == mlsfilewritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsfilewrite ) or
Chris PeBenito 134191b
	 ( t2 == mlstrustedobject ));
Chris PeBenito 134191b
Chris PeBenito 134191b
# these access vectors have no MLS restrictions
Chris PeBenito 134191b
# { dir file lnk_file chr_file blk_file sock_file fifo_file } { ioctl lock swapon quotaon }
Chris PeBenito 134191b
#
Chris PeBenito 2705f9a
# { file chr_file } { execute_no_trans entrypoint execmod }
Chris PeBenito 134191b
Chris PeBenito 134191b
# the file upgrade/downgrade rule
Chris PeBenito 2705f9a
mlsvalidatetrans { dir file lnk_file chr_file blk_file sock_file fifo_file }
Chris PeBenito 134191b
	((( l1 eq l2 ) or
Chris PeBenito 134191b
	  (( t3 == mlsfileupgrade ) and ( l1 domby l2 )) or
Chris PeBenito 134191b
	  (( t3 == mlsfiledowngrade ) and ( l1 dom l2 )) or
Chris PeBenito 134191b
	  (( t3 == mlsfiledowngrade ) and ( l1 incomp l2 ))) and
Chris PeBenito 134191b
	 (( h1 eq h2 ) or
Chris PeBenito 134191b
	  (( t3 == mlsfileupgrade ) and ( h1 domby h2 )) or
Chris PeBenito 134191b
	  (( t3 == mlsfiledowngrade ) and ( h1 dom h2 )) or
Chris PeBenito 134191b
	  (( t3 == mlsfiledowngrade ) and ( h1 incomp h2 ))));
Chris PeBenito 134191b
Chris PeBenito 134191b
# create can also require the upgrade/downgrade checks if the creating process
Chris PeBenito 134191b
# has used setfscreate (note that both the high and low level of the object
Chris PeBenito 134191b
# default to the process sensitivity level)
Chris PeBenito 134191b
mlsconstrain { dir file lnk_file chr_file blk_file sock_file fifo_file } create
Chris PeBenito 134191b
	((( l1 eq l2 ) or
Chris PeBenito 134191b
	  (( t1 == mlsfileupgrade ) and ( l1 domby l2 )) or
Chris PeBenito 134191b
	  (( t1 == mlsfiledowngrade ) and ( l1 dom l2 )) or
Chris PeBenito 134191b
	  (( t1 == mlsfiledowngrade ) and ( l1 incomp l2 ))) and
Chris PeBenito 134191b
	 (( l1 eq h2 ) or
Chris PeBenito 134191b
	  (( t1 == mlsfileupgrade ) and ( l1 domby h2 )) or
Chris PeBenito 134191b
	  (( t1 == mlsfiledowngrade ) and ( l1 dom h2 )) or
Chris PeBenito 134191b
	  (( t1 == mlsfiledowngrade ) and ( l1 incomp h2 ))));
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the filesystem class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito bf080a4
# new filesystem labels must be dominated by the relabeling subjects clearance
Chris PeBenito 134191b
mlsconstrain filesystem relabelto
Chris PeBenito 134191b
	( h1 dom h2 );
Chris PeBenito 134191b
Chris PeBenito 134191b
# the filesystem "read" ops (implicit single level)
Chris PeBenito 134191b
mlsconstrain filesystem { getattr quotaget }
Chris PeBenito 134191b
	(( l1 dom l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsfilereadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsfileread ));
Chris PeBenito 134191b
Chris PeBenito 134191b
# all the filesystem "write" ops (implicit single level)
Chris PeBenito 134191b
mlsconstrain filesystem { mount remount unmount relabelfrom quotamod }
Chris PeBenito 134191b
	(( l1 eq l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsfilewritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsfilewrite ));
Chris PeBenito 134191b
Chris PeBenito 134191b
# these access vectors have no MLS restrictions
Chris PeBenito 134191b
# filesystem { transition associate }
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the socket classes
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito bf080a4
# new socket labels must be dominated by the relabeling subjects clearance
Chris PeBenito 134191b
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 134191b
	( h1 dom h2 );
Chris PeBenito 134191b
Chris PeBenito d62c088
# the socket "read+write" ops
Chris PeBenito d62c088
# (Socket FDs are generally bidirectional, equivalent to open(..., O_RDWR),
Chris PeBenito d62c088
# require equal levels for unprivileged subjects, or read *and* write overrides)
Chris PeBenito d62c088
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 } { accept connect }
Chris PeBenito d62c088
	(( l1 eq l2 ) or
Chris PeBenito d62c088
	 (((( t1 == mlsnetreadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito d62c088
	   ( t1 == mlsnetread )) and
Chris PeBenito d62c088
	  ((( t1 == mlsnetwriteranged ) and ( l1 dom l2 ) and ( l1 domby h2 )) or
Chris PeBenito d62c088
	   (( t1 == mlsnetwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito d62c088
	   ( t1 == mlsnetwrite ))));
Chris PeBenito d62c088
Chris PeBenito d62c088
Chris PeBenito 2705f9a
# the socket "read" ops (note the check is dominance of the low level)
Chris PeBenito 130f8a4
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 recv_msg }
Chris PeBenito 134191b
	(( l1 dom l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsnetreadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsnetread ));
Chris PeBenito 134191b
Chris PeBenito 134191b
mlsconstrain { netlink_route_socket netlink_firewall_socket netlink_tcpdiag_socket netlink_xfrm_socket netlink_audit_socket netlink_ip6fw_socket } nlmsg_read
Chris PeBenito 134191b
	(( l1 dom l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsnetreadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsnetread ));
Chris PeBenito 134191b
Chris PeBenito 134191b
# the socket "write" ops
Chris PeBenito 2705f9a
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 } { write setattr relabelfrom connect setopt shutdown }
Chris PeBenito d62c088
	(( l1 eq l2 ) or 
Chris PeBenito d62c088
	 (( t1 == mlsnetwriteranged ) and ( l1 dom l2 ) and ( l1 domby h2 )) or
Chris PeBenito 134191b
	 (( t1 == mlsnetwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsnetwrite ));
Chris PeBenito 134191b
Chris PeBenito d62c088
# used by netlabel to restrict normal domains to same level connections
Chris PeBenito b50f2ee
mlsconstrain { tcp_socket udp_socket rawip_socket } recvfrom
Chris PeBenito 130f8a4
	(( l1 eq l2 ) or
Chris PeBenito 130f8a4
	 (( t1 == mlsnetreadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito d62c088
	 ( t1 == mlsnetread ));
Chris PeBenito 130f8a4
Chris PeBenito 134191b
# these access vectors have no MLS restrictions
Chris PeBenito 2705f9a
# { 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 create lock append bind sendto send_msg name_bind }
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# { tcp_socket udp_socket rawip_socket } node_bind
Chris PeBenito 134191b
#
Chris PeBenito 2705f9a
# { tcp_socket unix_stream_socket } { connectto newconn acceptfrom }
Chris PeBenito 2705f9a
#
Chris PeBenito 63e0a1e
# tcp_socket name_connect
Chris PeBenito 63e0a1e
#
Chris PeBenito 134191b
# { netlink_route_socket netlink_firewall_socket netlink_tcpdiag_socket netlink_xfrm_socket netlink_audit_socket netlink_ip6fw_socket } nlmsg_write
Chris PeBenito 134191b
#
Chris PeBenito 63e0a1e
# netlink_audit_socket { nlmsg_relay nlmsg_readpriv }
Chris PeBenito 63e0a1e
#
Chris PeBenito 63e0a1e
# netlink_kobject_uevent_socket *
Chris PeBenito 63e0a1e
#
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the ipc classes
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito 134191b
# the ipc "read" ops (implicit single level)
Chris PeBenito 134191b
mlsconstrain { ipc sem msgq shm } { getattr read unix_read }
Chris PeBenito 134191b
	(( l1 dom l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsipcreadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsipcread ));
Chris PeBenito 134191b
Chris PeBenito 134191b
mlsconstrain msg receive
Chris PeBenito 134191b
	(( l1 dom l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsipcreadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsipcread ));
Chris PeBenito 134191b
Chris PeBenito 134191b
# the ipc "write" ops (implicit single level)
Chris PeBenito 134191b
mlsconstrain { ipc sem msgq shm } { create destroy setattr write unix_write }
Chris PeBenito 134191b
	(( l1 eq l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsipcwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsipcwrite ));
Chris PeBenito 134191b
Chris PeBenito 134191b
mlsconstrain msgq enqueue
Chris PeBenito 134191b
	(( l1 eq l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsipcwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsipcwrite ));
Chris PeBenito 134191b
Chris PeBenito 134191b
mlsconstrain shm lock
Chris PeBenito 134191b
	(( l1 eq l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsipcwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsipcwrite ));
Chris PeBenito 134191b
Chris PeBenito 134191b
mlsconstrain msg send
Chris PeBenito 134191b
	(( l1 eq l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsipcwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsipcwrite ));
Chris PeBenito 134191b
Chris PeBenito 134191b
# these access vectors have no MLS restrictions
Chris PeBenito 134191b
# { ipc sem msgq shm } associate
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the fd class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito cf7af13
# No sharing of open file descriptors between levels unless
Chris PeBenito cf7af13
# the process type is authorized to use fds created by 
Chris PeBenito cf7af13
# other levels (mlsfduse) or the fd type is authorized to
Chris PeBenito cf7af13
# shared among levels (mlsfdshare). 
Chris PeBenito cf7af13
mlsconstrain fd use (
Chris PeBenito cf7af13
	l1 eq l2
Chris PeBenito cf7af13
	or t1 == mlsfduse
Chris PeBenito cf7af13
	or t2 == mlsfdshare
Chris PeBenito cf7af13
);
Chris PeBenito 134191b
Chris PeBenito 134191b
#
Chris PeBenito 2705f9a
# MLS policy for the network object classes
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito 2705f9a
# the netif/node "read" ops (implicit single level socket doing the read)
Chris PeBenito 2705f9a
#                           (note the check is dominance of the low level)
Chris PeBenito 2705f9a
mlsconstrain { node netif } { tcp_recv udp_recv rawip_recv }
Chris PeBenito 2705f9a
	(( l1 dom l2 ) or ( t1 == mlsnetrecvall ));
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
# the netif/node "write" ops (implicit single level socket doing the write)
Chris PeBenito 2705f9a
mlsconstrain { netif node } { tcp_send udp_send rawip_send }
Chris PeBenito d62c088
	(( l1 eq l2 ) or
Chris PeBenito d62c088
	(( t1 == mlsnetwriteranged ) and ( l1 dom l2 ) and ( l1 domby h2 )));
Chris PeBenito 2705f9a
Chris PeBenito 134191b
# these access vectors have no MLS restrictions
Chris PeBenito 63e0a1e
# node enforce_dest
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the process class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito bf080a4
# new process labels must be dominated by the relabeling subjects clearance
Chris PeBenito 2705f9a
# and sensitivity level changes require privilege
Chris PeBenito 2705f9a
mlsconstrain process transition
Chris PeBenito 2705f9a
	(( h1 dom h2 ) and
Chris PeBenito 2705f9a
	 (( l1 eq l2 ) or ( t1 == mlsprocsetsl ) or
Chris PeBenito 2705f9a
	  (( t1 == privrangetrans ) and ( t2 == mlsrangetrans ))));
Chris PeBenito 2705f9a
mlsconstrain process dyntransition
Chris PeBenito 134191b
	(( h1 dom h2 ) and
Chris PeBenito 134191b
	 (( l1 eq l2 ) or ( t1 == mlsprocsetsl )));
Chris PeBenito 134191b
Chris PeBenito 134191b
# all the process "read" ops
Chris PeBenito 134191b
mlsconstrain process { getsched getsession getpgid getcap getattr ptrace share }
Chris PeBenito 134191b
	(( l1 dom l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsprocreadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsprocread ));
Chris PeBenito 134191b
Chris PeBenito 134191b
# all the process "write" ops (note the check is equality on the low level)
Chris PeBenito 134191b
mlsconstrain process { sigkill sigstop signal setsched setpgid setcap setexec setfscreate setcurrent ptrace share }
Chris PeBenito 134191b
	(( l1 eq l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsprocwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsprocwrite ));
Chris PeBenito 134191b
Chris PeBenito 134191b
# these access vectors have no MLS restrictions
Chris PeBenito 63e0a1e
# process { fork sigchld signull noatsecure siginh setrlimit rlimitinh execmem execstack execheap }
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the security class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito 134191b
# these access vectors have no MLS restrictions
Chris PeBenito 134191b
# security *
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the system class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito 134191b
# these access vectors have no MLS restrictions
Chris PeBenito 134191b
# system *
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the capability class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito 134191b
# these access vectors have no MLS restrictions
Chris PeBenito 134191b
# capability *
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 2705f9a
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the passwd class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito 134191b
# these access vectors have no MLS restrictions
Chris PeBenito 134191b
# passwd *
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the drawable class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito 134191b
# the drawable "read" ops (implicit single level)
Chris PeBenito 134191b
mlsconstrain drawable { getattr copy }
Chris PeBenito 134191b
	(( l1 dom l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsxwinreadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsxwinread ));
Chris PeBenito 134191b
Chris PeBenito 134191b
# the drawable "write" ops (implicit single level)
Chris PeBenito 134191b
mlsconstrain drawable { create destroy draw copy }
Chris PeBenito 134191b
	(( l1 eq l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsxwinwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsxwinwrite ));
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the gc class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito 134191b
# the gc "read" ops (implicit single level)
Chris PeBenito 134191b
mlsconstrain gc getattr
Chris PeBenito 134191b
	(( l1 dom l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsxwinreadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsxwinread ));
Chris PeBenito 134191b
Chris PeBenito 134191b
# the gc "write" ops (implicit single level)
Chris PeBenito 134191b
mlsconstrain gc { create free setattr }
Chris PeBenito 134191b
	(( l1 eq l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsxwinwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsxwinwrite ));
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the window class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito 134191b
# the window "read" ops (implicit single level)
Chris PeBenito 134191b
mlsconstrain window { listprop getattr enumerate mousemotion inputevent drawevent windowchangeevent windowchangerequest serverchangeevent extensionevent }
Chris PeBenito 134191b
	(( l1 dom l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsxwinreadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsxwinread ));
Chris PeBenito 134191b
Chris PeBenito 134191b
# the window "write" ops (implicit single level)
Chris PeBenito 134191b
mlsconstrain window { addchild create destroy chstack chproplist chprop setattr setfocus move chselection chparent ctrllife transparent clientcomevent }
Chris PeBenito 134191b
	(( l1 eq l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsxwinwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito bf080a4
	 ( t1 == mlsxwinwrite ) or
Chris PeBenito bf080a4
	 ( t2 == mlstrustedobject ));
Chris PeBenito 134191b
Chris PeBenito 134191b
# these access vectors have no MLS restrictions
Chris PeBenito 134191b
# window { map unmap }
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the font class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito 134191b
# the font "read" ops (implicit single level)
Chris PeBenito 134191b
mlsconstrain font { load getattr }
Chris PeBenito 134191b
	(( l1 dom l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsxwinreadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsxwinread ));
Chris PeBenito 134191b
Chris PeBenito 134191b
# the font "write" ops (implicit single level)
Chris PeBenito 134191b
mlsconstrain font free
Chris PeBenito 134191b
	(( l1 eq l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsxwinwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsxwinwrite ));
Chris PeBenito 134191b
Chris PeBenito 134191b
# these access vectors have no MLS restrictions
Chris PeBenito 134191b
# font use
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the colormap class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito 134191b
# the colormap "read" ops (implicit single level)
Chris PeBenito 134191b
mlsconstrain colormap { list read getattr }
Chris PeBenito 134191b
	(( l1 dom l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsxwinreadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito bf080a4
	 ( t1 == mlsxwinreadcolormap ) or
Chris PeBenito 134191b
	 ( t1 == mlsxwinread ));
Chris PeBenito 134191b
Chris PeBenito 134191b
# the colormap "write" ops (implicit single level)
Chris PeBenito 134191b
mlsconstrain colormap { create free install uninstall store setattr }
Chris PeBenito 134191b
	(( l1 eq l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsxwinwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito bf080a4
	 ( t1 == mlsxwinwritecolormap ) or
Chris PeBenito 134191b
	 ( t1 == mlsxwinwrite ));
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the property class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito 134191b
# the property "read" ops (implicit single level)
Chris PeBenito 134191b
mlsconstrain property { read }
Chris PeBenito 134191b
	(( l1 dom l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsxwinreadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito bf080a4
	 ( t1 == mlsxwinreadproperty ) or
Chris PeBenito 134191b
	 ( t1 == mlsxwinread ));
Chris PeBenito 134191b
Chris PeBenito 134191b
# the property "write" ops (implicit single level)
Chris PeBenito 134191b
mlsconstrain property { create free write }
Chris PeBenito 134191b
	(( l1 eq l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsxwinwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito bf080a4
	 ( t1 == mlsxwinwriteproperty ) or
Chris PeBenito 134191b
	 ( t1 == mlsxwinwrite ));
Chris PeBenito 134191b
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the cursor class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito 134191b
# the cursor "write" ops (implicit single level)
Chris PeBenito 134191b
mlsconstrain cursor { create createglyph free assign setattr }
Chris PeBenito 134191b
	(( l1 eq l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsxwinwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsxwinwrite ));
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the xclient class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito 134191b
# the xclient "write" ops (implicit single level)
Chris PeBenito 134191b
mlsconstrain xclient kill
Chris PeBenito 134191b
	(( l1 eq l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsxwinwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito 134191b
	 ( t1 == mlsxwinwrite ));
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the xinput class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito bf080a4
# these access vectors have no MLS restrictions
Chris PeBenito bf080a4
# xinput ~{ relabelinput setattr }
Chris PeBenito 134191b
Chris PeBenito 134191b
# the xinput "write" ops (implicit single level)
Chris PeBenito bf080a4
mlsconstrain xinput { setattr relabelinput }
Chris PeBenito 134191b
	(( l1 eq l2 ) or
Chris PeBenito 134191b
	 (( t1 == mlsxwinwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito bf080a4
	 ( t1 == mlsxwinwritexinput ) or
Chris PeBenito 134191b
	 ( t1 == mlsxwinwrite ));
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the xserver class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito bf080a4
# these access vectors have no MLS restrictions
Chris PeBenito bf080a4
# xserver *
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the xextension class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito bf080a4
# these access vectors have no MLS restrictions
Chris PeBenito bf080a4
# xextension { query use }
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the pax class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito 134191b
# these access vectors have no MLS restrictions
Chris PeBenito 134191b
# pax { pageexec emutramp mprotect randmmap randexec segmexec }
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the dbus class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito 134191b
# these access vectors have no MLS restrictions
Chris PeBenito 134191b
# dbus { acquire_svc send_msg }
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the nscd class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito 134191b
# these access vectors have no MLS restrictions
Chris PeBenito 134191b
# nscd { getpwd getgrp gethost getstat admin shmempwd shmemgrp shmemhost }
Chris PeBenito 134191b
Chris PeBenito 134191b
Chris PeBenito 2705f9a
Chris PeBenito 2705f9a
Chris PeBenito 134191b
#
Chris PeBenito 134191b
# MLS policy for the association class
Chris PeBenito 134191b
#
Chris PeBenito 134191b
Chris PeBenito 9b45c60
mlsconstrain association { recvfrom }
Chris PeBenito 9b45c60
	((( l1 dom l2 ) and ( l1 domby h2 )) or
Chris PeBenito 9b45c60
	 (( t1 == mlsnetreadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito 9b45c60
	 ( t1 == mlsnetread ) or
Chris PeBenito 9b45c60
	 ( t2 == unlabeled_t ));
Chris PeBenito 9b45c60
Chris PeBenito 9b45c60
mlsconstrain association { sendto }
Chris PeBenito d62c088
	(( l1 eq l2 ) or
Chris PeBenito d62c088
	 (( t1 == mlsnetwriteranged ) and ( l1 dom l2 ) and ( l1 domby h2 )) or
Chris PeBenito 9b45c60
	 ( t2 == unlabeled_t ));
Chris PeBenito 9b45c60
Chris PeBenito 9b45c60
mlsconstrain association { polmatch }
Chris PeBenito d31d3c1
	(( l1 dom l2 ) and ( h1 domby h2 ));
Chris PeBenito 134191b
Chris PeBenito a8671ae
Chris PeBenito a8671ae
Chris PeBenito a8671ae
#
Chris PeBenito a8671ae
# MLS policy for the context class
Chris PeBenito a8671ae
#
Chris PeBenito a8671ae
Chris PeBenito a8671ae
mlsconstrain context translate
Chris PeBenito a8671ae
	(( h1 dom h2 ) or ( t1 == mlstranslate ));
Chris PeBenito a8671ae
Chris PeBenito c6a60bb
mlsconstrain context contains
Chris PeBenito c6a60bb
	( h1 dom h2 );
Chris PeBenito c6a60bb
Chris PeBenito 9760cbe
#
Chris PeBenito 9760cbe
# MLS policy for database classes
Chris PeBenito 9760cbe
#
Chris PeBenito 9760cbe
Chris PeBenito 9760cbe
# make sure these database classes are "single level"
Chris PeBenito 9760cbe
mlsconstrain { db_database db_table db_procedure db_column db_blob } { create relabelto }
Chris PeBenito 9760cbe
	( l2 eq h2 );
Chris PeBenito 9760cbe
mlsconstrain { db_tuple } { insert relabelto }
Chris PeBenito 9760cbe
	( l2 eq h2 );
Chris PeBenito 9760cbe
Chris PeBenito 9760cbe
# new database labels must be dominated by the relabeling subjects clearance
Chris PeBenito 9760cbe
mlsconstrain { db_database db_table db_procedure db_column db_tuple db_blob } { relabelto }
Chris PeBenito 9760cbe
	( h1 dom h2 );
Chris PeBenito 9760cbe
Chris PeBenito 9760cbe
# the database "read" ops (note the check is dominance of the low level)
Chris PeBenito 9760cbe
mlsconstrain { db_database } { getattr access get_param }
Chris PeBenito 9760cbe
	(( l1 dom l2 ) or
Chris PeBenito 9760cbe
	 (( t1 == mlsdbreadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito 9760cbe
	 ( t1 == mlsdbread ) or
Chris PeBenito 9760cbe
	 ( t2 == mlstrustedobject ));
Chris PeBenito 9760cbe
Chris PeBenito 9760cbe
mlsconstrain { db_table db_column } { getattr use select }
Chris PeBenito 9760cbe
	(( l1 dom l2 ) or
Chris PeBenito 9760cbe
	 (( t1 == mlsdbreadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito 9760cbe
	 ( t1 == mlsdbread ) or
Chris PeBenito 9760cbe
	 ( t2 == mlstrustedobject ));
Chris PeBenito 9760cbe
Chris PeBenito 9760cbe
mlsconstrain { db_procedure } { getattr execute }
Chris PeBenito 9760cbe
	(( l1 dom l2 ) or
Chris PeBenito 9760cbe
	 (( t1 == mlsdbreadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito 9760cbe
	 ( t1 == mlsdbread ) or
Chris PeBenito 9760cbe
	 ( t2 == mlstrustedobject ));
Chris PeBenito 9760cbe
Chris PeBenito 9760cbe
mlsconstrain { db_blob } { getattr read }
Chris PeBenito 9760cbe
	(( l1 dom l2 ) or
Chris PeBenito 9760cbe
	 (( t1 == mlsdbreadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito 9760cbe
	 ( t1 == mlsdbread ) or
Chris PeBenito 9760cbe
	 ( t2 == mlstrustedobject ));
Chris PeBenito 9760cbe
Chris PeBenito 9760cbe
mlsconstrain { db_tuple } { use select }
Chris PeBenito 9760cbe
	(( l1 dom l2 ) or
Chris PeBenito 9760cbe
	 (( t1 == mlsdbreadtoclr ) and ( h1 dom l2 )) or
Chris PeBenito 9760cbe
	 ( t1 == mlsdbread ) or
Chris PeBenito 9760cbe
	 ( t2 == mlstrustedobject ));
Chris PeBenito 9760cbe
Chris PeBenito 9760cbe
# the "single level" file "write" ops
Chris PeBenito 9760cbe
mlsconstrain { db_database } { create drop setattr relabelfrom install_module load_module set_param }
Chris PeBenito 9760cbe
	(( l1 eq l2 ) or
Chris PeBenito 9760cbe
	 (( t1 == mlsdbwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito 9760cbe
	 (( t2 == mlsdbwriteinrange ) and ( l1 dom l2 ) and ( h1 domby h2 )) or
Chris PeBenito 9760cbe
	 ( t1 == mlsdbwrite ) or
Chris PeBenito 9760cbe
	 ( t2 == mlstrustedobject ));
Chris PeBenito 9760cbe
Chris PeBenito 9760cbe
mlsconstrain { db_table } { create drop setattr relabelfrom update insert delete lock }
Chris PeBenito 9760cbe
	(( l1 eq l2 ) or
Chris PeBenito 9760cbe
	 (( t1 == mlsdbwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito 9760cbe
	 (( t2 == mlsdbwriteinrange ) and ( l1 dom l2 ) and ( h1 domby h2 )) or
Chris PeBenito 9760cbe
	 ( t1 == mlsdbwrite ) or
Chris PeBenito 9760cbe
	 ( t2 == mlstrustedobject ));
Chris PeBenito 9760cbe
Chris PeBenito 9760cbe
mlsconstrain { db_column } { create drop setattr relabelfrom update insert }
Chris PeBenito 9760cbe
	(( l1 eq l2 ) or
Chris PeBenito 9760cbe
	 (( t1 == mlsdbwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito 9760cbe
	 (( t2 == mlsdbwriteinrange ) and ( l1 dom l2 ) and ( h1 domby h2 )) or
Chris PeBenito 9760cbe
	 ( t1 == mlsdbwrite ) or
Chris PeBenito 9760cbe
	 ( t2 == mlstrustedobject ));
Chris PeBenito 9760cbe
Chris PeBenito 9760cbe
mlsconstrain { db_blob } { create drop setattr relabelfrom write import export }
Chris PeBenito 9760cbe
	(( l1 eq l2 ) or
Chris PeBenito 9760cbe
	 (( t1 == mlsdbwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito 9760cbe
	 (( t2 == mlsdbwriteinrange ) and ( l1 dom l2 ) and ( h1 domby h2 )) or
Chris PeBenito 9760cbe
	 ( t1 == mlsdbwrite ) or
Chris PeBenito 9760cbe
	 ( t2 == mlstrustedobject ));
Chris PeBenito 9760cbe
Chris PeBenito 9760cbe
mlsconstrain { db_tuple } { relabelfrom update insert delete }
Chris PeBenito 9760cbe
	(( l1 eq l2 ) or
Chris PeBenito 9760cbe
	 (( t1 == mlsdbwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
Chris PeBenito 9760cbe
	 (( t2 == mlsdbwriteinrange ) and ( l1 dom l2 ) and ( h1 domby h2 )) or
Chris PeBenito 9760cbe
	 ( t1 == mlsdbwrite ) or
Chris PeBenito 9760cbe
	 ( t2 == mlstrustedobject ));
Chris PeBenito 9760cbe
Chris PeBenito 9760cbe
# the database upgrade/downgrade rule
Chris PeBenito 9760cbe
mlsvalidatetrans { db_database db_table db_procedure db_column db_tuple db_blob }
Chris PeBenito 9760cbe
	((( l1 eq l2 ) or
Chris PeBenito 9760cbe
	  (( t3 == mlsdbupgrade ) and ( l1 domby l2 )) or
Chris PeBenito 9760cbe
	  (( t3 == mlsdbdowngrade ) and ( l1 dom l2 )) or
Chris PeBenito 9760cbe
	  (( t3 == mlsdbdowngrade ) and ( l1 incomp l2 ))) and
Chris PeBenito 9760cbe
	 (( l1 eq h2 ) or
Chris PeBenito 9760cbe
	  (( t3 == mlsdbupgrade ) and ( h1 domby h2 )) or
Chris PeBenito 9760cbe
	  (( t3 == mlsdbdowngrade ) and ( h1 dom h2 )) or
Chris PeBenito 9760cbe
	  (( t3 == mlsdbdowngrade ) and ( h1 incomp h2 ))));
Chris PeBenito 9760cbe
Chris PeBenito 134191b
') dnl end enable_mls