freebsd-dev/sys/nfsserver
Christian S.J. Peron 7a3e891951 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) [1]
Obtained from:	TrustedBSD Project
Discussed with:	rwatson, alfred

[1] 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
    server descriptor.
2006-01-28 19:24:40 +00:00
..
nfs_serv.c Manage the ucred for the NFS server using the crget/crfree API defined in 2006-01-28 19:24:40 +00:00
nfs_srvcache.c /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfs_srvsock.c Manage the ucred for the NFS server using the crget/crfree API defined in 2006-01-28 19:24:40 +00:00
nfs_srvsubs.c Use the refcount API to manage the reference count for user credentials 2005-09-27 18:09:42 +00:00
nfs_syscalls.c Manage the ucred for the NFS server using the crget/crfree API defined in 2006-01-28 19:24:40 +00:00
nfs.h Manage the ucred for the NFS server using the crget/crfree API defined in 2006-01-28 19:24:40 +00:00
nfsm_subs.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfsrvcache.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfsrvstats.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00