Do allow bypass of mac_seeotheruids in jail in order to be consistent

with other uses of PRIV_SEEOTHERUIDS.  This will automatically be
scoped to the jail by the jail policy.
This commit is contained in:
rwatson 2007-02-19 13:25:17 +00:00
parent 41001412d8
commit 07f6768e54

View File

@ -126,7 +126,8 @@ mac_seeotheruids_check(struct ucred *u1, struct ucred *u2)
return (0);
if (suser_privileged) {
if (priv_check_cred(u1, PRIV_SEEOTHERUIDS, 0) == 0)
if (priv_check_cred(u1, PRIV_SEEOTHERUIDS, SUSER_ALLOWJAIL)
== 0)
return (0);
}