Actions
Feature #29417
openHarden foreman.service using systemd features
Status:
New
Priority:
Normal
Assignee:
-
Category:
Packaging
Target version:
-
Description
Systemd services can be hardened and Foreman should use this to the fullest extent possible.
A quick check makes me thing the following is a good start
[Service] NoNewPrivileges=yes PrivateTmp=yes PrivateDevices=yes ProtectSystem=full ProtectHome=yes ProtectControlGroups=yes ProtectKernelModules=yes ProtectKernelTunables=yes RestrictNamespaces=yes RestrictRealtime=yes RestrictSUIDSGID=yes MemoryDenyWriteExecute=yes ReadWritePaths=/var/lib/foreman
The only complication is that Katello's Pulp 2 export relies on paths in Pulp's home directory.
Updated by Ewoud Kohl van Wijngaarden about 4 years ago
- Related to Feature #29960: Run foreman.service with systemd PrivateTmp=true added
Actions