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

Bug#328479: ssh-agent unsets LD_LIBRARY_PATH



Control: retitle -1 "ssh-agent unsets LD_LIBRARY_PATH"
Control: tag -1 + wontfix

Hi,

This issue is produced by ssh-agent by design, as documented in:
/usr/share/doc/openssh-client/README.Debian.gz:

 Setgid ssh-agent and environment variables
 ------------------------------------------

 As of version 1:3.5p1-1, ssh-agent is installed setgid to prevent ptrace()
 attacks retrieving private key material. This has the side-effect of causing
 glibc to remove certain environment variables which might have security
 implications for set-id programs, including LD_PRELOAD, LD_LIBRARY_PATH, and
 TMPDIR.

 If you need to set any of these environment variables, you will need to do
 so in the program exec()ed by ssh-agent. This may involve creating a small
 wrapper script.

As mentioned before, in KDE you can add a shell script like ~/.kde/env/vars.sh
that would be executed on session start, maybe a simple:
 . ~/.bash_profile
is enough for you.

Other desktop environments provide different ways to export enviroment
variables.

Happy hacking,
-- 
Porque no respeta el orden natural en el que se leen las cosas
> ¿Por qué contestar al principio del mensaje es malo?
Saludos /\/\ /\ >< `/

Attachment: signature.asc
Description: Digital signature


Reply to: