[Bug 1567] Insufficient privileges to chroot() on AIX

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Jul 31 10:36:54 EST 2009


https://bugzilla.mindrot.org/show_bug.cgi?id=1567


Damien Miller <djm at mindrot.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #1662|                            |ok+
               Flag|                            |




--- Comment #5 from Damien Miller <djm at mindrot.org>  2009-07-31 10:36:53 ---
(From update of attachment 1662)
>--- session.c	21 Jun 2009 09:50:08 -0000	1.383
>+++ session.c	12 Jul 2009 14:04:22 -0000
...
> #ifdef HAVE_SETPCRED
>-		if (setpcred(pw->pw_name, (char **)NULL) == -1)
>+		/* set all creds except real user ID */
>+		char *creds[] = { "REAL_USER=root", NULL };

Maybe mention that RUID=root is needed for chroot() in the comment.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list