mac_process.c (122524) | mac_process.c (123173) |
---|---|
1/*- 2 * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson 3 * Copyright (c) 2001 Ilmar S. Habibulin 4 * Copyright (c) 2001, 2002, 2003 Networks Associates Technology, Inc. 5 * All rights reserved. 6 * 7 * This software was developed by Robert Watson and Ilmar Habibulin for the 8 * TrustedBSD Project. --- 21 unchanged lines hidden (view full) --- 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 */ 36 37#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson 3 * Copyright (c) 2001 Ilmar S. Habibulin 4 * Copyright (c) 2001, 2002, 2003 Networks Associates Technology, Inc. 5 * All rights reserved. 6 * 7 * This software was developed by Robert Watson and Ilmar Habibulin for the 8 * TrustedBSD Project. --- 21 unchanged lines hidden (view full) --- 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/security/mac/mac_process.c 122524 2003-11-12 03:14:31Z rwatson $"); | 38__FBSDID("$FreeBSD: head/sys/security/mac/mac_process.c 123173 2003-12-06 21:48:03Z rwatson $"); |
39 40#include "opt_mac.h" 41 42#include <sys/param.h> 43#include <sys/condvar.h> 44#include <sys/imgact.h> 45#include <sys/kernel.h> 46#include <sys/lock.h> --- 170 unchanged lines hidden (view full) --- 217} 218 219/* 220 * When a new process is created, its label must be initialized. Generally, 221 * this involves inheritence from the parent process, modulo possible 222 * deltas. This function allows that processing to take place. 223 */ 224void | 39 40#include "opt_mac.h" 41 42#include <sys/param.h> 43#include <sys/condvar.h> 44#include <sys/imgact.h> 45#include <sys/kernel.h> 46#include <sys/lock.h> --- 170 unchanged lines hidden (view full) --- 217} 218 219/* 220 * When a new process is created, its label must be initialized. Generally, 221 * this involves inheritence from the parent process, modulo possible 222 * deltas. This function allows that processing to take place. 223 */ 224void |
225mac_create_cred(struct ucred *parent_cred, struct ucred *child_cred) | 225mac_copy_cred(struct ucred *src, struct ucred *dest) |
226{ 227 | 226{ 227 |
228 MAC_PERFORM(create_cred, parent_cred, child_cred); | 228 MAC_PERFORM(copy_cred_label, src->cr_label, dest->cr_label); |
229} 230 231int 232mac_execve_enter(struct image_params *imgp, struct mac *mac_p) 233{ 234 struct label *label; 235 struct mac mac; 236 char *buffer; --- 279 unchanged lines hidden --- | 229} 230 231int 232mac_execve_enter(struct image_params *imgp, struct mac *mac_p) 233{ 234 struct label *label; 235 struct mac mac; 236 char *buffer; --- 279 unchanged lines hidden --- |