mirror of
https://github.com/clearlinux/tallow.git
synced 2026-08-19 02:57:11 +00:00
9174590b04
Tallow will now read JSON files from /usr/share/tallow/ and /etc/tallow and parse them to retrieve filters and patterns. The sshd patterns are converted to JSON and used to test this change. If a file exists in /etc/tallow with the same name as a file in /usr/share/tallow, only the file in /etc/tallow will be parsed. This change allows much more dynamic insertion of rules and people to create custom patterns and filters and monitor the logs of other daemons besides sshd that may be subject to brutefoce login attempts. Potential use cases: - IMAP/POP services - SMTP - HTTP services permitted they log to syslog - DNS servers logging malformed requests - etc.
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
# -*- Autoconf -*-
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ([2.64])
|
|
AC_INIT([tallow], [15], [auke-jan.h.kok@intel.com])
|
|
AM_INIT_AUTOMAKE([foreign])
|
|
AC_CONFIG_FILES([Makefile])
|
|
|
|
# Checks for programs.
|
|
AC_PROG_CC
|
|
AC_PROG_INSTALL
|
|
|
|
PKG_CHECK_MODULES(PCRE, libpcre)
|
|
PKG_CHECK_MODULES(JSON_C, json-c)
|
|
PKG_CHECK_MODULES(LIBSYSTEMD, libsystemd,, [PKG_CHECK_MODULES(LIBSYSTEMD, libsystemd-journal)])
|
|
AC_SUBST(LIBSYSTEMD_CFLAGS)
|
|
AC_SUBST(LIBSYSTEMD_LIBS)
|
|
AC_SUBST(LIBSYSTEMD_JOURNAL_CFLAGS)
|
|
AC_SUBST(LIBSYSTEMD_JOURNAL_LIBS)
|
|
|
|
AC_ARG_WITH([systemdsystemunitdir], AC_HELP_STRING([--with-systemdsystemunitdir=DIR],
|
|
[path to systemd system service directory]), [path_systemdsystemunit=${withval}],
|
|
[path_systemdsystemunit="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"])
|
|
if (test -n "${path_systemdsystemunit}"); then
|
|
SYSTEMD_SYSTEMUNITDIR="${path_systemdsystemunit}"
|
|
AC_SUBST(SYSTEMD_SYSTEMUNITDIR)
|
|
fi
|
|
|
|
AC_CHECK_HEADERS([stdlib.h stdio.h string.h stdarg.h limits.h sys/time.h])
|
|
|
|
AC_OUTPUT([
|
|
data/tallow.service
|
|
])
|