Bugzilla – Attachment 1661 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]
move setpcred (and usrinfo) on AIX to after chroot
openssh-aix-setpcred-chroot.patch (text/plain), 1.42 KB, created by
Darren Tucker
on 2009-07-12 22:56:13 AEST
(
hide
)
Description:
move setpcred (and usrinfo) on AIX to after chroot
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2009-07-12 22:56:13 AEST
Size:
1.42 KB
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 12:45:37 -0000 >@@ -1466,11 +1466,6 @@ do_setusercontext(struct passwd *pw) > if (getuid() == 0 || geteuid() == 0) > #endif /* HAVE_CYGWIN */ > { >- >-#ifdef HAVE_SETPCRED >- if (setpcred(pw->pw_name, (char **)NULL) == -1) >- fatal("Failed to set process credentials"); >-#endif /* HAVE_SETPCRED */ > #ifdef HAVE_LOGIN_CAP > # ifdef __bsdi__ > setpgid(0, 0); >@@ -1517,9 +1512,6 @@ do_setusercontext(struct passwd *pw) > # if defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY) > irix_setusercontext(pw); > # endif /* defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY) */ >-# ifdef _AIX >- aix_usrinfo(pw); >-# endif /* _AIX */ > # ifdef USE_LIBIAF > if (set_id(pw->pw_name) != 0) { > exit(1); >@@ -1538,6 +1530,13 @@ do_setusercontext(struct passwd *pw) > free(chroot_path); > } > >+#ifdef HAVE_SETPCRED >+ if (setpcred(pw->pw_name, (char **)NULL) == -1) >+ fatal("Failed to set process credentials"); >+#endif /* HAVE_SETPCRED */ >+# ifdef _AIX >+ aix_usrinfo(pw); >+# endif /* _AIX */ > #ifdef HAVE_LOGIN_CAP > if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETUSER) < 0) { > perror("unable to set user context (setuser)");
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
Actions:
View
|
Diff
Attachments on
bug 1567
:
1661
|
1662
|
1669
|
1728
|
1729
|
1807