ltspfs in hardy doesnt work with LDM_DIRECTX=True set in lts.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| ltspfs (Ubuntu) |
Undecided
|
Unassigned |
Bug Description
Binary package hint: ltspfs
due to new security policy in ldm ltspfs devices can not be used if LDM_DIRECTX=True is set in lts.conf. ldm needs to store the actual DISPLAY value after login somewhere in the filesystem and add/remove_
Vagrant Cascadian (vagrantc) wrote : | #1 |
Oliver Grawert (ogra) wrote : | #2 |
=== modified file 'scripts/
--- scripts/
+++ scripts/
@@ -35,8 +35,18 @@
for LDM_SOCKET in /var/run/
SERVER=
if [ -S ${LDM_SOCKET} ]; then
+ unset SSH_OPTS
+ unset DISPLAY_INFO
+ case ${LDM_SOCKET} in
+ /var/run/
+ SSH_OPTS="-X"
+ ;;
+ *)
+ DISPLAY_
+ ;;
+ esac
# ltspfs needs access to the X display
- /usr/bin/ssh -X -S ${LDM_SOCKET} ${SERVER} \
- "/usr/sbin/
+ /usr/bin/ssh $SSH_OPTS -S ${LDM_SOCKET} ${SERVER} \
+ "$DISPLAY_INFO /usr/sbin/
fi
done
Oliver Grawert (ogra) wrote : | #3 |
--- scripts/
+++ scripts/
@@ -28,10 +28,25 @@
# Mount in the client session, if logged in.
for LDM_SOCKET in /var/run/
+ SSH_OPTS="-X"
SERVER=
if [ -S ${LDM_SOCKET} ]; then
+ # see if we have a command with DISPLAY matching our socket
+ IS_DIRECTX=$(pgrep -f -l DISPLAY |grep ${LDM_SOCKET})
+
+ unset DISPLAY_INFO
+ # get the DISPLAY info for ltspfsmounter
+ if [ -n "${IS_DIRECTX}" ];then
+ unset SSH_OPTS
+ for line in $IS_DIRECTX; do
+ if [ -n "$(echo $line|grep DISPLAY)" ]; then
+ DISPLAY_
+ fi
+ done
+ fi
+
# ltspfs needs access to the X display
- /usr/bin/ssh -X -S ${LDM_SOCKET} ${SERVER} \
- "/usr/sbin/
+ /usr/bin/ssh $SSH_OPTS -S ${LDM_SOCKET} ${SERVER} \
+ "$DISPLAY_INFO /usr/sbin/
fi
done
Oliver Grawert (ogra) wrote : | #4 |
Oliver Grawert (ogra) wrote : | #5 |
final patch to go into hardy if ubuntu-release allows (will go upstream as well with slight modifications)
Oliver Grawert (ogra) wrote : | #6 |
and another improvement
Oliver Grawert (ogra) wrote : | #7 |
more error checking in remove_fstab_entry
Vagrant Cascadian (vagrantc) wrote : | #8 |
with the last udev-scripts-
i'm also getting inconsistant behavior with cdpinger.
hrm.
Oliver Grawert (ogra) wrote : | #9 |
i cant confirm that on hardy, cdpinger works fine and removes the device dirs.
Vagrant Cascadian (vagrantc) wrote : | #10 |
ah, my mistake. i had left extra cruft in /usr/share/
Launchpad Janitor (janitor) wrote : | #11 |
This bug was fixed in the package ltspfs - 0.5.0~bzr200801
---------------
ltspfs (0.5.0~
* udev-scripts-
ldm local devices didnt get the right DISPLAY variable to get their
authentication info for mounting. This patch provides the DISPLAY variable in
the udev scripts and disables X forwarding for the ssh tunnel accordingly.
* cdrom-naming-
service gets dynamically started from udev instead of running as a daemon.
This change caused the mountpoint name in /media/$USER/ to become the
devicename (i.e. dev-scsicd0) instead of the everywhere matched label
"cdrom". The patch restores the old behavior of always setting the label
to "cdrom" so the right icon will be applied on the desktop and the places
menu.
-- Oliver Grawert <email address hidden> Fri, 18 Apr 2008 01:56:29 +0200
Changed in ltspfs: | |
status: | New → Fix Released |
in addition to *_fstab_entry, it will need to be fixed in /usr/share/ ldm/rc. d/S10-delayed- mounter