MAC_DOMINATE(3C)					      MAC_DOMINATE(3C)
      mac_dominate, mac_equal - compare two MAC labels for the dominates/equal
     relationship
     #include <sys/mac.h>
     int mac_dominate (mac_t lp1, mac_t	lp2);
     int mac_equal (mac_t lp1, mac_t lp2);
     mac_dominate compares the two MAC labels pointed to by the	input
     arguments lp1 and lp2.
     mac_equal compares	the two	labels for equality.
     mac_dominate returns 1 if and only	if lp1 dominates lp2 else it returns
     0.	 Errors	return -1.
     mac_equal returns 1 if the	two labels are equal, 0	otherwise.  Errors
     return -1.
     EINVAL	     One of the	labels was not valid.
 
     mac_valid(3C)
     dominance(5)
									PPPPaaaaggggeeee 1111 [ Back ]
 |