summaryrefslogtreecommitdiffstats
path: root/sys/security/mac_mls
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-04-23 13:36:54 +0000
committerrwatson <rwatson@FreeBSD.org>2007-04-23 13:36:54 +0000
commit62d2d15116b9a8fc154125c71b470ea40916f727 (patch)
tree14bfe298fcdbdad74972de0dc9e05993e61787a1 /sys/security/mac_mls
parent7ffc2492aefff9e4350fa66d015e86a00a98f452 (diff)
downloadFreeBSD-src-62d2d15116b9a8fc154125c71b470ea40916f727.zip
FreeBSD-src-62d2d15116b9a8fc154125c71b470ea40916f727.tar.gz
Rename mac*devfsdirent*() to mac*devfs*() to synchronize with SEDarwin,
where similar data structures exist to support devfs and the MAC Framework, but are named differently. Obtained from: TrustedBSD Project Sponsored by: SPARTA, Inc.
Diffstat (limited to 'sys/security/mac_mls')
-rw-r--r--sys/security/mac_mls/mac_mls.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/security/mac_mls/mac_mls.c b/sys/security/mac_mls/mac_mls.c
index 506f031..b0f2a61 100644
--- a/sys/security/mac_mls/mac_mls.c
+++ b/sys/security/mac_mls/mac_mls.c
@@ -36,6 +36,7 @@
/*
* Developed by the TrustedBSD Project.
+ *
* MLS fixed label mandatory confidentiality policy.
*/
@@ -815,7 +816,7 @@ mac_mls_relabel_vnode(struct ucred *cred, struct vnode *vp,
}
static void
-mac_mls_update_devfsdirent(struct mount *mp, struct devfs_dirent *de,
+mac_mls_update_devfs(struct mount *mp, struct devfs_dirent *de,
struct label *delabel, struct vnode *vp, struct label *vplabel)
{
struct mac_mls *source, *dest;
@@ -2866,7 +2867,7 @@ static struct mac_policy_ops mac_mls_ops =
.mpo_init = mac_mls_init,
.mpo_init_bpfdesc_label = mac_mls_init_label,
.mpo_init_cred_label = mac_mls_init_label,
- .mpo_init_devfsdirent_label = mac_mls_init_label,
+ .mpo_init_devfs_label = mac_mls_init_label,
.mpo_init_ifnet_label = mac_mls_init_label,
.mpo_init_inpcb_label = mac_mls_init_label_waitcheck,
.mpo_init_syncache_label = mac_mls_init_label_waitcheck,
@@ -2884,7 +2885,7 @@ static struct mac_policy_ops mac_mls_ops =
.mpo_init_vnode_label = mac_mls_init_label,
.mpo_destroy_bpfdesc_label = mac_mls_destroy_label,
.mpo_destroy_cred_label = mac_mls_destroy_label,
- .mpo_destroy_devfsdirent_label = mac_mls_destroy_label,
+ .mpo_destroy_devfs_label = mac_mls_destroy_label,
.mpo_destroy_ifnet_label = mac_mls_destroy_label,
.mpo_destroy_inpcb_label = mac_mls_destroy_label,
.mpo_destroy_syncache_label = mac_mls_destroy_label,
@@ -2922,7 +2923,7 @@ static struct mac_policy_ops mac_mls_ops =
.mpo_create_devfs_symlink = mac_mls_create_devfs_symlink,
.mpo_create_mount = mac_mls_create_mount,
.mpo_relabel_vnode = mac_mls_relabel_vnode,
- .mpo_update_devfsdirent = mac_mls_update_devfsdirent,
+ .mpo_update_devfs = mac_mls_update_devfs,
.mpo_associate_vnode_devfs = mac_mls_associate_vnode_devfs,
.mpo_associate_vnode_extattr = mac_mls_associate_vnode_extattr,
.mpo_associate_vnode_singlelabel = mac_mls_associate_vnode_singlelabel,
OpenPOWER on IntegriCloud