Julian Elischer wrote:
> The fully safe version of this code is:
> td->td_retval[0] = td->td_ucred->cr_ruid;
> td->td_retval[1] = td->td_ucred->cr_uid;
> return (0);
> 
> because td->td_ucred is read-only for it's whole existance.

???

Are you sure that td->td_ucred can't change in the middle,
to point to a different ucred, as a result of kernel
preemption?

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to