Deleted Added
full compact
kern_prot.c (122869) kern_prot.c (123173)
1/*
2 * Copyright (c) 1982, 1986, 1989, 1990, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 30 unchanged lines hidden (view full) ---

39 * @(#)kern_prot.c 8.6 (Berkeley) 1/21/94
40 */
41
42/*
43 * System calls related to processes and protection
44 */
45
46#include <sys/cdefs.h>
1/*
2 * Copyright (c) 1982, 1986, 1989, 1990, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 30 unchanged lines hidden (view full) ---

39 * @(#)kern_prot.c 8.6 (Berkeley) 1/21/94
40 */
41
42/*
43 * System calls related to processes and protection
44 */
45
46#include <sys/cdefs.h>
47__FBSDID("$FreeBSD: head/sys/kern/kern_prot.c 122869 2003-11-17 20:20:53Z rwatson $");
47__FBSDID("$FreeBSD: head/sys/kern/kern_prot.c 123173 2003-12-06 21:48:03Z rwatson $");
48
49#include "opt_compat.h"
50#include "opt_mac.h"
51
52#include <sys/param.h>
53#include <sys/systm.h>
54#include <sys/acct.h>
55#include <sys/kernel.h>

--- 1743 unchanged lines hidden (view full) ---

1799 bcopy(&src->cr_startcopy, &dest->cr_startcopy,
1800 (unsigned)((caddr_t)&src->cr_endcopy -
1801 (caddr_t)&src->cr_startcopy));
1802 uihold(dest->cr_uidinfo);
1803 uihold(dest->cr_ruidinfo);
1804 if (jailed(dest))
1805 prison_hold(dest->cr_prison);
1806#ifdef MAC
48
49#include "opt_compat.h"
50#include "opt_mac.h"
51
52#include <sys/param.h>
53#include <sys/systm.h>
54#include <sys/acct.h>
55#include <sys/kernel.h>

--- 1743 unchanged lines hidden (view full) ---

1799 bcopy(&src->cr_startcopy, &dest->cr_startcopy,
1800 (unsigned)((caddr_t)&src->cr_endcopy -
1801 (caddr_t)&src->cr_startcopy));
1802 uihold(dest->cr_uidinfo);
1803 uihold(dest->cr_ruidinfo);
1804 if (jailed(dest))
1805 prison_hold(dest->cr_prison);
1806#ifdef MAC
1807 mac_create_cred(src, dest);
1807 mac_copy_cred(src, dest);
1808#endif
1809}
1810
1811/*
1812 * Dup cred struct to a new held one.
1813 * MPSAFE
1814 */
1815struct ucred *

--- 221 unchanged lines hidden ---
1808#endif
1809}
1810
1811/*
1812 * Dup cred struct to a new held one.
1813 * MPSAFE
1814 */
1815struct ucred *

--- 221 unchanged lines hidden ---