summaryrefslogtreecommitdiffstats
path: root/sys/security/mac_lomac/mac_lomac.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-09-19 13:59:57 +0000
committerrwatson <rwatson@FreeBSD.org>2005-09-19 13:59:57 +0000
commit583b25a64f2aaa24c8694f63278278ffbf4c05d2 (patch)
tree3f830a9f3d977036784e2666767b6ee9d05b44bb /sys/security/mac_lomac/mac_lomac.c
parent67624ed0f75907065578f29229d87b84e7a071fc (diff)
downloadFreeBSD-src-583b25a64f2aaa24c8694f63278278ffbf4c05d2.zip
FreeBSD-src-583b25a64f2aaa24c8694f63278278ffbf4c05d2.tar.gz
Remove mac_create_root_mount() and mpo_create_root_mount(), which
provided access to the root file system before the start of the init process. This was used briefly by SEBSD before it knew about preloading data in the loader, and using that method to gain access to data earlier results in fewer inconsistencies in the approach. Policy modules still have access to the root file system creation event through the mac_create_mount() entry point. Removed now, and will be removed from RELENG_6, in order to gain third party policy dependencies on the entry point for the lifetime of the 6.x branch. MFC after: 3 days Submitted by: Chris Vance <Christopher dot Vance at SPARTA dot com> Sponsored by: SPARTA
Diffstat (limited to 'sys/security/mac_lomac/mac_lomac.c')
-rw-r--r--sys/security/mac_lomac/mac_lomac.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/security/mac_lomac/mac_lomac.c b/sys/security/mac_lomac/mac_lomac.c
index cb2ebdf..6808257 100644
--- a/sys/security/mac_lomac/mac_lomac.c
+++ b/sys/security/mac_lomac/mac_lomac.c
@@ -959,19 +959,6 @@ mac_lomac_create_mount(struct ucred *cred, struct mount *mp,
}
static void
-mac_lomac_create_root_mount(struct ucred *cred, struct mount *mp,
- struct label *mntlabel, struct label *fslabel)
-{
- struct mac_lomac *mac_lomac;
-
- /* Always mount root as high integrity. */
- mac_lomac = SLOT(fslabel);
- mac_lomac_set_single(mac_lomac, MAC_LOMAC_TYPE_HIGH, 0);
- mac_lomac = SLOT(mntlabel);
- mac_lomac_set_single(mac_lomac, MAC_LOMAC_TYPE_HIGH, 0);
-}
-
-static void
mac_lomac_relabel_vnode(struct ucred *cred, struct vnode *vp,
struct label *vnodelabel, struct label *label)
{
@@ -2617,7 +2604,6 @@ static struct mac_policy_ops mac_lomac_ops =
.mpo_create_devfs_directory = mac_lomac_create_devfs_directory,
.mpo_create_devfs_symlink = mac_lomac_create_devfs_symlink,
.mpo_create_mount = mac_lomac_create_mount,
- .mpo_create_root_mount = mac_lomac_create_root_mount,
.mpo_relabel_vnode = mac_lomac_relabel_vnode,
.mpo_update_devfsdirent = mac_lomac_update_devfsdirent,
.mpo_associate_vnode_devfs = mac_lomac_associate_vnode_devfs,
OpenPOWER on IntegriCloud