Deleted Added
full compact
28c28
< * $FreeBSD: head/sys/fs/procfs/procfs_ioctl.c 162711 2006-09-27 19:57:02Z ru $
---
> * $FreeBSD: head/sys/fs/procfs/procfs_ioctl.c 164033 2006-11-06 13:42:10Z rwatson $
36a37
> #include <sys/priv.h>
107,108c108,120
< if (flags & PF_ISUGID && (error = suser(td)) != 0)
< break;
---
> if (flags & PF_ISUGID) {
> /*
> * 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);
> if (error)
> break;
> }