From 08335c63bf85bb1d25ca094ab55a04b390c0acda Mon Sep 17 00:00:00 2001 From: rwatson Date: Sat, 6 Dec 2003 21:48:03 +0000 Subject: 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 --- sys/kern/kern_prot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern') diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index 0f0fc40..d6ecb3f 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -1804,7 +1804,7 @@ crcopy(struct ucred *dest, struct ucred *src) if (jailed(dest)) prison_hold(dest->cr_prison); #ifdef MAC - mac_create_cred(src, dest); + mac_copy_cred(src, dest); #endif } -- cgit v1.1