Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Aug 2002 10:41:01 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 15646 for review
Message-ID:  <200208071741.g77Hf1K6033666@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=15646

Change 15646 by rwatson@rwatson_tislabs on 2002/08/07 10:40:23

	Make sure that the thread credential for initproc is kept in
	sync with the process credential following credential divorcing,
	or we'll use the cached credential until init first hits
	userland, resulting in the proc0 cred being used instead of proc1
	for the root mount process.
	
	Discussed with/suggested by:	julian

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/kern/init_main.c#28 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/kern/init_main.c#28 (text+ko) ====

@@ -671,6 +671,7 @@
 	initproc->p_ucred = newcred;
 	PROC_UNLOCK(initproc);
 	crfree(oldcred);
+	cred_update_thread(FIRST_THREAD_IN_PROC(initproc));
 	mtx_lock_spin(&sched_lock);
 	initproc->p_sflag |= PS_INMEM;
 	mtx_unlock_spin(&sched_lock);

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208071741.g77Hf1K6033666>