From: Thierry Parmentelat Date: Tue, 2 Jul 2013 11:32:20 +0000 (+0200) Subject: lxcsu-internal to set LD_PRELOAD and HOME (resulting process wtill ends up in / though) X-Git-Tag: lxc-userspace-1.0-5~2 X-Git-Url: http://git.onelab.eu/?p=lxc-userspace.git;a=commitdiff_plain;h=2741216c74ca71737c1c90a242eeed36cc9ee1cd lxcsu-internal to set LD_PRELOAD and HOME (resulting process wtill ends up in / though) --- diff --git a/lxcsu-internal b/lxcsu-internal index 9dbb9ef..638fbdf 100755 --- a/lxcsu-internal +++ b/lxcsu-internal @@ -186,7 +186,8 @@ def main (): exec_args = [arch,'/usr/sbin/capsh','--','--login']+args.command_to_run os.environ['SHELL'] = '/bin/sh' -# Thierry's suggestion:os.environ['HOME'] = '/home/%s'%slice_name + os.environ['HOME'] = '/home/%s'%slice_name + os.environ['LD_PRELOAD'] = '/etc/planetlab/lib/bind_public.so' if debug: print 'lxcsu-internal:execv:','/usr/bin/setarch',exec_args os.execv('/usr/bin/setarch',exec_args) else: