[lxc-devel] lxc and LD_PRELOAD conflict

尹小彪(嵌入式软件事业部) yinxb at neusoft.com
Thu Feb 2 03:27:33 UTC 2012


Hi Professors

      Now I faced a problem.when add LD_PRELAOD before lxc-execute -n xxx,I will get error info:
--------------
lxc-execute:inherited fd 3 on /proc/platform_config
--------------

   Look into the lxc source code  and find that lxc does not allow inheriting any fd(in function lxc_start()).
   my shell is like
======
export LD_PRELOAD= xxxx.so

mkdir /cgroup

mount -t cgroup -o all cgroup /cgroup

lxc-create -n xxx
lxc-execute -n myapp
======

Coulde anyone give a hint how to workaround this issue?

Thansk in advanced.
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please 
immediately notify the sender by return e-mail, and delete the original message and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------


More information about the lxc-devel mailing list