On Friday 02 June 2006 18:18, Robert Schiele wrote:
On Fri, Jun 02, 2006 at 05:34:24PM +0200, Bernd Paysan wrote:
Do your programs exec() other programs with the same problems? Cadence does, and that's the problem. Apparently, there is no way to tell the Linux kernel that it should use another ld.so instead of /lib/ld-linux.so other than chroot - and chrooting just one specific X application is fairly difficult.
The trick my tool does is to move away _all_ binaries to a different place and place a wrapper script like the natixshell script (from the example) to the old place. Thus an exec call does no longer hurt.
A possible different way would be to create a new name space using clone(CLONE_NEWNS) and overwrite all binaries/directories you want to be different with mount --bind in the new name space. There isn't a program included to do this but it should be relatively easy to write. -Andi