From 3706cd350927f08fa8742cce9448c9ba8e4d6b2c Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 27 Feb 2002 18:32:23 +0000 Subject: Simple p_ucred -> td_ucred changes to start using the per-thread ucred reference. --- sys/kern/kern_mib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/kern_mib.c') diff --git a/sys/kern/kern_mib.c b/sys/kern/kern_mib.c index c5ac747..662fd1b 100644 --- a/sys/kern/kern_mib.c +++ b/sys/kern/kern_mib.c @@ -161,7 +161,7 @@ sysctl_hostname(SYSCTL_HANDLER_ARGS) char tmphostname[MAXHOSTNAMELEN]; int error; - pr = req->td->td_proc->p_ucred->cr_prison; + pr = req->td->td_ucred->cr_prison; if (pr != NULL) { if (!jail_set_hostname_allowed && req->newptr) return (EPERM); @@ -211,7 +211,7 @@ sysctl_kern_securelvl(SYSCTL_HANDLER_ARGS) struct prison *pr; int error, level; - pr = req->td->td_proc->p_ucred->cr_prison; + pr = req->td->td_ucred->cr_prison; /* * If the process is in jail, return the maximum of the global and -- cgit v1.1