diff options
| author | Francesco Colista <francesco.colista@gmail.com> | 2012-02-09 12:30:34 +0000 |
|---|---|---|
| committer | Francesco Colista <francesco.colista@gmail.com> | 2012-02-09 12:30:34 +0000 |
| commit | e115817423b4eb038c449bef018c712f41bf236a (patch) | |
| tree | 38bc87674629ae9caaa5cccafd40cca28a5f4c9e /testing/sshguard/parser.patch | |
| parent | 534b7b4beacc450aa2961dce44e8165ffd18ac2f (diff) | |
| parent | a5b3d6fa4510e6fb23f8cc315c94e21bd1f62034 (diff) | |
| download | aports-e115817423b4eb038c449bef018c712f41bf236a.tar.bz2 aports-e115817423b4eb038c449bef018c712f41bf236a.tar.xz | |
Merge git://dev.alpinelinux.org/aports
Diffstat (limited to 'testing/sshguard/parser.patch')
| -rw-r--r-- | testing/sshguard/parser.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/sshguard/parser.patch b/testing/sshguard/parser.patch new file mode 100644 index 0000000000..51f9915e18 --- /dev/null +++ b/testing/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; |
