PERFORCE change 15646 for review
Robert Watson
rwatson at freebsd.org
Wed Aug 7 17:41:01 GMT 2002
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=15646
Change 15646 by rwatson at 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 at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list