opensnitch/daemon/rule
Gustavo Iñiguez Goia c0d1da20d2
improved rules reloading, cli parameters
- When reloading rules from a path:
   stop existing (domains,ips,regexp) lists monitors, stop rules
   watcher and start watching the new dir for changes, delete existing
   rules from memory, etc.
 - Previously, cli parameters (queue number, log file, etc) were taking
   into account before loading the configuration.
   Now the configuration file is loaded first (default-config.json), and
   if any of the cli parameter has been specified, it'll overwrite the
   loaded configuration from file.

   This means for example that if you use "-process-monitor-method proc",
   and "ebpf" is configured in default-config.json, firstly "ebpf" will
   be configured, and later "proc".

   (-queue-num option for now requires to match config option
   cfg.FwOptions.QueueNumber)
2024-05-22 00:47:54 +02:00
..
testdata rules: improved operator list parsing and conversion 2023-10-09 14:55:15 +02:00
loader.go improved rules reloading, cli parameters 2024-05-22 00:47:54 +02:00
loader_test.go updated rules tests 2023-10-09 18:07:48 +02:00
operator.go fixed typo 2024-01-15 20:45:17 +01:00
operator_lists.go improved rules reloading, cli parameters 2024-05-22 00:47:54 +02:00
operator_test.go updated rules tests 2023-09-22 01:21:27 +02:00
rule.go structs fields reorganized 2024-01-14 20:44:49 +01:00
rule_test.go deserialize rules operator list correctly 2023-11-11 02:16:08 +01:00