summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-11-05 13:00:05 +1100
committerDarren Tucker <dtucker@zip.com.au>2010-11-05 13:00:05 +1100
commit728d8371a1dc1b615284ece94b0085897b4c0b51 (patch)
tree949dc94374774d643bb2799e4de1795fc92e559c /session.c
parentfd4d8aa2cbe0acad520ab168656759cb46054c03 (diff)
- (dtucker) [platform.c session.c] Move the PAM credential establishment for
the LOGIN_CAP case into platform.c.
Diffstat (limited to 'session.c')
-rw-r--r--session.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/session.c b/session.c
index 0775d78d2..a2d8bec8b 100644
--- a/session.c
+++ b/session.c
@@ -1476,11 +1476,6 @@ do_setusercontext(struct passwd *pw)
1476#endif /* HAVE_CYGWIN */ 1476#endif /* HAVE_CYGWIN */
1477 { 1477 {
1478#ifdef HAVE_LOGIN_CAP 1478#ifdef HAVE_LOGIN_CAP
1479# ifdef USE_PAM
1480 if (options.use_pam) {
1481 do_pam_setcred(use_privsep);
1482 }
1483# endif /* USE_PAM */
1484 if (setusercontext(lc, pw, pw->pw_uid, 1479 if (setusercontext(lc, pw, pw->pw_uid,
1485 (LOGIN_SETALL & ~(LOGIN_SETPATH|LOGIN_SETUSER))) < 0) { 1480 (LOGIN_SETALL & ~(LOGIN_SETPATH|LOGIN_SETUSER))) < 0) {
1486 perror("unable to set user context"); 1481 perror("unable to set user context");