[Bug 235903] [pam] ssh-agent is not killed at terminating session
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Feb 21 00:30:39 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235903
Bug ID: 235903
Summary: [pam] ssh-agent is not killed at terminating session
Product: Base System
Version: 12.0-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: sasaki at fcc.ad.jp
Enabling pam_ssh with want_agent in /etc/pam.d/xdm, ssh-agent is started at
login but is not killed at logout.
I added debug option to the session line and got the following logs on both
11.2-STABLE and 12.0-STABLE.
[11.2-STABLE]
Feb 18 09:24:50 XXX xdm[7352]: in pam_getenv(): entering: 'SSH_AGENT_PID'
Feb 18 09:24:50 XXX xdm[7352]: in openpam_findenv(): entering
Feb 18 09:24:50 XXX xdm[7352]: in openpam_findenv(): returning 1
Feb 18 09:24:50 XXX xdm[7352]: in pam_getenv(): returning '7364'
Feb 18 09:24:50 XXX xdm[7352]: in pam_sm_close_session(): killing ssh agent
7364
[12.0-STABLE]
Feb 18 09:14:04 XXX xdm[4425]: in pam_getenv(): entering: 'SSH_AGENT_PID'
Feb 18 09:14:04 XXX xdm[4425]: in openpam_findenv(): entering
Feb 18 09:14:04 XXX xdm[4425]: in openpam_findenv(): returning 1
Feb 18 09:14:04 XXX xdm[4425]: in pam_getenv(): returning '=4437'
Feb 18 09:14:04 XXX xdm[4425]: in pam_sm_close_session(): invalid ssh agent pid
Comparing the both version of /usr/src/contrib/openpam/lib/libpam/pam_getenv.c,
I suspect that 12.0-STABLE's pam_getenv() is wrong.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list