- (stevesk) session.c: back out to where we were before:
- (djm) Move PAM session initialisation until after fork in sshd. Patch from Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
parent
94bce40720
commit
ff793a27b8
|
@ -6,6 +6,9 @@
|
||||||
breaks Solaris.
|
breaks Solaris.
|
||||||
- (djm) Move PAM session setup back to before setuid to user.
|
- (djm) Move PAM session setup back to before setuid to user.
|
||||||
fixes problems on Solaris-drived PAMs.
|
fixes problems on Solaris-drived PAMs.
|
||||||
|
- (stevesk) session.c: back out to where we were before:
|
||||||
|
- (djm) Move PAM session initialisation until after fork in sshd. Patch
|
||||||
|
from Nalin Dahyabhai <nalin@redhat.com>
|
||||||
|
|
||||||
20010220
|
20010220
|
||||||
- (bal) Fix mixed up params to memmove() from Jan 5th in setenv.c and
|
- (bal) Fix mixed up params to memmove() from Jan 5th in setenv.c and
|
||||||
|
@ -4087,4 +4090,4 @@
|
||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- Released 1.0pre1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.808 2001/02/21 05:53:33 mouring Exp $
|
$Id: ChangeLog,v 1.809 2001/02/21 16:36:51 stevesk Exp $
|
||||||
|
|
14
session.c
14
session.c
|
@ -481,6 +481,10 @@ do_exec_no_pty(Session *s, const char *command, struct passwd * pw)
|
||||||
|
|
||||||
session_proctitle(s);
|
session_proctitle(s);
|
||||||
|
|
||||||
|
#ifdef USE_PAM
|
||||||
|
do_pam_setcred();
|
||||||
|
#endif /* USE_PAM */
|
||||||
|
|
||||||
/* Fork the child. */
|
/* Fork the child. */
|
||||||
if ((pid = fork()) == 0) {
|
if ((pid = fork()) == 0) {
|
||||||
/* Child. Reinitialize the log since the pid has changed. */
|
/* Child. Reinitialize the log since the pid has changed. */
|
||||||
|
@ -593,6 +597,11 @@ do_exec_pty(Session *s, const char *command, struct passwd * pw)
|
||||||
ptyfd = s->ptyfd;
|
ptyfd = s->ptyfd;
|
||||||
ttyfd = s->ttyfd;
|
ttyfd = s->ttyfd;
|
||||||
|
|
||||||
|
#ifdef USE_PAM
|
||||||
|
do_pam_session(pw->pw_name, s->tty);
|
||||||
|
do_pam_setcred();
|
||||||
|
#endif /* USE_PAM */
|
||||||
|
|
||||||
/* Fork the child. */
|
/* Fork the child. */
|
||||||
if ((pid = fork()) == 0) {
|
if ((pid = fork()) == 0) {
|
||||||
/* Child. Reinitialize the log because the pid has changed. */
|
/* Child. Reinitialize the log because the pid has changed. */
|
||||||
|
@ -1143,11 +1152,6 @@ do_child(const char *command, struct passwd * pw, const char *term,
|
||||||
shell = login_getcapstr(lc, "shell", (char *)shell, (char *)shell);
|
shell = login_getcapstr(lc, "shell", (char *)shell, (char *)shell);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_PAM
|
|
||||||
do_pam_session(pw->pw_name, ttyname);
|
|
||||||
do_pam_setcred();
|
|
||||||
#endif /* USE_PAM */
|
|
||||||
|
|
||||||
#ifdef AFS
|
#ifdef AFS
|
||||||
/* Try to get AFS tokens for the local cell. */
|
/* Try to get AFS tokens for the local cell. */
|
||||||
if (k_hasafs()) {
|
if (k_hasafs()) {
|
||||||
|
|
Loading…
Reference in New Issue