From 1e2f84951192b417cc73573a47605913d9b671f2 Mon Sep 17 00:00:00 2001 From: rwatson Date: Tue, 12 Nov 2002 04:20:36 +0000 Subject: 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 --- sys/security/mac_biba/mac_biba.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'sys/security/mac_biba') 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, -- cgit v1.1