Bugzilla – Attachment 743 Details for
Bug 956
Syslog do not tell you when user loggs out.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for session.c to log logouts in syslog.
openssh.patch (text/plain), 582 bytes, created by
Olle Hällnäs
on 2004-11-22 00:30:33 AEDT
(
hide
)
Description:
Patch for session.c to log logouts in syslog.
Filename:
MIME Type:
Creator:
Olle Hällnäs
Created:
2004-11-22 00:30:33 AEDT
Size:
582 bytes
patch
obsolete
>--- openssh-3.8.1p1.org/session.c 2004-04-16 12:47:55.000000000 +0000 >+++ openssh-3.8.1p1/session.c 2004-11-21 12:59:57.000000000 +0000 >@@ -1923,8 +1923,12 @@ > debug("session_pty_cleanup: session %d release %s", s->self, s->tty); > > /* Record that the user has logged out. */ >- if (s->pid != 0) >+ if (s->pid != 0) { >+ void (*authlog) (const char *fmt,...) = verbose; > record_logout(s->pid, s->tty, s->pw->pw_name); >+ authlog = logit; >+ authlog("User %s from ip %.50s logged out",s->pw->pw_name,get_remote_ipaddr()); >+ } > > /* Release the pseudo-tty. */ > if (getuid() == 0)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 956
: 743