Skip to content

Commit 43ca2f8

Browse files
author
aiordache
committed
Drop LD_LIBRARY_PATH env var for SSH shellout
Signed-off-by: aiordache <[email protected]>
1 parent e6689e0 commit 43ca2f8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docker/transport/sshconn.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,15 @@ def f():
5353
signal.signal(signal.SIGINT, signal.SIG_IGN)
5454
preexec_func = f
5555

56+
env = dict(os.environ)
57+
58+
# drop LD_LIBRARY_PATH and SSL_CERT_FILE
59+
env.pop('LD_LIBRARY_PATH', None)
60+
env.pop('SSL_CERT_FILE', None)
61+
5662
self.proc = subprocess.Popen(
5763
' '.join(args),
58-
env=os.environ,
64+
env=env,
5965
shell=True,
6066
stdout=subprocess.PIPE,
6167
stdin=subprocess.PIPE,

0 commit comments

Comments
 (0)