Skip to content

Instantly share code, notes, and snippets.

View clems4ever's full-sized avatar

Clément Michaud clems4ever

View GitHub Profile
@clems4ever
clems4ever / systemd_service_hardening.md
Created September 20, 2022 21:18 — forked from ageis/systemd_service_hardening.md
Options for hardening systemd service units

security and hardening options for systemd service units

A common and reliable pattern in service unit files is thus:

NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict