-
Couldn't load subscription status.
- Fork 7
How to add secadm rules
While it is documented in the hbsd-handbook, I figured it would help someone trying to apply secadm rules to hardened bsd.
Things like node, java, etc. require certain features to be disabled. The process for enabling these is simple. If you get a 'segfault' when starting a program you probably need to add an exception to secadm.
Two things need to happen
pkg install secadm kmod-secadm
kldload secadmBefore comitting final information to rules file, it is helpful to test. Standard location for rules is /usr/local/etc/secadm.rules. Rule files are found at Github
Rules are written in JSON format, and are typically combined into a single file.
Once rules are in appropriate location, simply issue:
secadm load /usr/local/etc/secadm.rules
Then run your program and see if things are O.K. If not, modify, rinse, and repeat. Once program works, its time for the final step:
sysrc secadm_enable=YES
service secadm startSee hardenedbsd manual for more information: hardened bsd manual pages