diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2004-01-20 18:33:02 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2004-01-20 18:33:02 +0000 |
| commit | be057190048a620b99399889d15ae19be50e382c (patch) | |
| tree | 4c25cc433f296a24959e069f1598ced562b7cac6 | |
| parent | 8a1bddb753271c842f8895ae89d8b2d7233fcb62 (diff) | |
Notes
| -rw-r--r-- | sys/security/mac_portacl/mac_portacl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/security/mac_portacl/mac_portacl.c b/sys/security/mac_portacl/mac_portacl.c index a44be71e1cb1..4b671c605805 100644 --- a/sys/security/mac_portacl/mac_portacl.c +++ b/sys/security/mac_portacl/mac_portacl.c @@ -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 @@ check_socket_bind(struct ucred *cred, struct socket *so, 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) |
