Skip to content

Instantly share code, notes, and snippets.

@lucaswerkmeister
Last active April 23, 2017 14:20
Show Gist options
  • Save lucaswerkmeister/aaf671274f5b5bf2308d01c7a6261673 to your computer and use it in GitHub Desktop.
Save lucaswerkmeister/aaf671274f5b5bf2308d01c7a6261673 to your computer and use it in GitHub Desktop.
Sandbox for haveged (place in /etc/systemd/system/haveged.service/)
[Service]
ProtectSystem=full
ProtectHome=yes
CapabilityBoundingSet=CAP_SYS_ADMIN
PrivateTmp=yes
PrivateDevices=yes
PrivateNetwork=yes
MountFlags=private
SystemCallFilter=~mount umount2 mkdir mkdirat creat mknod unlink unlinkat chmod rename rmdir
SystemCallArchitectures=native
RestrictAddressFamilies=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment