summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_process.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-05-19 00:14:50 +0000
committerjhb <jhb@FreeBSD.org>2002-05-19 00:14:50 +0000
commitb6d6774e76bd44035dc47ff6e7c3fdb44961a142 (patch)
tree0642e3c6447c397fe8442630e46788930550bb42 /sys/kern/sys_process.c
parent930f7599edae9acfd7bada4b5e71817067c0ec88 (diff)
downloadFreeBSD-src-b6d6774e76bd44035dc47ff6e7c3fdb44961a142.zip
FreeBSD-src-b6d6774e76bd44035dc47ff6e7c3fdb44961a142.tar.gz
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.
Diffstat (limited to 'sys/kern/sys_process.c')
-rw-r--r--sys/kern/sys_process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c
index 6faf442..6fc7417 100644
--- a/sys/kern/sys_process.c
+++ b/sys/kern/sys_process.c
@@ -388,12 +388,12 @@ ptrace(struct thread *td, struct ptrace_args *uap)
return (ESRCH);
}
}
- if (p_cansee(td->td_proc, p)) {
+ if (p_cansee(td, p)) {
error = ESRCH;
goto fail;
}
- if ((error = p_candebug(td->td_proc, p)) != 0)
+ if ((error = p_candebug(td, p)) != 0)
goto fail;
/*
OpenPOWER on IntegriCloud