Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Mar 2003 16:33:47 -0500 (EST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   RE: PERFORCE change 27017 for review
Message-ID:  <XFMail.20030317163347.jhb@FreeBSD.org>
In-Reply-To: <200303172053.h2HKrco6001673@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 17-Mar-2003 John Baldwin wrote:
> http://perforce.freebsd.org/chv.cgi?CH=27017
> 
> Change 27017 by jhb@jhb_laptop on 2003/03/17 12:52:41
> 
>       Revert back to this thread's credentials during an execve from a
>       multithreaded process.

*sigh*, wrong branch but I guess that really isn't a big deal.

> Affected files ...
> 
> .. //depot/projects/smpng/sys/kern/kern_exec.c#54 edit
> 
> Differences ...
> 
> ==== //depot/projects/smpng/sys/kern/kern_exec.c#54 (text+ko) ====
> 
> @@ -213,6 +213,10 @@
>               p->p_flag &= ~P_THREADED;
>               td->td_mailbox = NULL;
>               thread_single_end();
> +             if (td->td_ucred != p->p_ucred) {
> +                     crfree(p->p_ucred);
> +                     p->p_ucred = crhold(td->td_ucred);
> +             }
>       }
>       p->p_flag |= P_INEXEC;
>       PROC_UNLOCK(p);

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

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?XFMail.20030317163347.jhb>