Koha-clms/debian
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
..
docs Bug 32736: Add --all-queues switch to koha-worker 2026-01-12 10:26:06 -07:00
scripts Bug 40901: (follow-up) koha-remove leaves koha@<inst>.target enabled 2026-09-29 09:01:52 +00:00
source
…
systemd Bug 40901: (follow-up) Systemd hardening 2026-09-29 09:01:59 +00:00
templates Bug 41920: Limit number of concurrent reports that can be run simultaneously for an instance of Koha 2026-09-15 14:45:08 +00:00
README.build
…
bd-to-depends
…
build-git-snapshot Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
changelog
…
clean
…
compat
…
control Bug 40901: (follow-up) Allow seamless swap between koha-systemd and koha-sysv 2026-09-29 09:01:50 +00:00
control.in Bug 40901: (follow-up) Allow seamless swap between koha-systemd and koha-sysv 2026-09-29 09:01:50 +00:00
copyright Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
koha-common.README.Debian
…
koha-common.docs
…
koha-common.postinst Bug 40901: Restructure packages - koha-common becomes metapackage 2026-09-29 09:01:23 +00:00
koha-common.preinst Bug 40901: (testing follow-up) Remove / rename koha-common to koha-core 2026-09-29 09:01:25 +00:00
koha-common.templates
…
koha-core.bash-completion Bug 40901: (testing follow-up) Remove / rename koha-common to koha-core 2026-09-29 09:01:25 +00:00
koha-core.config Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
koha-core.cron.d Bug 40901: (testing follow-up) Remove / rename koha-common to koha-core 2026-09-29 09:01:25 +00:00
koha-core.cron.daily Bug 40901: (testing follow-up) Remove / rename koha-common to koha-core 2026-09-29 09:01:25 +00:00
koha-core.cron.hourly Bug 40901: (testing follow-up) Remove / rename koha-common to koha-core 2026-09-29 09:01:25 +00:00
koha-core.cron.monthly Bug 40901: (testing follow-up) Remove / rename koha-common to koha-core 2026-09-29 09:01:25 +00:00
koha-core.default Bug 40901: (testing follow-up) Remove / rename koha-common to koha-core 2026-09-29 09:01:25 +00:00
koha-core.dirs
…
koha-core.docs
…
koha-core.install
…
koha-core.links
…
koha-core.logrotate
…
koha-core.postinst Bug 40901: (testing follow-up) Moved legacy code to koha-sysv.postinst 2026-09-29 09:01:27 +00:00
koha-core.preinst
…
koha-core.templates
…
koha-full.postinst
…
koha-post-install-setup Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
koha-systemd.README.Debian Bug 40901: Add koha-systemd package with native systemd units 2026-09-29 09:01:21 +00:00
koha-systemd.dirs Bug 40901: Add koha-systemd package with native systemd units 2026-09-29 09:01:21 +00:00
koha-systemd.install Bug 40901: (follow-up) Read service config from koha-conf.xml in systemd units 2026-09-29 09:01:42 +00:00
koha-systemd.postinst Bug 40901: (follow-up) sip.enabled is an anti-pattern for systemd 2026-09-29 09:01:48 +00:00
koha-systemd.prerm Bug 40901: Add koha-systemd package with native systemd units 2026-09-29 09:01:21 +00:00
koha-sysv.init Bug 40901: (testing follow-up) Remove / rename koha-common to koha-core 2026-09-29 09:01:25 +00:00
koha-sysv.install Bug 40901: (testing follow-up) Remove / rename koha-common to koha-core 2026-09-29 09:01:25 +00:00
koha-sysv.postinst Bug 40901: (testing follow-up) Moved legacy code to koha-sysv.postinst 2026-09-29 09:01:27 +00:00
koha-sysv.postrm Bug 40901: Add koha-sysv package for SysV init support 2026-09-29 09:01:22 +00:00
koha-sysv.prerm Bug 40901: Add koha-sysv package for SysV init support 2026-09-29 09:01:22 +00:00
koha-sysv.service Bug 40901: (testing follow-up) Remove / rename koha-common to koha-core 2026-09-29 09:01:25 +00:00
koha.README.Debian
…
koha.apache-ports
…
koha.config
…
koha.dirs
…
koha.install
…
koha.postinst
…
koha.postrm
…
koha.prerm
…
list-deps Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
rules
…
unavailable.html
…
update-control
…

README.build

In order to build .deb packages, following debian packages need to be present
(installed): 
devscripts
pbuilder
dh-make
fakeroot

As root (or sudo) execute:
pbuilder create

Executing build-git-snapshot without any arguments will leave package and the
rest in some pbuilder dir, eg. /var/cache/pbuilder/result It is highly
recommended that --buildresult option is used.