Bugzilla – Attachment 3241 Details for
Bug 2960
Send a message to syslog when "ForceCommand internal-sftp" is used and a ssh connection is dropped
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
include connection endpoint in log message
bz2960.diff (text/plain), 872 bytes, created by
Damien Miller
on 2019-02-08 15:15:40 AEDT
(
hide
)
Description:
include connection endpoint in log message
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2019-02-08 15:15:40 AEDT
Size:
872 bytes
patch
obsolete
>diff --git a/session.c b/session.c >index b0b7db7..42cf6c4 100644 >--- a/session.c >+++ b/session.c >@@ -1221,12 +1221,13 @@ void > do_child(struct ssh *ssh, Session *s, const char *command) > { > extern char **environ; >- char **env; >- char *argv[ARGV_MAX]; >+ char **env, *argv[ARGV_MAX], remote_id[512]; > const char *shell, *shell0; > struct passwd *pw = s->pw; > int r = 0; > >+ sshpkt_fmt_connection_id(ssh, remote_id, sizeof(remote_id)); >+ > /* remove hostkey from the child's memory */ > destroy_sensitive_data(); > ssh_packet_clear_keys(ssh); >@@ -1322,6 +1323,8 @@ do_child(struct ssh *ssh, Session *s, const char *command) > signal(SIGPIPE, SIG_DFL); > > if (s->is_subsystem == SUBSYSTEM_INT_SFTP_ERROR) { >+ error("Connection from %s: refusing non-sftp session", >+ remote_id); > printf("This service allows sftp connections only.\n"); > fflush(NULL); > exit(1);
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
Flags:
dtucker
:
ok+
Actions:
View
|
Diff
Attachments on
bug 2960
:
3232
| 3241