Skip to content

Instantly share code, notes, and snippets.

@libcrack
Created February 7, 2016 15:07
Show Gist options
  • Select an option

  • Save libcrack/ecf47a923652ba611838 to your computer and use it in GitHub Desktop.

Select an option

Save libcrack/ecf47a923652ba611838 to your computer and use it in GitHub Desktop.
grsectl(){
local sysctls=(kernel/grsecurity/chroot_findtask
kernel/grsecurity/harden_ptrace
net/bridge/bridge-nf-call-iptables
kernel/grsecurity/socket_server
kernel/grsecurity/chroot_deny_unix
kernel/grsecurity/harden_ipc
kernel/grsecurity/chroot_deny_bad_rename
kernel/grsecurity/socket_client
kernel/grsecurity/lastack_retries
kernel/grsecurity/chroot_deny_fchdir
kernel/grsecurity/chroot_deny_shmat
net/ipv6/conf/enp2s0/disable_ipv6)
for ctl in ${sysctls[@]}; do
echo "${ctl}="$(cat "/proc/${ctl}")""
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment