Do allow PIOCSFL in jail for setguid processes; this is more consistent

with other debugging checks elsewhere.  XXX comment on the fact that
p_candebug() is not being used here remains.
This commit is contained in:
Robert Watson 2007-02-19 13:04:25 +00:00
parent 3c97ab97bf
commit 969e5bdcd0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166826

View File

@ -110,11 +110,9 @@ procfs_ioctl(PFS_IOCTL_ARGS)
* XXXRW: Is this specific check required here, as
* p_candebug() should implement it, or other checks
* are missing.
*
* XXXRW: Other debugging privileges are granted in
* jail, why isn't this?
*/
error = priv_check(td, PRIV_DEBUG_SUGID);
error = priv_check_cred(td->td_ucred,
PRIV_DEBUG_SUGID, SUSER_ALLOWJAIL);
if (error)
break;
}