| 1 |
[Unit] |
| 2 |
Description=Cockpit Web Service |
| 3 |
Documentation=man:cockpit-ws(8) |
| 4 |
Requires=cockpit.socket |
| 5 |
Requires=cockpit-wsinstance-http.socket cockpit-wsinstance-https-factory.socket |
| 6 |
# we need to start after the sockets so that we can instantly forward incoming requests |
| 7 |
After=cockpit-wsinstance-http.socket cockpit-wsinstance-https-factory.socket |
| 8 |
|
| 9 |
[Service] |
| 10 |
RuntimeDirectory=cockpit/tls |
| 11 |
ExecStartPre=+@libexecdir@/cockpit-certificate-ensure --for-cockpit-tls |
| 12 |
ExecStart=@libexecdir@/cockpit-tls |
| 13 |
DynamicUser=yes |
| 14 |
# otherwise systemd uses 'cockpit' even if it exists as a normal user account |
| 15 |
User=cockpit-systemd-service |
| 16 |
Group=cockpit-wsinstance-socket |
| 17 |
NoNewPrivileges=yes |
| 18 |
ProtectSystem=strict |
| 19 |
PrivateDevices=yes |
| 20 |
ProtectKernelTunables=yes |
| 21 |
MemoryDenyWriteExecute=yes |
| 22 |
|
| 23 |
# cockpit-tls speaks to the outside world via socket activation, and to cockpit-ws via Unix socket |
| 24 |
PrivateIPC=yes |
| 25 |
PrivateNetwork=yes |
| 26 |
RestrictAddressFamilies=AF_UNIX |