[debian-edu-commits] debian-edu/pkg-team/ 06/12: debian/patches: Add 2006_apache2-private-tmp.patch. Work-around for Apache2's PrivateTmp=true feature in Debian. (Closes: #892569).

Mike Gabriel sunweaver at debian.org
Fri Apr 20 13:24:10 BST 2018


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository gosa.

commit 61e79a512bc5a6947759b90c721d3726bd629088
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Fri Apr 20 13:50:48 2018 +0200

    debian/patches: Add 2006_apache2-private-tmp.patch. Work-around for Apache2's PrivateTmp=true feature in Debian. (Closes: #892569).
---
 debian/patches/2006_apache2-private-tmp.patch | 37 +++++++++++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 38 insertions(+)

diff --git a/debian/patches/2006_apache2-private-tmp.patch b/debian/patches/2006_apache2-private-tmp.patch
new file mode 100644
index 0000000..e4cb8ef
--- /dev/null
+++ b/debian/patches/2006_apache2-private-tmp.patch
@@ -0,0 +1,37 @@
+Description: Hint admin to disable Apache2's PrivateTmp feature during setup
+Author: Wolfgang Schweer <w.schweer at gmx.de>
+
+--- a/gosa-core/setup/setup_welcome.tpl
++++ b/gosa-core/setup/setup_welcome.tpl
+@@ -29,6 +29,31 @@
+ 	echo -n <b>{$auth_id}</b> > {$path}
+ 	</tt>
+ 	<p>
++
++    <hr>
++
++	<p>On Debian systems, if you run GOsa² under Apache2, you (as super-user root) need to temporarily disable Apache2's PrivateTmp=true feature for this first setup step:
++	</p>
++
++	<pre>
++	root at server:~# service apache2 stop
++	root at server:~# sed -i 's/Tmp=true/Tmp=false/' /lib/systemd/system/apache2.service
++	root at server:~# systemctl daemon-reload
++	root at server:~# service apache2 start
++	</pre>
++
++	<p>After 'Step 1' has been successful, the change should be reverted for security reasons:
++	</p>
++
++	<pre>
++	root at server:~# service apache2 stop
++	root at server:~# sed -i 's/Tmp=false/Tmp=true/' /lib/systemd/system/apache2.service
++	root at server:~# systemctl daemon-reload
++	root at server:~# service apache2 start
++	</pre>
++
++    <hr>
++
+ 	{t}Click the 'Next' button when you've finished.{/t}
+ 	</p>
+      </div>
diff --git a/debian/patches/series b/debian/patches/series
index 3f333d7..e6ed92e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -54,3 +54,4 @@
 2003_fix-class-mapping.patch
 2004_fix-locale-location.patch
 2005_allow-Debian-blends-to-override-gosa-conf.patch
+2006_apache2-private-tmp.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/gosa.git



More information about the debian-edu-commits mailing list