From a854ed98931b2e365eddd24cd2a1bb53a3f1828f Mon Sep 17 00:00:00 2001 From: John Baldwin 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/net/if.c | 4 ++-- sys/net/rtsock.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/net') diff --git a/sys/net/if.c b/sys/net/if.c index 3cb79949d5ca..98dd728c5e07 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1532,8 +1532,8 @@ ifconf(cmd, data) if (space < sizeof(ifr)) break; - if (jailed(curproc->p_ucred) && - prison_if(curproc->p_ucred, sa)) + if (jailed(curthread->td_ucred) && + prison_if(curthread->td_ucred, sa)) continue; addrs++; #ifdef COMPAT_43 diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 2a085405e689..1bdc439c306c 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -968,8 +968,8 @@ sysctl_iflist(af, w) while ((ifa = TAILQ_NEXT(ifa, ifa_link)) != 0) { if (af && af != ifa->ifa_addr->sa_family) continue; - if (jailed(curproc->p_ucred) && - prison_if(curproc->p_ucred, ifa->ifa_addr)) + if (jailed(curthread->td_ucred) && + prison_if(curthread->td_ucred, ifa->ifa_addr)) continue; ifaaddr = ifa->ifa_addr; netmask = ifa->ifa_netmask; -- cgit v1.3