I can't reproduce the problem.
/ Henrik Grubbström (Lysator)
Previous text:
2004-02-28 09:38: Subject: create_process unable to find executable after chroot [3613]
Product: Pike Version: 7.5 Component: Core Reporter: astra@upb.de URL: https://community.roxen.com/crunch/show_bug.cgi?id=3613
The following does not work. There is a test file with exec permissions /root/test and removing the chroot line will make it work. It also fails with any other combination of PATH, /root/test, cwd, etc.
void main() { mapping env = getenv(); System.chroot("/root"); env["PATH"] = "/:/root/"; mapping options = ([ "stdin":Stdio.stdin, "stdout":Stdio.stdout, "env": env, ]); Process.create_process( ({ "test" }), options ); }
/ Brevbäraren
Perhaps the test binary in question is dynamically linked and the chroot prison does not contain the dynamic linker or a referenced shared object.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2004-02-28 15:48: Subject: create_process unable to find executable after chroot [3613]
I can't reproduce the problem.
/ Henrik Grubbström (Lysator)
pike-devel@lists.lysator.liu.se