Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Mar 2003 12:53:38 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 27017 for review
Message-ID:  <200303172053.h2HKrco6001673@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.

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);

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?200303172053.h2HKrco6001673>