system

the Chamesle handbook, init, live ISO and install helpers
git clone https://github.com/tortr-rs/system
Log | Files | Refs | README | LICENSE

10-chamesle.conf (800B)


      1 # kernel addresses and its log are root's
      2 kernel.kptr_restrict = 1
      3 kernel.dmesg_restrict = 1
      4 # ptrace only on your own children, no bpf for users
      5 kernel.yama.ptrace_scope = 1
      6 kernel.unprivileged_bpf_disabled = 1
      7 net.core.bpf_jit_harden = 2
      8 # links and files in sticky directories like /tmp
      9 fs.protected_symlinks = 1
     10 fs.protected_hardlinks = 1
     11 fs.protected_fifos = 2
     12 fs.protected_regular = 2
     13 fs.suid_dumpable = 0
     14 # network
     15 net.ipv4.tcp_syncookies = 1
     16 net.ipv4.conf.all.rp_filter = 1
     17 net.ipv4.conf.default.rp_filter = 1
     18 net.ipv4.conf.all.accept_redirects = 0
     19 net.ipv4.conf.default.accept_redirects = 0
     20 net.ipv4.conf.all.secure_redirects = 0
     21 net.ipv4.conf.all.send_redirects = 0
     22 net.ipv4.conf.all.accept_source_route = 0
     23 net.ipv6.conf.all.accept_redirects = 0
     24 net.ipv6.conf.default.accept_redirects = 0