diff options
Diffstat (limited to 'main/sshguard/parser.patch')
-rw-r--r-- | main/sshguard/parser.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/main/sshguard/parser.patch b/main/sshguard/parser.patch new file mode 100644 index 0000000000..51f9915e18 --- /dev/null +++ b/main/sshguard/parser.patch @@ -0,0 +1,11 @@ +--- sshguard-1.5/src/parser/attack_scanner.l ++++ sshguard-1.5-mod/src/parser/attack_scanner.l +@@ -107,7 +107,7 @@ + */ + + /* handle entries with PID and without PID from processes other than sshguard */ +-{TIMESTAMP_SYSLOG}[ ]+([a-zA-Z0-9]|{WORD}|{HOSTADDR})[ ]+{PROCESSNAME}"["{NUMBER}"]: "{SOLARIS_MSGID_TAG}? { ++{TIMESTAMP_SYSLOG}[ ]+([a-zA-Z0-9]|{WORD}|{HOSTADDR})[ ]+([a-zA-Z0-9]|{WORD}|{HOSTADDR})[ ]+{PROCESSNAME}"["{NUMBER}"]: "{SOLARIS_MSGID_TAG}? { + /* extract PID */ + yylval.num = getsyslogpid(yytext, yyleng); + return SYSLOG_BANNER_PID; |