From owner-p4-projects Tue Jul 30 17:59:43 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0856837B401; Tue, 30 Jul 2002 17:59:38 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B886C37B400 for ; Tue, 30 Jul 2002 17:59:37 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7696C43E42 for ; Tue, 30 Jul 2002 17:59:37 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6V0xbJU009675 for ; Tue, 30 Jul 2002 17:59:37 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6V0xbh4009672 for perforce@freebsd.org; Tue, 30 Jul 2002 17:59:37 -0700 (PDT) Date: Tue, 30 Jul 2002 17:59:37 -0700 (PDT) Message-Id: <200207310059.g6V0xbh4009672@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson Subject: PERFORCE change 15257 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=15257 Change 15257 by rwatson@rwatson_tislabs on 2002/07/30 17:59:25 Remove code dup'd in integ. Affected files ... .. //depot/projects/trustedbsd/mac/sys/kern/init_main.c#25 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/kern/init_main.c#25 (text+ko) ==== @@ -362,11 +362,6 @@ /* Create credentials. */ p->p_ucred = crget(); p->p_ucred->cr_ngroups = 1; /* group 0 */ - -#ifdef MAC - mac_create_proc0(p->p_ucred); -#endif - p->p_ucred->cr_uidinfo = uifind(0); p->p_ucred->cr_ruidinfo = uifind(0); p->p_ucred->cr_prison = NULL; /* Don't jail it. */ @@ -681,9 +676,6 @@ initproc->p_sflag |= PS_INMEM; mtx_unlock_spin(&sched_lock); cpu_set_fork_handler(FIRST_THREAD_IN_PROC(initproc), start_init, NULL); -#ifdef MAC - mac_create_proc1(initproc->p_ucred); -#endif } SYSINIT(init, SI_SUB_CREATE_INIT, SI_ORDER_FIRST, create_init, NULL) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message