bugzilla-daemon at mindrot.org
2005-Apr-28 14:28 UTC
[Bug 980] sshd does not write the session leader pid to utmp when priv-separation is enabled
http://bugzilla.mindrot.org/show_bug.cgi?id=980 ------- Additional Comments From senthilkumar_sen at hotpop.com 2005-04-29 00:28 ------- I tried passing SIGTERM to the sshd user process after applying the patch (id=821) and it is not cleaning up the wtmp entries. What would be needed in the patch additionaly so that proper pid is passed at the time of cleaning wtmp entries when SIGTERM is received. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2005-Apr-28 14:37 UTC
[Bug 980] sshd does not write the session leader pid to utmp when priv-separation is enabled
http://bugzilla.mindrot.org/show_bug.cgi?id=980 ------- Additional Comments From senthilkumar_sen at hotpop.com 2005-04-29 00:37 ------- What makes the difference between recording unprivileged sshd process and forked shell pid of this process in either utmp or wtmp and why it should be like that? On what basis the getlogin() call works?. In base code, unprivileged sshd process pid is logged and getlogin() call fails on HP-UX. But with the patch (id 821) the same unprivileged sshd process pid is logged and getlogin() call now succeeds. IS there any other information logging significant in this regard?. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2005-Apr-29 05:40 UTC
[Bug 980] sshd does not write the session leader pid to utmp when priv-separation is enabled
http://bugzilla.mindrot.org/show_bug.cgi?id=980 ------- Additional Comments From senthilkumar_sen at hotpop.com 2005-04-29 15:40 ------- A change for comment #9, with the patch id 821, it logs the same process id 0 for login. As a result when the user logout in one session, all the entires related to the user or someother user in wtmp are cleaned for all sessions even when the users doesn't logout in other sessions. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2005-May-13 13:27 UTC
[Bug 980] sshd does not write the session leader pid to utmp when priv-separation is enabled
http://bugzilla.mindrot.org/show_bug.cgi?id=980 t8m at centrum.cz changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |t8m at centrum.cz ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2005-May-16 13:38 UTC
[Bug 980] sshd does not write the session leader pid to utmp when priv-separation is enabled
http://bugzilla.mindrot.org/show_bug.cgi?id=980 ------- Additional Comments From senthilkumar_sen at hotpop.com 2005-05-16 23:38 ------- Created an attachment (id=916) --> (http://bugzilla.mindrot.org/attachment.cgi?id=916&action=view) Patch for logging,clearing shell pid during login and logout The attached patch logs the shell pid to utmp/wtmp files during login if privilegeseparation is enabled. It also clears the shell pid from these files during logout with privilegeseparation enabled. I tested the patch and it works fine. Let me know the comments on the patch. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
Reasonably Related Threads
- [Bug 980] sshd does not write the session leader pid to utmp when priv-separation is enabled
- [Bug 1029] SIGTERM and cleanup of wtmp files
- [Bug 1087] SSH fails to show PAM password expiry message from LDAP on login
- [Bug 910] known_hosts port numbers
- [Bug 1030] sshd writes twice to wtmp when "UseLogin" is yes