Koha-clms/debian
Jonathan Druart 403c2a4753 Bug 25481: Pass --user to start-stop-daemon when a pidfile is used
Since D10, the behaviour of start-stop-daemon changed, see from its
manual:
"""
Warning:  using this match option with a world-writable pidfile or using it alone with a daemon that writes the pidfile as an unprivileged (non-root) user will be refused with an error (since
version 1.19.3) as this is a security risk, because either any user can write to it, or if the daemon gets compromised, the contents of the pidfile cannot be trusted, and  then  a  privileged
runner (such as an init script executed as root) would end up acting on any system process.  Using /dev/null is exempt from these checks.
"""

Test plan:
koha-plack --restart kohadev
should success with this patch.
Without this patch you get:
start-stop-daemon: matching only on non-root pidfile /var/run/koha/kohadev/plack.pid is insecure

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
2020-05-21 20:43:06 +00:00
..
docs Bug 23137: Add documentation 2020-05-08 22:35:17 +00:00
scripts Bug 25481: Pass --user to start-stop-daemon when a pidfile is used 2020-05-21 20:43:06 +00:00
source
…
templates Bug 18670: Remove RewriteLog and RewriteLogLevel from sample config files 2020-05-11 20:53:52 +00:00
README.build
…
bd-to-depends
…
build-git-snapshot Bug 21000: Force case sensitivity on Getopt::Long 2019-07-15 11:27:57 +01:00
changelog
…
compat
…
control Bug 13193: (follow-up) Update debian/control file 2020-03-05 23:50:10 +00:00
control.in Bug 25485: TinyMCE broken in Debian package installs 2020-05-20 22:48:28 +00:00
copyright
…
koha-common.README.Debian
…
koha-common.bash-completion Bug 22238: Remove koha-*-sip scripts in favor of koha-sip 2019-02-11 18:30:10 +00:00
koha-common.config
…
koha-common.cron.d
…
koha-common.cron.daily Bug 21235: Remove table services_throttle 2018-09-07 15:09:39 +00:00
koha-common.cron.hourly
…
koha-common.cron.monthly
…
koha-common.default
…
koha-common.dirs
…
koha-common.docs Bug 21626: (QA follow-up) Embed teams.yaml for debian packages 2019-05-17 14:46:10 +00:00
koha-common.init Bug 23949: Update documentation 2019-11-08 12:52:14 +00:00
koha-common.install Bug 24445: Add z3950 to makefile (bug 13937 follow-up) 2020-01-18 15:05:48 +00:00
koha-common.links Bug 22238: Remove koha-*-sip scripts in favor of koha-sip 2019-02-11 18:30:10 +00:00
koha-common.logrotate
…
koha-common.postinst Bug 25524: Remove --line-regexp option in log4perl_component() 2020-05-20 21:28:41 +00:00
koha-common.preinst Bug 25485: Remove tiny_mce symlink during pre install of deb package 2020-05-20 22:48:51 +00:00
koha-common.templates
…
koha-post-install-setup
…
koha.README.Debian
…
koha.apache-ports
…
koha.config
…
koha.dirs
…
koha.install Bug 14302: Remove GRS1 specific code 2018-08-31 11:24:20 +00:00
koha.postinst
…
koha.postrm
…
koha.prerm
…
list-deps Bug 20800: Keep Koha on Stretch from using broken libhttp-oai-perl 2018-05-22 11:19:49 -03:00
rules Bug 25485: Remove all mention of tiny_mce in debian/rules 2020-05-20 22:48:40 +00:00
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.