mirror of
https://github.com/clearlinux/tallow.git
synced 2026-08-24 05:55:49 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| dccbfce478 | |||
| 5503ff0b20 |
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
AC_PREREQ([2.64])
|
AC_PREREQ([2.64])
|
||||||
AC_INIT([tallow], [10], [auke-jan.h.kok@intel.com])
|
AC_INIT([tallow], [12], [auke-jan.h.kok@intel.com])
|
||||||
AM_INIT_AUTOMAKE([foreign])
|
AM_INIT_AUTOMAKE([foreign])
|
||||||
AC_CONFIG_FILES([Makefile])
|
AC_CONFIG_FILES([Makefile])
|
||||||
|
|
||||||
|
|||||||
@@ -58,14 +58,14 @@ struct pattern_struct {
|
|||||||
|
|
||||||
#define PATTERN_COUNT 10
|
#define PATTERN_COUNT 10
|
||||||
static struct pattern_struct patterns[PATTERN_COUNT] = {
|
static struct pattern_struct patterns[PATTERN_COUNT] = {
|
||||||
{ 0, 0.3, "MESSAGE=Failed .* for .* from ([0-9a-z:.]+) port \\d+ ssh2", NULL},
|
{ 0, 0.2, "MESSAGE=Failed .* for .* from ([0-9a-z:.]+) port \\d+ ssh2", NULL},
|
||||||
{ 0, 0.3, "MESSAGE=error: PAM: Authentication failure for .* from ([0-9a-z:.]+)", NULL},
|
{ 0, 0.2, "MESSAGE=error: PAM: Authentication failure for .* from ([0-9a-z:.]+)", NULL},
|
||||||
{15, 0.3, "MESSAGE=Invalid user .* from ([0-9a-z:.]+) port \\d+", NULL},
|
{10, 0.2, "MESSAGE=Invalid user .* from ([0-9a-z:.]+) port \\d+", NULL},
|
||||||
{15, 0.3, "MESSAGE=Did not receive identification string from ([0-9a-z:.]+) port \\d+", NULL},
|
{10, 0.3, "MESSAGE=Did not receive identification string from ([0-9a-z:.]+) port \\d+", NULL},
|
||||||
{15, 0.4, "MESSAGE=Bad protocol version identification .* from ([0-9a-z:.]+)", NULL},
|
{15, 0.4, "MESSAGE=Bad protocol version identification .* from ([0-9a-z:.]+)", NULL},
|
||||||
{15, 0.4, "MESSAGE=Connection closed by authenticating user .* ([0-9a-z:.]+) port \\d+", NULL},
|
{15, 0.4, "MESSAGE=Connection closed by authenticating user .* ([0-9a-z:.]+) port \\d+", NULL},
|
||||||
{15, 0.4, "MESSAGE=Received disconnect from ([0-9a-z:.]+) port .*\\[preauth\\]", NULL},
|
{10, 0.3, "MESSAGE=Received disconnect from ([0-9a-z:.]+) port .*\\[preauth\\]", NULL},
|
||||||
{15, 0.4, "MESSAGE=Connection closed by ([0-9a-z:.]+) port .*\\[preauth\\]", NULL},
|
{10, 0.3, "MESSAGE=Connection closed by ([0-9a-z:.]+) port .*\\[preauth\\]", NULL},
|
||||||
{30, 0.5, "MESSAGE=Failed .* for root from ([0-9a-z:.]+) port \\d+ ssh2", NULL},
|
{30, 0.5, "MESSAGE=Failed .* for root from ([0-9a-z:.]+) port \\d+ ssh2", NULL},
|
||||||
{60, 0.6, "MESSAGE=Unable to negotiate with ([0-9a-z:.]+) port \\d+: no matching key exchange method found.", NULL}
|
{60, 0.6, "MESSAGE=Unable to negotiate with ([0-9a-z:.]+) port \\d+: no matching key exchange method found.", NULL}
|
||||||
};
|
};
|
||||||
@@ -434,6 +434,9 @@ int main(void)
|
|||||||
if (r == SD_JOURNAL_INVALIDATE) {
|
if (r == SD_JOURNAL_INVALIDATE) {
|
||||||
fprintf(stderr, "Journal was rotated, resetting\n");
|
fprintf(stderr, "Journal was rotated, resetting\n");
|
||||||
sd_journal_seek_tail(j);
|
sd_journal_seek_tail(j);
|
||||||
|
} else if (r == SD_JOURNAL_NOP) {
|
||||||
|
dbg("Timeout reached, waiting again\n");
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (sd_journal_next(j) != 0) {
|
while (sd_journal_next(j) != 0) {
|
||||||
@@ -441,7 +444,7 @@ int main(void)
|
|||||||
|
|
||||||
if (sd_journal_get_data(j, "MESSAGE", &d, &l) < 0) {
|
if (sd_journal_get_data(j, "MESSAGE", &d, &l) < 0) {
|
||||||
fprintf(stderr, "Failed to read message field: %s\n", strerror(-r));
|
fprintf(stderr, "Failed to read message field: %s\n", strerror(-r));
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
m = strndup(d, l+1);
|
m = strndup(d, l+1);
|
||||||
|
|||||||
Reference in New Issue
Block a user