[Koha-bugs] [Bug 19676] New: Debian 9 vs. Plack vs. / tmp -- attention to PrivateTmp for apache2
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Nov 21 18:11:38 CET 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19676
Bug ID: 19676
Summary: Debian 9 vs. Plack vs. /tmp -- attention to PrivateTmp
for apache2
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-bugs at lists.koha-community.org
Reporter: januszop at gmail.com
QA Contact: testopia at bugs.koha-community.org
Beware: in Debian 9 apache2 comes with PrivateTmp enabled by default.
As a consequence, there are issues when Plack is enabled for an instance, but
in Koha there is an interaction between Plack enabled and Plack blacklisted
stuff through /tmp directory.
Plack-ed scripts will write temporary files in "real" /tmp directory (as
pointed by Koha::UploadedFile::temporary_directory, i.e. File::Spec->tmpdir)
whereas Plack blacklisted scripts will understand /tmp as private tmp of
apache2, i.e. /tmp/systemd-private-?????????-apache2.service-????/tmp.
This happens for instance for stage-marc-import.pl -- in step 2 the script
won't find the marc file uploaded in step 1.
The simplest instant solution to this would be to disable PrivateTmp for
apache2 (this article gives a clue:
https://www.maxoberberger.net/blog/2017/10/debian-9-private-tmp.html), but
maybe there is a better option?
(When Plack is disabled everything seems to work fine apart of the fact that
the private tmp of apache2 is being used.)
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list