From 8756317538371eb8709335e44bced5be817fbeec Mon Sep 17 00:00:00 2001 From: rwatson Date: Thu, 25 Oct 2007 12:34:14 +0000 Subject: 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 --- sys/security/mac_stub/mac_stub.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sys/security/mac_stub') 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, -- cgit v1.1