summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-11-05 12:41:13 +1100
committerDarren Tucker <dtucker@zip.com.au>2010-11-05 12:41:13 +1100
commit4db380701d15727e43600e41a567d36177e4226e (patch)
treea8848d805cfb763a6bd998557a316511cdc2c18e /session.c
parent920612e45ae8183226e8841ff27cdc54a8287ba2 (diff)
downloadopenssh-git-4db380701d15727e43600e41a567d36177e4226e.tar.gz
- (dtucker) [platform.c session.c] Move the AIX setpcred+chroot hack into
platform.c
Diffstat (limited to 'session.c')
-rw-r--r--session.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/session.c b/session.c
index 7994dd60..78e7c5f5 100644
--- a/session.c
+++ b/session.c
@@ -1530,24 +1530,6 @@ do_setusercontext(struct passwd *pw)
}
# endif /* USE_LIBIAF */
#endif
-#ifdef HAVE_SETPCRED
- /*
- * If we have a chroot directory, we set all creds except real
- * uid which we will need for chroot. If we don't have a
- * chroot directory, we don't override anything.
- */
- {
- char **creds = NULL, *chroot_creds[] =
- { "REAL_USER=root", NULL };
-
- if (options.chroot_directory != NULL &&
- strcasecmp(options.chroot_directory, "none") != 0)
- creds = chroot_creds;
-
- if (setpcred(pw->pw_name, creds) == -1)
- fatal("Failed to set process credentials");
- }
-#endif /* HAVE_SETPCRED */
platform_setusercontext_post_groups(pw);