[Pkg-ltsp-devel] Bug#432024: [Bug 1209] users has full read/write access to local harddrive on thinclient.
vagrant at freegeek.org
vagrant at freegeek.org
Mon Jul 9 18:58:22 UTC 2007
here is a patch, applied against the current ltspfs sources used by
debian-edu. it has the drawback that any usb devices plugged in before
login have to be plugged in again. cdroms work. floppies are untested.
may have troubles getting it accepted upstream as is, but should at
least work for debian-edu for the moment.
=== modified file 'scripts/add_fstab_entry'
--- scripts/add_fstab_entry 2007-06-14 18:01:45 +0000
+++ scripts/add_fstab_entry 2007-07-09 00:59:04 +0000
@@ -17,6 +17,14 @@
export $(udevinfo -qenv -n $devicename)
LABEL=${ID_FS_LABEL_SAFE}
+if [ -x /usr/bin/getltscfg ] ; then
+ LOCALDEV_FIXEDVISIBLE="$(getltscfg LOCALDEV_FIXEDVISIBLE)"
+fi
+
+if [ -f /usr/lib/ltsp/ltsp_functions ]; then
+ . /usr/lib/ltsp/ltsp_functions
+fi
+
BASEDEV=$(echo $devicename | tr -d "0-9")
if [ ${BASEDEV} = "fd" ]; then
@@ -44,10 +52,9 @@
/usr/bin/ssh -S /var/run/ldm_socket server \
"/usr/sbin/ltspfsmounter ${MOUNTPOINT} add"
else
- echo "${MOUNTPOINT} ${devicename} ${fstype}" >> /var/run/.delayed-mount
if [ ! -z "${FIXEDDEVICE}" ]; then
echo "${MOUNTPOINT} ${devicename} ${fstype}" >> /var/run/.static-device
- else
+ elif boolean_is_true "$LOCALDEV_FIXEDVISIBLE" ; then
echo "${MOUNTPOINT} ${devicename} ${fstype}" >> /var/run/.delayed-mount
fi
fi
i won't be able to do the upload for a couple days, at least.
live well,
vagrant
More information about the Pkg-ltsp-devel
mailing list