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 d5f98b7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions contrib/cronie.systemd
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,31 @@ ExecReload=/bin/kill -URG $MAINPID
KillMode=process
Restart=on-failure
RestartSec=30s
DevicePolicy=closed
KeyringMode=private
LockPersonality=yes
MemoryDenyWriteExecute=yes
NoNewPrivileges=no
PrivateDevices=yes
PrivateTmp=yes
ProcSubset=pid
ProtectClock=yes
ProtectControlGroups=yes
ProtectHome=yes
ProtectHostname=yes
ProtectKernelLogs=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectProc=invisible
ProtectSystem=strict
ReadOnlyPaths=/etc/cron.deny
ReadOnlyPaths=-/etc/sysconfig/cron
ReadWritePaths=/etc/cron.d/
ReadWritePaths=/var/spool/cron
RemoveIPC=yes
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes

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

0 comments on commit d5f98b7

Please sign in to comment.