summaryrefslogtreecommitdiffstats
path: root/sys/security/mac_stub
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-10-25 12:34:14 +0000
committerrwatson <rwatson@FreeBSD.org>2007-10-25 12:34:14 +0000
commit8756317538371eb8709335e44bced5be817fbeec (patch)
tree09ab2e34d1c0854e04e44916dd25df475c7a1a35 /sys/security/mac_stub
parent2fd98af619b989e0cb105bb5b81e41d895fd8e20 (diff)
downloadFreeBSD-src-8756317538371eb8709335e44bced5be817fbeec.zip
FreeBSD-src-8756317538371eb8709335e44bced5be817fbeec.tar.gz
Rename mac_associate_nfsd_label() to mac_proc_associate_nfsd(), and move
from mac_vfs.c to mac_process.c to join other functions that setup up process labels for specific purposes. Unlike the two proc create calls, this call is intended to run after creation when a process registers as the NFS daemon, so remains an _associate_ call.. Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/security/mac_stub')
-rw-r--r--sys/security/mac_stub/mac_stub.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/security/mac_stub/mac_stub.c b/sys/security/mac_stub/mac_stub.c
index 40b4e6c..138a099 100644
--- a/sys/security/mac_stub/mac_stub.c
+++ b/sys/security/mac_stub/mac_stub.c
@@ -186,12 +186,6 @@ stub_vnode_associate_singlelabel(struct mount *mp, struct label *mplabel,
}
static void
-stub_associate_nfsd_label(struct ucred *cred)
-{
-
-}
-
-static void
stub_devfs_create_device(struct ucred *cred, struct mount *mp,
struct cdev *dev, struct devfs_dirent *de, struct label *delabel)
{
@@ -526,6 +520,12 @@ stub_proc_create_init(struct ucred *cred)
}
static void
+stub_proc_associate_nfsd(struct ucred *cred)
+{
+
+}
+
+static void
stub_cred_relabel(struct ucred *cred, struct label *newlabel)
{
@@ -1492,7 +1492,6 @@ static struct mac_policy_ops stub_ops =
.mpo_vnode_internalize_label = stub_internalize_label,
.mpo_devfs_vnode_associate = stub_devfs_vnode_associate,
.mpo_vnode_associate_extattr = stub_vnode_associate_extattr,
- .mpo_associate_nfsd_label = stub_associate_nfsd_label,
.mpo_vnode_associate_singlelabel = stub_vnode_associate_singlelabel,
.mpo_devfs_create_device = stub_devfs_create_device,
.mpo_devfs_create_directory = stub_devfs_create_directory,
@@ -1538,6 +1537,7 @@ static struct mac_policy_ops stub_ops =
.mpo_vnode_execve_will_transition = stub_vnode_execve_will_transition,
.mpo_proc_create_swapper = stub_proc_create_swapper,
.mpo_proc_create_init = stub_proc_create_init,
+ .mpo_proc_associate_nfsd = stub_proc_associate_nfsd,
.mpo_cred_relabel= stub_cred_relabel,
.mpo_thread_userret = stub_thread_userret,
.mpo_sysvmsg_cleanup = stub_sysvmsg_cleanup,
OpenPOWER on IntegriCloud