diff options
| author | Fabian Affolter <fabian@affolter-engineering.ch> | 2012-01-30 02:37:57 +0000 |
|---|---|---|
| committer | Fabian Affolter <fabian@affolter-engineering.ch> | 2012-01-30 02:37:57 +0000 |
| commit | a9bc84bba147c649e2e30f270add42d6c6da0b4e (patch) | |
| tree | e85cb22d969966900b71e0ba4a26e6d600044904 /testing/sshguard/parser.patch | |
| parent | 9ba6d526aaff5714cb1ad8b9e91c5576e19e0e0b (diff) | |
| parent | 5d7f87f856d5ab5c13148f781a309af5c9ceff02 (diff) | |
| download | aports-a9bc84bba147c649e2e30f270add42d6c6da0b4e.tar.bz2 aports-a9bc84bba147c649e2e30f270add42d6c6da0b4e.tar.xz | |
Merge branch 'master' of git://git.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 000000000..51f9915e1 --- /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; |
