diff options
author | csjp <csjp@FreeBSD.org> | 2006-01-28 19:24:40 +0000 |
---|---|---|
committer | csjp <csjp@FreeBSD.org> | 2006-01-28 19:24:40 +0000 |
commit | 34b8c6a4409682b1153fbd6a38ebe68a3d107a92 (patch) | |
tree | 548a570898537062aeefe097d3c1dce9772b05f8 /tools | |
parent | 597a7332d8b12ce2f47cbd5c59a94534a4da9637 (diff) | |
download | FreeBSD-src-34b8c6a4409682b1153fbd6a38ebe68a3d107a92.zip FreeBSD-src-34b8c6a4409682b1153fbd6a38ebe68a3d107a92.tar.gz |
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.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions