HomeFreeBSD

Don't allow creating a socket with a protocol family that the current

Description

Don't allow creating a socket with a protocol family that the current
jail doesn't support. This involves a new function prison_check_af,
like prison_check_ip[46] but that checks only the family.

With this change, most of the errors generated by jailed sockets
shouldn't ever occur, at least until jails are changeable.

Approved by: bz (mentor)

Details

Provenance
jamieAuthored on Feb 5 2009, 2:15 PM
Parents
rGb89e82dd87de: Standardize the various prison_foo_ip[46] functions and prison_if to
Branches
Unknown
Tags
Unknown

Event Timeline