Debian default configuration This patch sets Debian defaults for suricata configurati...
authorArturo Borrero Gonzalez <arturo@debian.org>
Thu, 27 Jun 2024 12:29:40 +0000 (14:29 +0200)
committerSascha Steinbiss <satta@debian.org>
Thu, 27 Jun 2024 12:29:40 +0000 (14:29 +0200)
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 fafc5f83bb45465d3b48910689c3122d1c4c4431..378a38b2a5aa706855c09fc58108b92b8cda8201 100644 (file)
@@ -2601,7 +2601,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 458360b1e64f691fbc9b6e91a34d170d5ebfd7e9..1cd1211cf58ee019dcf061ece8e39c12023eca7c 100644 (file)
@@ -1299,8 +1299,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