aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2007-02-19 13:04:25 +0000
committerRobert Watson <rwatson@FreeBSD.org>2007-02-19 13:04:25 +0000
commit969e5bdcd0ce84dee4e33565bb1895119195b3a5 (patch)
treed363777ece09cb115f563d396c780f1ef69c269a /sys
parent3c97ab97bf79000ff834ae0397b14553fbf2fcd1 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/fs/procfs/procfs_ioctl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/fs/procfs/procfs_ioctl.c b/sys/fs/procfs/procfs_ioctl.c
index d737d96a4a13..ec08da51110a 100644
--- a/sys/fs/procfs/procfs_ioctl.c
+++ b/sys/fs/procfs/procfs_ioctl.c
@@ -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;
}