opensnitch/daemon
Gustavo Iñiguez Goia 785500cd08
clean dns ebpf hooks on exit
We were not reacting to common exit signals, only to kill/interrupt
signals, so the DNS uprobes were never properly removed. Each uprobe
has the PID of the daemon in the identifier, so in theory, there
shouldn't be conflicts, but better clean our probes on exit.

previous to this commit with the daemon running
(and lot of starts/stops):

~ # cat /sys/kernel/debug/tracing/uprobe_events |wc -l
367

after stopping the daemon:
~ # cat /sys/kernel/debug/tracing/uprobe_events |wc -l
364

~ # > /sys/kernel/debug/tracing/uprobe_events
~ # cat /sys/kernel/debug/tracing/uprobe_events |wc -l
0

~ # cp opensnitchd-new /usr/bin/opensnitchd ; service opensnitchd start
~ # cat /sys/kernel/debug/tracing/uprobe_events |wc -l
3
~ # service opensnitchd stop
~ # cat /sys/kernel/debug/tracing/uprobe_events |wc -l
0
2024-01-28 01:10:00 +01:00
..
conman getparents code reorganization 2023-10-04 00:58:17 +02:00
core strings concatenation improvements 2024-01-16 00:14:44 +01: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 structs fields reorganized 2024-01-14 20:44:49 +01:00
log structs fields reorganized 2024-01-14 20:44:49 +01:00
netfilter structs fields reorganized 2024-01-14 20:44:49 +01:00
netlink allow to filter connections by process checksum 2023-09-22 00:36:26 +02:00
netstat strings concatenation improvements 2024-01-16 00:14:44 +01:00
procmon on errors stop established conns monitor 2024-01-20 23:37:51 +01:00
rule fixed typo 2024-01-15 20:45:17 +01:00
statistics strings concatenation improvements 2024-01-16 00:14:44 +01:00
ui allow to configure GC percentage 2024-01-18 00:01:58 +01:00
.gitignore daemon -> opensnitchd (ref #118) 2018-04-10 18:38:04 +02:00
default-config.json allow to filter connections by process checksum 2023-09-22 00:36:26 +02:00
go.mod go.mod: updated deps, minimum required go version 2023-10-23 20:50:24 +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 fixed debug msg printing resolved IP 2024-01-25 16:00:49 +01: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