aboutsummaryrefslogtreecommitdiff
path: root/sys/security/mac_test
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2002-12-09 03:44:28 +0000
committerRobert Watson <rwatson@FreeBSD.org>2002-12-09 03:44:28 +0000
commit990b4b2dc5b91303cf16dc49217fc819dfffa3b0 (patch)
treed6e9f6d24a2d8fb99e7d51ac22d960517e26182b /sys/security/mac_test
parentbf616e0493758864186f83825275140079efda69 (diff)
downloadsrc-990b4b2dc5b91303cf16dc49217fc819dfffa3b0.tar.gz
src-990b4b2dc5b91303cf16dc49217fc819dfffa3b0.zip
Remove dm_root entry from struct devfs_mount. It's never set, and is
unused. Replace it with a dm_mount back-pointer to the struct mount that the devfs_mount is associated with. Export that pointer to MAC Framework entry points, where all current policies don't use the pointer. This permits the SEBSD port of SELinux's FLASK/TE to compile out-of-the-box on 5.0-CURRENT with full file system labeling support. Approved by: re (murray) Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
Notes
Notes: svn path=/head/; revision=107698
Diffstat (limited to 'sys/security/mac_test')
-rw-r--r--sys/security/mac_test/mac_test.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/sys/security/mac_test/mac_test.c b/sys/security/mac_test/mac_test.c
index 0dc09a90d2cc..26f6a55bea20 100644
--- a/sys/security/mac_test/mac_test.c
+++ b/sys/security/mac_test/mac_test.c
@@ -518,22 +518,23 @@ mac_test_associate_vnode_singlelabel(struct mount *mp,
}
static void
-mac_test_create_devfs_device(dev_t dev, struct devfs_dirent *devfs_dirent,
- struct label *label)
+mac_test_create_devfs_device(struct mount *mp, dev_t dev,
+ struct devfs_dirent *devfs_dirent, struct label *label)
{
}
static void
-mac_test_create_devfs_directory(char *dirname, int dirnamelen,
- struct devfs_dirent *devfs_dirent, struct label *label)
+mac_test_create_devfs_directory(struct mount *mp, char *dirname,
+ int dirnamelen, struct devfs_dirent *devfs_dirent, struct label *label)
{
}
static void
-mac_test_create_devfs_symlink(struct ucred *cred, struct devfs_dirent *dd,
- struct label *ddlabel, struct devfs_dirent *de, struct label *delabel)
+mac_test_create_devfs_symlink(struct ucred *cred, struct mount *mp,
+ struct devfs_dirent *dd, struct label *ddlabel, struct devfs_dirent *de,
+ struct label *delabel)
{
}
@@ -577,8 +578,9 @@ mac_test_setlabel_vnode_extattr(struct ucred *cred, struct vnode *vp,
}
static void
-mac_test_update_devfsdirent(struct devfs_dirent *devfs_dirent,
- struct label *direntlabel, struct vnode *vp, struct label *vnodelabel)
+mac_test_update_devfsdirent(struct mount *mp,
+ struct devfs_dirent *devfs_dirent, struct label *direntlabel,
+ struct vnode *vp, struct label *vnodelabel)
{
}