[Pkg-ltsp-devel] Bug#432024: ltspfs: Provide non-root users access to the local hard drive on the client

vagrant at freegeek.org vagrant at freegeek.org
Sat Jul 7 00:38:48 UTC 2007


On Fri, Jul 06, 2007 at 10:03:34PM +0200, Petter Reinholdtsen wrote:
> In Debian Edu, one tester discovered that the user logging into a LTSP
> thin client with a local hard drive got read/write access to the
> content of that hard drive. 
...snip...
> It would be better if the local device access provided by ltspfs was
> limited to removable media only.

gadi suggested adding ATTRS{removable}=="1" to the udev rules. i tried
the following, but it broke CDROM support, but the local hard disk
wasn't mounted. so some progress, but more exploration is needed.

--- ltspfsd.udev        2007-01-29 04:20:06 +0000
+++ ltspfsd.udev        2007-07-06 23:49:41 +0000
@@ -1,4 +1,4 @@
 # /etc/udev/rules.d/88-ltsp.rules
 ACTION=="add", KERNEL=="fd[0-9]", RUN+="add_fstab_entry %k auto"
-ACTION=="add", SUBSYSTEM=="block", RUN+="add_fstab_entry %k"
+ACTION=="add", SUBSYSTEM=="block", ATTRS{removable}=="1", RUN+="add_fstab_entry %k"
 ACTION=="remove", SUBSYSTEM=="block", RUN+="remove_fstab_entry %k"

live well,
  vagrant




More information about the Pkg-ltsp-devel mailing list