Debian default configuration This patch sets Debian defaults for suricata configurati...
authorArturo Borrero Gonzalez <arturo@debian.org>
Thu, 8 Feb 2024 22:22:40 +0000 (23:22 +0100)
committerSascha Steinbiss <satta@debian.org>
Thu, 8 Feb 2024 22:22:40 +0000 (23:22 +0100)
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 94cc2b115a3a3eb66eaca9860aaa4b53ead8fe07..8b73262d87ed28b11beaff7ca67a5e11d3c8fcde 100644 (file)
@@ -2566,7 +2566,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(localstatedir, e_defaultruledir, "/lib/suricata/rules")
index 9fb5bd7935bcf372572f4f975013f01d40a5bac0..322cc6914e468922d7b05d99c8c44b13cbaf42d5 100644 (file)
@@ -57,7 +57,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 b141c08f4b7a4417b7886f316c9a667f3956b434..2099fccec4b01bf7f1688c89d619e6514f3d2332 100644 (file)
@@ -1291,8 +1291,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