Koha-clms/debian/systemd
Kyle M Hall b5000b8869
Bug 40901: (follow-up) Systemd hardening
I think the following systemd security measures are safe for Koha:

ProtectSystem=full
Sets /usr & /boot to read-only

ProtectHome=yes
Hides /home, /root and /run/user
NOTE: The hiding of /run/user through me off, but google says it's only for
interactive logins only. AFAIK the only thing that does that is
koha-shell which isn't a systemd thing so it is unaffected

PrivateTmp=yes
Private /tmp & /var/tmp
NOTE: AFACT nothing in Koha shares files via /tmp which feels like it
would be a bad thing to do anyway

NoNewPrivileges=yes
setuid binaries can't re-elevate
NOTE: This feels like the most important one!

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
2026-09-29 09:01:59 +00:00
..
koha-common.service Bug 40901: (follow-up) Re-discover ES indexers on koha-common start 2026-09-29 09:01:53 +00:00
koha-create-dirs@.service Bug 40901: (follow-up) Order per-component units after koha-create-dirs 2026-09-29 09:01:56 +00:00
koha-es-indexer@.service Bug 40901: (follow-up) Systemd hardening 2026-09-29 09:01:59 +00:00
koha-indexer@.service Bug 40901: (follow-up) Systemd hardening 2026-09-29 09:01:59 +00:00
koha-plack@.service Bug 40901: (follow-up) Systemd hardening 2026-09-29 09:01:59 +00:00
koha-sip@.service Bug 40901: (follow-up) Systemd hardening 2026-09-29 09:01:59 +00:00
koha-systemd-ctl Bug 40901: (follow-up) Fix incomplete systemd wiring in helpers 2026-09-29 09:01:34 +00:00
koha-worker-long_tasks@.service Bug 40901: (follow-up) Systemd hardening 2026-09-29 09:01:59 +00:00
koha-worker@.service Bug 40901: (follow-up) Systemd hardening 2026-09-29 09:01:59 +00:00
koha-z3950@.service Bug 40901: (follow-up) Systemd hardening 2026-09-29 09:01:59 +00:00
koha-zebra@.service Bug 40901: (follow-up) Systemd hardening 2026-09-29 09:01:59 +00:00
koha.target
…
koha@.target Bug 40901: (follow-up) Drop redundant StopWhenUnneeded on koha@.target 2026-09-29 09:01:58 +00:00