suricataconfdir = $(sysconfdir)/suricata
suricatalogdir = $(localstatedir)/log/suricata
+suricatarundir = $(runstatedir)/suricata
@INTLTOOL_POLICY_RULE@
'|bindir=$(bindir)|' \
'|sysconfdir=$(sysconfdir)|' \
'|suricataconfdir=$(suricataconfdir)|' \
- '|suricatalogdir=$(suricatalogdir)|'
+ '|suricatalogdir=$(suricatalogdir)|' \
+ '|suricatarundir=$(suricatarundir)|'
SED_PROCESS = \
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
;
; Example configuration file for the Suricata Reporter
-;
+;
; This application receives events from Suricata to generate reports,
; alert emails and store a history of alerts.
;
;workers = 4
; The socket where to receive events from
-;socket = /var/run/suricata/reporter.socket
+;socket = @suricatarundir@/reporter.socket
; The ownership of the socket
;user = suricata
@property
def socket_path(self):
return self.config.get("DEFAULT", "socket",
- fallback="/var/run/suricata/reporter.socket")
+ fallback="@suricatarundir@/reporter.socket")
def get_socket_owner(self):
# Fetch the user/group from the configuration