alpha 0.1

This commit is contained in:
2026-01-17 13:12:11 +07:00
parent f41b83dff0
commit 97031d15f2
15 changed files with 296 additions and 642 deletions

13
lib/sysctl.sh Normal file
View File

@@ -0,0 +1,13 @@
harden_sysctl() {
CONF="/etc/sysctl.d/99-hardening.conf"
SNAP=$(backup_create sysctl "$CONF")
cat > "$CONF" <<EOF
net.ipv4.conf.all.accept_redirects = 0
kernel.kptr_restrict = 2
fs.protected_symlinks = 1
EOF
sysctl --system || rm -f "$CONF"
pause
}