[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug 1209] users has full read/write access to local harddrive on thinclient.



http://bugs.skolelinux.no/show_bug.cgi?id=1209





------- Additional Comments From pere@hungry.com  2007-07-08 09:29 -------
The previous patch is incomplete, as the udev scripts to not read lts.conf.  Here
is a modified patch to get this script to use lts.conf.

--- /home/pere/src/debian/ltsp/ltspfs-0.4.3/scripts/add_fstab_entry.orig        
2007-07-08 09:19:54.000000000 +0200
+++ /home/pere/src/debian/ltsp/ltspfs-0.4.3/scripts/add_fstab_entry     2007-07-08 
09:29:07.000000000 +0200
@@ -7,6 +7,10 @@
 export $(udevinfo -qenv -n $1)
 LABEL=${ID_FS_LABEL_SAFE}

+if [ -x /usr/bin/getltscfg ] ; then
+    LOCALDEV_FIXEDVISIBLE="$(getltscfg LOCALDEV_FIXEDVISIBLE)"
+fi
+
 BASEDEV=$(echo $1 | tr -d "0-9")

 if [ ${BASEDEV} = "fd" ]; then
@@ -33,7 +37,7 @@
 if [ -S /tmp/.ltspfs-socket ]; then
     /usr/bin/ssh -S /tmp/.ltspfs-socket server \
                  "/usr/sbin/ltspfsmounter ${MOUNTPOINT} add"
-else
+elif [ N != "${LOCALDEV_FIXEDVISIBLE}" ]; then
     echo "${MOUNTPOINT} ${1} ${2}" >> /var/run/.delayed-mount
     if [ ! -z "${FIXEDDEVICE}" ]; then
         echo "${MOUNTPOINT} ${1} ${2}" >> /var/run/.static-device




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



Reply to: