diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2002-05-19 00:14:50 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2002-05-19 00:14:50 +0000 |
| commit | f44d9e24fbb396076ebabf326c6f80e166d3d4a5 (patch) | |
| tree | 0642e3c6447c397fe8442630e46788930550bb42 /sys/fs/procfs/procfs.c | |
| parent | 2bab796d96af8c985c3258e20e5459a7a64d9c6d (diff) | |
Notes
Diffstat (limited to 'sys/fs/procfs/procfs.c')
| -rw-r--r-- | sys/fs/procfs/procfs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/fs/procfs/procfs.c b/sys/fs/procfs/procfs.c index 6d6162eb323b..8083ba687e3e 100644 --- a/sys/fs/procfs/procfs.c +++ b/sys/fs/procfs/procfs.c @@ -107,6 +107,7 @@ procfs_attr(PFS_ATTR_ARGS) vap->va_mode = 0600; /* p is locked by caller */ + PROC_LOCK_ASSERT(p, MA_OWNED); vap->va_uid = p->p_ucred->cr_uid; vap->va_gid = p->p_ucred->cr_gid; @@ -130,8 +131,9 @@ procfs_notsystem(PFS_VIS_ARGS) int procfs_candebug(PFS_VIS_ARGS) { + PROC_LOCK_ASSERT(p, MA_OWNED); return ((p->p_flag & P_SYSTEM) == 0 && - p_candebug(td->td_proc, p) == 0); + p_candebug(td, p) == 0); } /* |
