summaryrefslogtreecommitdiffstats
path: root/sys/security/mac_biba
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-11-12 04:20:36 +0000
committerrwatson <rwatson@FreeBSD.org>2002-11-12 04:20:36 +0000
commit1e2f84951192b417cc73573a47605913d9b671f2 (patch)
treef77b4842f5fc009d2a4ec4c987fb24eb6b02fba1 /sys/security/mac_biba
parentafd12f968b077aa6c86bd0026507f84ade294f1f (diff)
downloadFreeBSD-src-1e2f84951192b417cc73573a47605913d9b671f2.zip
FreeBSD-src-1e2f84951192b417cc73573a47605913d9b671f2.tar.gz
Garbage collect mac_create_devfs_vnode() -- it hasn't been used since
we brought in the new cache and locking model for vnode labels. We now rely on mac_associate_devfs_vnode(). Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/security/mac_biba')
-rw-r--r--sys/security/mac_biba/mac_biba.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/security/mac_biba/mac_biba.c b/sys/security/mac_biba/mac_biba.c
index 3268dd7..d342d5f 100644
--- a/sys/security/mac_biba/mac_biba.c
+++ b/sys/security/mac_biba/mac_biba.c
@@ -844,17 +844,6 @@ mac_biba_create_devfs_symlink(struct ucred *cred, struct devfs_dirent *dd,
}
static void
-mac_biba_create_devfs_vnode(struct devfs_dirent *devfs_dirent,
- struct label *direntlabel, struct vnode *vp, struct label *vnodelabel)
-{
- struct mac_biba *source, *dest;
-
- source = SLOT(direntlabel);
- dest = SLOT(vnodelabel);
- mac_biba_copy_single(source, dest);
-}
-
-static void
mac_biba_create_mount(struct ucred *cred, struct mount *mp,
struct label *mntlabel, struct label *fslabel)
{
@@ -2587,7 +2576,6 @@ static struct mac_policy_ops mac_biba_ops =
.mpo_create_devfs_device = mac_biba_create_devfs_device,
.mpo_create_devfs_directory = mac_biba_create_devfs_directory,
.mpo_create_devfs_symlink = mac_biba_create_devfs_symlink,
- .mpo_create_devfs_vnode = mac_biba_create_devfs_vnode,
.mpo_create_mount = mac_biba_create_mount,
.mpo_create_root_mount = mac_biba_create_root_mount,
.mpo_relabel_vnode = mac_biba_relabel_vnode,
OpenPOWER on IntegriCloud