Pay attention to mac_portacl_enabled.
Submitted by: simon
This commit is contained in:
parent
8a1bddb753
commit
be05719004
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124756
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user