Date: Tue, 20 Jan 2004 10:21:39 -0800 (PST) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 45643 for review Message-ID: <200401201821.i0KILdpO058749@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=45643 Change 45643 by rwatson@rwatson_tislabs on 2004/01/20 10:20:38 Pay attention to mac_portacl_enabled. Submitted by: simon@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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401201821.i0KILdpO058749>