From 56d9e932072f81ebaa7bb1bf5995a46813bc91c4 Mon Sep 17 00:00:00 2001 From: Robert Watson 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/security/mac/mac_framework.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/security/mac/mac_framework.h') diff --git a/sys/security/mac/mac_framework.h b/sys/security/mac/mac_framework.h index 81dad5a37ad8a..098a2bde828c4 100644 --- a/sys/security/mac/mac_framework.h +++ b/sys/security/mac/mac_framework.h @@ -229,7 +229,7 @@ void mac_inpcb_sosetlabel(struct socket *so, struct inpcb *inp); /* * Labeling event operations: processes. */ -void mac_create_cred(struct ucred *cred_parent, struct ucred *cred_child); +void mac_copy_cred(struct ucred *cr1, struct ucred *cr2); int mac_execve_enter(struct image_params *imgp, struct mac *mac_p); void mac_execve_exit(struct image_params *imgp); void mac_execve_transition(struct ucred *old, struct ucred *new, -- cgit v1.3