diff options
author | rwatson <rwatson@FreeBSD.org> | 2001-11-14 18:20:45 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2001-11-14 18:20:45 +0000 |
commit | 08704afd447096c2834699aec78e39c3a53a471a (patch) | |
tree | 725afa461cc74ca5f5cf3810e227f0b15ecc063c /sys/nfsclient/nfs_nfsiod.c | |
parent | 39806e442b3b2819a72be69a474c4d3194144c14 (diff) | |
download | FreeBSD-src-08704afd447096c2834699aec78e39c3a53a471a.zip FreeBSD-src-08704afd447096c2834699aec78e39c3a53a471a.tar.gz |
o Modify nfslockdans() to accept a thread reference instead of a proc
reference: with td->td_ucred, it will be desirable to authorize
based on td->td_ucred, rather than p->p_ucred.
o Since the same variable 'p' was later used with pfind() on the target
process for the wakeup, introduce a new local variable 'targetp'
to use instead.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'sys/nfsclient/nfs_nfsiod.c')
-rw-r--r-- | sys/nfsclient/nfs_nfsiod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfsclient/nfs_nfsiod.c b/sys/nfsclient/nfs_nfsiod.c index 4e0ac10..6fe1a55 100644 --- a/sys/nfsclient/nfs_nfsiod.c +++ b/sys/nfsclient/nfs_nfsiod.c @@ -113,7 +113,7 @@ nfsclnt(struct thread *td, struct nfsclnt_args *uap) if ((uap->flag & NFSCLNT_LOCKDANS) != 0) { error = copyin(uap->argp, &la, sizeof(la)); - return (error != 0 ? error : nfslockdans(td->td_proc, &la)); + return (error != 0 ? error : nfslockdans(td, &la)); } return EINVAL; } |