summaryrefslogtreecommitdiffstats
path: root/sys/security/mac/mac_process.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-12-06 21:48:03 +0000
committerrwatson <rwatson@FreeBSD.org>2003-12-06 21:48:03 +0000
commit08335c63bf85bb1d25ca094ab55a04b390c0acda (patch)
tree80bf1fc6acf72a565465aa4b66b0dba3b2b80af2 /sys/security/mac/mac_process.c
parent55ee8acb7fba4f6a262ab48a2a5ed1753cc12dcc (diff)
downloadFreeBSD-src-08335c63bf85bb1d25ca094ab55a04b390c0acda.zip
FreeBSD-src-08335c63bf85bb1d25ca094ab55a04b390c0acda.tar.gz
Rename mac_create_cred() MAC Framework entry point to mac_copy_cred(),
and the mpo_create_cred() MAC policy entry point to mpo_copy_cred_label(). This is more consistent with similar entry points for creation and label copying, as mac_create_cred() was called from crdup() as opposed to during process creation. For a number of policies, this removes the requirement for special handling when copying credential labels, and improves consistency. Approved by: re (scottl) Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/security/mac/mac_process.c')
-rw-r--r--sys/security/mac/mac_process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/security/mac/mac_process.c b/sys/security/mac/mac_process.c
index 68d847d..5c82e7c 100644
--- a/sys/security/mac/mac_process.c
+++ b/sys/security/mac/mac_process.c
@@ -222,10 +222,10 @@ mac_thread_userret(struct thread *td)
* deltas. This function allows that processing to take place.
*/
void
-mac_create_cred(struct ucred *parent_cred, struct ucred *child_cred)
+mac_copy_cred(struct ucred *src, struct ucred *dest)
{
- MAC_PERFORM(create_cred, parent_cred, child_cred);
+ MAC_PERFORM(copy_cred_label, src->cr_label, dest->cr_label);
}
int
OpenPOWER on IntegriCloud