Do allow jailed superuser to override the port ACL.

MFC after:	3 days
Submitted by:	Michal Mertl <mime at traveller dot cz>
This commit is contained in:
Robert Watson 2006-10-10 17:04:19 +00:00
parent 06399e90bc
commit d7dd2bd6ed

View File

@ -427,7 +427,7 @@ rules_check(struct ucred *cred, int family, int type, u_int16_t port)
mtx_unlock(&rule_mtx);
if (error != 0 && mac_portacl_suser_exempt != 0)
error = suser_cred(cred, 0);
error = suser_cred(cred, SUSER_ALLOWJAIL);
return (error);
}