[debian-edu-commits] [Git][debian-edu/debian-edu-config][master] Workaround for mounting removable media on diskless workstations
WolfgangSchweer
gitlab at salsa.debian.org
Thu Nov 15 02:00:52 GMT 2018
WolfgangSchweer pushed to branch master at Debian Edu / debian-edu-config
Commits:
ffa8dd18 by Wolfgang Schweer at 2018-11-15T01:58:44Z
Workaround for mounting removable media on diskless workstations
Add share/debian-edu-config/udisks2.patch.
Use code in share/ltsp/init-ltsp.d/60-edu-client to apply the patch (this
happens only on-the-fly for each session in the overlay filesystem).
Adjust Makefile.
- - - - -
4 changed files:
- Makefile
- debian/changelog
- + share/debian-edu-config/udisks2.patch
- share/ltsp/init-ltsp.d/60-edu-client
Changes:
=====================================
Makefile
=====================================
@@ -383,6 +383,7 @@ install: install-testsuite
share/debian-edu-config/debian-edu.ldapscripts.passwd \
share/debian-edu-config/passwords_stub.dat \
share/debian-edu-config/gosa.conf.template \
+ share/debian-edu-config/udisks2.patch \
share/pam-configs/edu-group \
share/pam-configs/edu-umask \
share/perl5/Debian/Edu.pm \
=====================================
debian/changelog
=====================================
@@ -1,3 +1,15 @@
+debian-edu-config (2.10.46) UNRELEASED; urgency=medium
+
+ * Workaround for mounting removable media on diskless workstations, see LDM
+ bug #913774. Due to missing session registering with wtemp and utemp, media
+ mounting gets denied.
+ - Add share/debian-edu-config/udisks2.patch.
+ - Use code in share/ltsp/init-ltsp.d/60-edu-client to apply the patch (this
+ happens only on-the-fly for each session in the overlay filesystem).
+ * Adjust Makefile.
+
+ -- Wolfgang Schweer <wschweer at arcor.de> Thu, 15 Nov 2018 02:55:59 +0100
+
debian-edu-config (2.10.45) unstable; urgency=medium
[ Wolfgang Schweer ]
=====================================
share/debian-edu-config/udisks2.patch
=====================================
@@ -0,0 +1,20 @@
+--- a/org.freedesktop.UDisks2.policy 2018-09-28 21:48:23.000000000 +0200
++++ b/org.freedesktop.UDisks2.policy 2018-11-14 22:10:15.277057756 +0100
+@@ -84,7 +84,7 @@
+ <message xml:lang="zh_CN">挂载文件系统需要身份验证</message>
+ <message xml:lang="zh_TW">要掛載檔案系統需要先核對身分</message>
+ <defaults>
+- <allow_any>auth_admin</allow_any>
++ <allow_any>yes</allow_any>
+ <allow_inactive>auth_admin</allow_inactive>
+ <allow_active>yes</allow_active>
+ </defaults>
+@@ -165,7 +165,7 @@
+ <message xml:lang="zh_CN">挂载文件系统需要身份验证</message>
+ <message xml:lang="zh_TW">要掛載檔案系統需要先核對身分</message>
+ <defaults>
+- <allow_any>auth_admin</allow_any>
++ <allow_any>yes</allow_any>
+ <allow_inactive>auth_admin</allow_inactive>
+ <allow_active>auth_admin_keep</allow_active>
+ </defaults>
=====================================
share/ltsp/init-ltsp.d/60-edu-client
=====================================
@@ -33,6 +33,9 @@ if boolean_is_true "$LTSP_FATCLIENT" && [ -z "$DEFAULT_DISPLAY_MANAGER" ]; then
service_disable autofs
# Ensure /etc/environment is set correctly.
/usr/share/debian-edu-config/tools/update-proxy-from-wpad
+ # Allow logged in users to mount removable media (like USB sticks); needed
+ # because LDM doesn't write utemp/wtemp entries. Remove if #913774 is fixed.
+ patch /usr/share/polkit-1/actions/org.freedesktop.UDisks2.policy /usr/share/debian-edu-config/udisks2.patch
fi
# Remove useless services for thin clients (in addition to LTSP defaults).
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/commit/ffa8dd1801262e9b4218d418a7197f83d0f77f17
--
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/commit/ffa8dd1801262e9b4218d418a7197f83d0f77f17
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20181115/b46c6e90/attachment-0001.html>
More information about the debian-edu-commits
mailing list