Debian default configuration This patch sets Debian defaults for suricata configurati...
authorArturo Borrero Gonzalez <arturo@debian.org>
Tue, 29 Nov 2022 10:19:06 +0000 (10:19 +0000)
committerSascha Steinbiss <satta@debian.org>
Tue, 29 Nov 2022 10:19:06 +0000 (10:19 +0000)
Forwarded: not-needed
Last-Update: 2016-12-01

Gbp-Pq: Name debian-default-cfg.patch

configure.ac
src/unix-manager.c
suricata.yaml.in

index 33f483cec5cb3f427b0fb85dae00efd29acfd4ba..19221967bb241d7d90e0ba265ec0e740e8bd073f 100644 (file)
@@ -2762,7 +2762,7 @@ else
     EXPAND_VARIABLE(localstatedir, e_logfilesdir, "/log/suricata/files")
     EXPAND_VARIABLE(localstatedir, e_logcertsdir, "/log/suricata/certs")
     EXPAND_VARIABLE(sysconfdir, e_sysconfdir, "/suricata/")
-    EXPAND_VARIABLE(localstatedir, e_localstatedir, "/run/suricata")
+    EXPAND_VARIABLE(localstatedir, e_localstatedir, "/run/")
     EXPAND_VARIABLE(datadir, e_datarulesdir, "/suricata/rules")
     EXPAND_VARIABLE(localstatedir, e_datadir, "/lib/suricata/data")
     EXPAND_VARIABLE(ruledirprefix, e_defaultruledir, "/suricata/rules")
index 4661bb14f9c505d6de6b05983e6585662729e627..7776992b55215195b536b905dfdfdfe0b87bc967 100644 (file)
@@ -53,7 +53,7 @@
 # endif
 #endif
 
-#define SOCKET_PATH LOCAL_STATE_DIR "/run/suricata/"
+#define SOCKET_PATH LOCAL_STATE_DIR "/"
 #define SOCKET_FILENAME "suricata-command.socket"
 #define SOCKET_TARGET SOCKET_PATH SOCKET_FILENAME
 
index c2056dc89e12ce5c39113d9993ee99e1ccd0e672..cec2109173fa30a02a57a959731268ca67718344 100644 (file)
@@ -1083,8 +1083,8 @@ host-mode: auto
 # activated in live capture mode. You can use the filename variable to set
 # the file name of the socket.
 unix-command:
-  enabled: auto
-  #filename: custom.socket
+  enabled: yes
+  filename: @e_localstatedir@suricata-command.socket
 
 # Magic file. The extension .mgc is added to the value here.
 #magic-file: /usr/share/file/magic