[Bug 238781] sys.netinet.socket_afinet.socket_afinet_bind_zero does not work when mac_portacl(4) loaded

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Aug 15 08:21:12 UTC 2019


--- Comment #5 from Robert Watson <rwatson at FreeBSD.org> ---
Am I right in assuming that even when sin_family is set to 0, the sockaddr is
always interpreted as a sockaddr_in for PF_INET sockets? If so, then, given
that we check for PF_INET earlier in mac_portacl's socket_check_bind()
function, we can probably safely allow 0 as well as AF_INET and AF_INET6.

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-testing mailing list