Bugzilla – Attachment 1662 Details for
Bug 1567
Insufficient privileges to chroot() on AIX
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
override the real uid in setpcred and leave it to permanently_set_uid to set
openssh-aix-setpcred-chroot.patch (text/plain), 722 bytes, created by
Darren Tucker
on 2009-07-13 00:22:30 AEST
(
hide
)
Description:
override the real uid in setpcred and leave it to permanently_set_uid to set
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2009-07-13 00:22:30 AEST
Size:
722 bytes
patch
obsolete
>Index: session.c >=================================================================== >RCS file: /home/dtucker/openssh/cvs/openssh/session.c,v >retrieving revision 1.383 >diff -u -p -r1.383 session.c >--- session.c 21 Jun 2009 09:50:08 -0000 1.383 >+++ session.c 12 Jul 2009 14:04:22 -0000 >@@ -1466,9 +1466,11 @@ do_setusercontext(struct passwd *pw) > if (getuid() == 0 || geteuid() == 0) > #endif /* HAVE_CYGWIN */ > { >- > #ifdef HAVE_SETPCRED >- if (setpcred(pw->pw_name, (char **)NULL) == -1) >+ /* set all creds except real user ID */ >+ char *creds[] = { "REAL_USER=root", NULL }; >+ >+ if (setpcred(pw->pw_name, creds) == -1) > fatal("Failed to set process credentials"); > #endif /* HAVE_SETPCRED */ > #ifdef HAVE_LOGIN_CAP
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
djm
:
ok+
Actions:
View
|
Diff
Attachments on
bug 1567
:
1661
|
1662
|
1669
|
1728
|
1729
|
1807