cvs commit: src/sys/nfsserver nfs.h nfs_serv.c nfs_srvsock.c
Christian S.J. Peron
csjp at FreeBSD.org
Sat Sep 2 21:54:09 UTC 2006
csjp 2006-09-02 21:54:08 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_6)
sys/nfsserver nfs.h nfs_serv.c nfs_srvsock.c
MFC revision 1.79 nfs.h
MFC revision 1.161 nfs_serv.c
MFC revision 1.96 nfs_srvsock.c
MFC revision 1.105 nfs_syscalls.c
date: 2006/01/28 19:24:39; author: csjp; state: Exp; lines: +1 -1
Manage the ucred for the NFS server using the crget/crfree API defined in
kern_prot.c. This API handles reference counting among many other things.
Notably, if MAC is compiled into the kernel, it will properly initialize the
MAC labels when the ucred is allocated.
This work is in preparation for a new MAC entry point which will be responsible
for properly initializing policy specific labels for the NFS server credential.
Utilization of the crfree/crget APIs reduce the complexity associated with
this label's management.
Submitted by: green (with changes) 
Obtained from: TrustedBSD Project
Discussed with: rwatson, alfred
 I moved the ucred allocation outside the scope of the NFS server lock to
prevent M_WAIKOK allocations from occurring with non-sleep-able locks held.
Additionally, to reduce complexity, the ucred persist as long as the NFS
Revision Changes Path
22.214.171.124 +1 -1 src/sys/nfsserver/nfs.h
126.96.36.199 +24 -24 src/sys/nfsserver/nfs_serv.c
188.8.131.52 +11 -15 src/sys/nfsserver/nfs_srvsock.c
184.108.40.206 +8 -0 src/sys/nfsserver/nfs_syscalls.c
More information about the cvs-src