opensnitch/daemon
Gustavo Iñiguez Goia 58aa979cae
fixed loading rules when Created field is a timestamp
When exporting rules from the GUI, the Created field was exported as
timestamp. Importing rules worked fine, because json.Marshall() accepts
the timestamp format.

However, when the daemon was loading a rule with the Created field as
timestamp, since the field was defined as time.Time, it expected a RFC3339
string (https://pkg.go.dev/time#Time.UnmarshalJSON)
so it failed to parse the timestamp and the rule was not loaded.

Now the field is defined as string, it's always saved as RFC3339, and if
we fail to parse these fields we'll use a temporary date instead of
failing loading the rule.

More info:
https://github.com/evilsocket/opensnitch/issues/1140#issuecomment-2140904847

Closes #1140
2024-06-10 23:54:54 +02:00
..
conman getparents code reorganization 2023-10-04 00:58:17 +02:00
core Remove duplicate regex in system.go for -check-requirements 2024-05-26 23:22:53 +00:00
data/rules Added sample rule to allow localhost connections 2023-07-23 22:30:49 +02:00
dns clean dns ebpf hooks on exit 2024-01-28 01:10:00 +01:00
firewall fw: allow to configure interception queue number 2024-05-14 23:41:25 +02:00
log loggers, remote_syslog: check if we're connected 2024-05-15 00:06:26 +02:00
netfilter structs fields reorganized 2024-01-14 20:44:49 +01:00
netlink make connections flushing configurable 2024-05-13 00:27:41 +02:00
netstat strings concatenation improvements 2024-01-16 00:14:44 +01:00
procmon allow to customize ebpf options 2024-05-16 00:31:54 +02:00
rule fixed loading rules when Created field is a timestamp 2024-06-10 23:54:54 +02:00
statistics more work on reloading configuration 2024-05-11 18:23:20 +02:00
ui set default rules directory if empty 2024-05-29 23:43:46 +02:00
.gitignore daemon -> opensnitchd (ref #118) 2018-04-10 18:38:04 +02:00
default-config.json updated default-config.json with latest added opts 2024-05-16 00:51:30 +02:00
go.mod updated go.mod, added go.sum 2024-05-22 01:39:19 +02:00
go.sum updated go.mod, added go.sum 2024-05-22 01:39:19 +02:00
Gopkg.toml fix: calling ftrace probe Reset in order to start from a clean state (fixes #159) 2018-04-18 02:00:12 +02:00
main.go set default rules directory if empty 2024-05-29 23:43:46 +02:00
Makefile daemon/Makefile: improvements to make distro packaging easier (#780) 2022-12-21 10:35:52 +01:00
opensnitchd-dinit Add files via upload 2023-06-17 23:56:58 +02:00
opensnitchd-openrc feat(daemon): add OpenRC script 2023-04-02 02:33:40 +02:00
opensnitchd.service Replace docs link in opensnitchd.service 2023-02-09 20:56:29 +00:00
system-fw.json added icmp destination-unreachable to system-fw.json 2023-07-26 11:40:17 +02:00