hellodword / systemd-service-hardening

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

systemd-service-hardening

syscall

sudo strace -c ping 1.1.1.1 -c 1

sudo systemd-analyze syscall-filter

sudo systemd-analyze syscall-filter @privileged
SystemCallArchitectures=native
SystemCallFilter=@network-io
SystemCallFilter=setrlimit

SystemCallLog

journalctl --since 13:11 --follow | grep SECCOMP | grep AdGuardHome | grep -oP '(?<=syscall=)\d+' > syscalls.txt

cat syscalls.txt | sort -n | uniq | xargs -L 1 ausyscall
sudo systemd-run --pty \
    --property=DynamicUser=yes \
    --property=AmbientCapabilities=CAP_NET_ADMIN \
    --property=AmbientCapabilities=CAP_NET_BIND_SERVICE \
    strace -f -ttt \
        curl

About