Exit from Dir.chroot()

H

hgarg.india

Any other clear strategy, as I am using ruby in CHEF so, calling Process.exit exits the chef also.
 
R

Robert Klemme

Any other clear strategy, as I am using ruby in CHEF so, calling Process.exit exits the chef also.

Strategy should be obvious: fork, then in child: chroot, do work, exit.

Cheers

robert
 
K

Kaz Kylheku

The entire point of chroot is to prevent you from exiting it...

No it isn't the entire point. That's just the security aspect of chroot.

There is also a utility aspect of chroot, which is to create a modified
environment in which absolute paths change semantics in order to simplify
something: for instance, allowing programs to be compiled using different
tools, and against different header files and libraries, while still using
paths like /usr/include or /usr/bin.

Having to be subject to the security aspect when you only need the pragmatic
aspect is an annoying limitation of chroot.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,818
Messages
2,569,727
Members
45,661
Latest member
NadineBour

Latest Threads

Top