Threading and credential changes
David Xu
davidxu at viatech.com.cn
Thu Apr 24 23:08:04 PDT 2003
cred is updated when process enters kernel,
if the current thread cred is not same as process's cred,
it will be updated to use process's cred.
when process is in user mode, it is not important if the
cred is right one. Am I right ?
David Xu
----- Original Message -----
From: "Tim Robbins" <tjr at FreeBSD.ORG>
To: <freebsd-threads at freebsd.org>
Sent: Friday, April 25, 2003 11:16 AM
Subject: Threading and credential changes
> I'm trying to understand the way a thread's td_ucred is updated. In ast(),
> cred_update_thread() is called to update it when it doesn't match the one
> stored in the proc. However, setuid() etc. don't set the TDF_ASTPENDING flag
> on any threads, not even the current thread. Am I misunderstanding what ast()
> does, does the thread's cred get updated in some other way, or is this a bug?
>
>
> Tim
> _______________________________________________
> freebsd-threads at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-threads
> To unsubscribe, send any mail to "freebsd-threads-unsubscribe at freebsd.org"
More information about the freebsd-threads
mailing list