summaryrefslogtreecommitdiffstats
path: root/sys/security/mac_lomac
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2003-11-12 02:54:47 +0000
committerkan <kan@FreeBSD.org>2003-11-12 02:54:47 +0000
commit9352a05d4022d31faee0a088a5df3456001e11ae (patch)
tree963d06f6412e2d375c02189a6cf5029c4daf196f /sys/security/mac_lomac
parentd1ef13f16432b757a9c7eaf23feeac0383dc1e92 (diff)
downloadFreeBSD-src-9352a05d4022d31faee0a088a5df3456001e11ae.zip
FreeBSD-src-9352a05d4022d31faee0a088a5df3456001e11ae.tar.gz
1. Consolidate mount struct allocation/destruction into a common code in
vfs_mount_alloc/vfs_mount_destroy functions and take care to completely destroy the mount point along with its locks. Mount struct has grown in coplexity recently and depending on each failure path to destroy it completely isn't working anymore. 2. Eliminate largely identical vfs_mount and vfs_unmount question by moving the code to handle both cases into a newly introduced vfs_domount function. 3. Simplify nfs_mount_diskless to always expect an allocated mount struct and never attempt an allocation/destruction itself. The vfs_allocroot allocation was there to support 'magic' swap space configuration for diskless clients that was already removed by PHK some time ago. 4. Include a vfs_buildopts cleanups by Peter Edwards to validate the sanity of nmount parameters passed from userland. Submitted by: (4) Peter Edwards <peter.edwards@openet-telecom.com> Reviewed by: rwatson
Diffstat (limited to 'sys/security/mac_lomac')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud