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_lock.h | |
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_lock.h')
-rw-r--r-- | sys/nfsclient/nfs_lock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfsclient/nfs_lock.h b/sys/nfsclient/nfs_lock.h index 0d081c4..9de041d 100644 --- a/sys/nfsclient/nfs_lock.h +++ b/sys/nfsclient/nfs_lock.h @@ -88,5 +88,5 @@ struct lockd_ans { #ifdef _KERNEL int nfs_dolock(struct vop_advlock_args *ap); -int nfslockdans(struct proc *p, struct lockd_ans *ansp); +int nfslockdans(struct thread *td, struct lockd_ans *ansp); #endif |