aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/procfs/procfs_dbregs.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2002-05-19 00:14:50 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2002-05-19 00:14:50 +0000
commitf44d9e24fbb396076ebabf326c6f80e166d3d4a5 (patch)
tree0642e3c6447c397fe8442630e46788930550bb42 /sys/fs/procfs/procfs_dbregs.c
parent2bab796d96af8c985c3258e20e5459a7a64d9c6d (diff)
downloadsrc-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.c2
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);
}