Skip to content

Commit

Permalink
Update Systemd security settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul Sundaram committed Mar 12, 2024
1 parent 24e7c0a commit c45e77c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions contrib/cronie.systemd
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@ ExecReload=/bin/kill -URG $MAINPID
KillMode=process
Restart=on-failure
RestartSec=30s
KeyringMode=private
LockPersonality=yes
MemoryDenyWriteExecute=yes
NoNewPrivileges=no
PrivateDevices=no
PrivateTmp=yes
ProtectClock=yes
ProtectControlGroups=yes
ProtectHome=no
ProtectHostname=yes
ProtectKernelLogs=no
ProtectKernelModules=yes
ProtectKernelTunables=no
ProtectProc=invisible
ProtectSystem=no
RestrictNamespaces=no
RestrictRealtime=yes
RestrictSUIDSGID=no

[Install]
WantedBy=multi-user.target
Expand Down

0 comments on commit c45e77c

Please sign in to comment.