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_dbregs.c | |
parent | 2bab796d96af8c985c3258e20e5459a7a64d9c6d (diff) | |
download | src-f44d9e24fbb396076ebabf326c6f80e166d3d4a5.tar.gz src-f44d9e24fbb396076ebabf326c6f80e166d3d4a5.zip |
Change p_can{debug,see,sched,signal}()'s first argument to be a thread
pointer instead of a proc pointer and require the process pointed to
by the second argument to be locked. We now use the thread ucred reference
for the credential checks in p_can*() as a result. p_canfoo() should now
no longer need Giant.
Notes
Notes:
svn path=/head/; revision=96886
Diffstat (limited to 'sys/fs/procfs/procfs_dbregs.c')
-rw-r--r-- | sys/fs/procfs/procfs_dbregs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/procfs/procfs_dbregs.c b/sys/fs/procfs/procfs_dbregs.c index 29ff71ba70e2..361f34baf6ae 100644 --- a/sys/fs/procfs/procfs_dbregs.c +++ b/sys/fs/procfs/procfs_dbregs.c @@ -69,7 +69,7 @@ procfs_doprocdbregs(PFS_FILL_ARGS) int kl; PROC_LOCK(p); - if (p_candebug(td->td_proc, p) != 0) { + if (p_candebug(td, p) != 0) { PROC_UNLOCK(p); return (EPERM); } |