PERFORCE change 45643 for review

Robert Watson rwatson at FreeBSD.org
Tue Jan 20 10:21:59 PST 2004


http://perforce.freebsd.org/chv.cgi?CH=45643

Change 45643 by rwatson at rwatson_tislabs on 2004/01/20 10:20:38

	Pay attention to mac_portacl_enabled.
	
	Submitted by:	simon at FreeBSD.org

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/security/mac_portacl/mac_portacl.c#3 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/security/mac_portacl/mac_portacl.c#3 (text+ko) ====

@@ -1,5 +1,5 @@
 /*-
- * Copyright (c) 2003 Networks Associates Technology, Inc.
+ * Copyright (c) 2003-2004 Networks Associates Technology, Inc.
  * All rights reserved.
  *
  * This software was developed for the FreeBSD Project by Network
@@ -451,6 +451,10 @@
 	int family, type;
 	u_int16_t port;
 
+	/* Only run if we are enabled. */
+	if (mac_portacl_enabled == 0)
+		return (0);
+
 	/* Only interested in IPv4 and IPv6 sockets. */
 	if (so->so_proto->pr_domain->dom_family != PF_INET &&
 	    so->so_proto->pr_domain->dom_family != PF_INET6)


More information about the p4-projects mailing list