Skip to content

Instantly share code, notes, and snippets.

@jahil
Created January 13, 2016 15:29
Show Gist options
  • Save jahil/15175449902f4f8aa531 to your computer and use it in GitHub Desktop.
Save jahil/15175449902f4f8aa531 to your computer and use it in GitHub Desktop.
FreeBSD sysctl
Non-executable stack
sysctl kern.elf64.nxstack = 1
sysctl kern.elf32.nxstack = 1
Stack smashing protection
sysctl security.bsd.stack_guard_page = 1
NULL page mapping
sysctl security.bsd.map_at_zero = 0
Process protection
sysctl kern.randompid = 1000
Hardening
sysctl security.bsd.see_other_uids = 0
/etc/sysctl.conf
kern.elf64.nxstack = 1
security.bsd.stack_guard_page = 1
security.bsd.map_at_zero = 0
kern.randompid = 1000
security.bsd.see_other_uids = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment