summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
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 d737d96..ec08da5 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;
}
OpenPOWER on IntegriCloud