Deleted Added
full compact
init_main.c (184407) init_main.c (191816)
1/*-
2 * Copyright (c) 1995 Terrence R. Lambert
3 * All rights reserved.
4 *
5 * Copyright (c) 1982, 1986, 1989, 1991, 1992, 1993
6 * The Regents of the University of California. All rights reserved.
7 * (c) UNIX System Laboratories, Inc.
8 * All or some portions of this file are derived from material licensed

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

37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 * SUCH DAMAGE.
40 *
41 * @(#)init_main.c 8.9 (Berkeley) 1/21/94
42 */
43
44#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1995 Terrence R. Lambert
3 * All rights reserved.
4 *
5 * Copyright (c) 1982, 1986, 1989, 1991, 1992, 1993
6 * The Regents of the University of California. All rights reserved.
7 * (c) UNIX System Laboratories, Inc.
8 * All or some portions of this file are derived from material licensed

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

37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 * SUCH DAMAGE.
40 *
41 * @(#)init_main.c 8.9 (Berkeley) 1/21/94
42 */
43
44#include <sys/cdefs.h>
45__FBSDID("$FreeBSD: head/sys/kern/init_main.c 184407 2008-10-28 11:33:06Z rwatson $");
45__FBSDID("$FreeBSD: head/sys/kern/init_main.c 191816 2009-05-05 10:56:12Z zec $");
46
47#include "opt_ddb.h"
48#include "opt_init_path.h"
49#include "opt_mac.h"
50
51#include <sys/param.h>
52#include <sys/kernel.h>
53#include <sys/exec.h>

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

69#include <sys/sched.h>
70#include <sys/sx.h>
71#include <sys/sysproto.h>
72#include <sys/vmmeter.h>
73#include <sys/unistd.h>
74#include <sys/malloc.h>
75#include <sys/conf.h>
76#include <sys/cpuset.h>
46
47#include "opt_ddb.h"
48#include "opt_init_path.h"
49#include "opt_mac.h"
50
51#include <sys/param.h>
52#include <sys/kernel.h>
53#include <sys/exec.h>

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

69#include <sys/sched.h>
70#include <sys/sx.h>
71#include <sys/sysproto.h>
72#include <sys/vmmeter.h>
73#include <sys/unistd.h>
74#include <sys/malloc.h>
75#include <sys/conf.h>
76#include <sys/cpuset.h>
77#include <sys/vimage.h>
77
78#include <machine/cpu.h>
79
80#include <security/audit/audit.h>
81#include <security/mac/mac_framework.h>
82
83#include <vm/vm.h>
84#include <vm/vm_param.h>

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

447 callout_init(&td->td_slpcallout, CALLOUT_MPSAFE);
448
449 /* Create credentials. */
450 p->p_ucred = crget();
451 p->p_ucred->cr_ngroups = 1; /* group 0 */
452 p->p_ucred->cr_uidinfo = uifind(0);
453 p->p_ucred->cr_ruidinfo = uifind(0);
454 p->p_ucred->cr_prison = NULL; /* Don't jail it. */
78
79#include <machine/cpu.h>
80
81#include <security/audit/audit.h>
82#include <security/mac/mac_framework.h>
83
84#include <vm/vm.h>
85#include <vm/vm_param.h>

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

448 callout_init(&td->td_slpcallout, CALLOUT_MPSAFE);
449
450 /* Create credentials. */
451 p->p_ucred = crget();
452 p->p_ucred->cr_ngroups = 1; /* group 0 */
453 p->p_ucred->cr_uidinfo = uifind(0);
454 p->p_ucred->cr_ruidinfo = uifind(0);
455 p->p_ucred->cr_prison = NULL; /* Don't jail it. */
456#ifdef VIMAGE
457 p->p_ucred->cr_vnet = LIST_FIRST(&vnet_head);
458#endif
455#ifdef AUDIT
456 audit_cred_kproc0(p->p_ucred);
457#endif
458#ifdef MAC
459 mac_cred_create_swapper(p->p_ucred);
460#endif
461 td->td_ucred = crhold(p->p_ucred);
462

--- 304 unchanged lines hidden ---
459#ifdef AUDIT
460 audit_cred_kproc0(p->p_ucred);
461#endif
462#ifdef MAC
463 mac_cred_create_swapper(p->p_ucred);
464#endif
465 td->td_ucred = crhold(p->p_ucred);
466

--- 304 unchanged lines hidden ---