diff options
author | rwatson <rwatson@FreeBSD.org> | 2001-11-01 20:56:57 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2001-11-01 20:56:57 +0000 |
commit | c532c3bf88b0296935bf9293accb407de43e240c (patch) | |
tree | d29ed0901454dffcc55e4c0606aef0cd915d84eb /sys/kern/kern_acct.c | |
parent | 49a98043879675541ed4fda938748b3b157c8479 (diff) | |
download | FreeBSD-src-c532c3bf88b0296935bf9293accb407de43e240c.zip FreeBSD-src-c532c3bf88b0296935bf9293accb407de43e240c.tar.gz |
o Move suser() calls in kern/ to using suser_xxx() with an explicit
credential selection, rather than reference via a thread or process
pointer. This is part of a gradual migration to suser() accepting
a struct ucred instead of a struct proc, simplifying the reference
and locking semantics of suser().
Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/kern/kern_acct.c')
-rw-r--r-- | sys/kern/kern_acct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_acct.c b/sys/kern/kern_acct.c index 8c319f7..cd191d5 100644 --- a/sys/kern/kern_acct.c +++ b/sys/kern/kern_acct.c @@ -123,7 +123,7 @@ acct(td, uap) if (td != curthread) panic("acct"); /* XXXKSE DIAGNOSTIC */ /* Make sure that the caller is root. */ - error = suser(td->td_proc); + error = suser_xxx(td->td_proc->p_ucred, NULL, 0); if (error) goto done2; |