(Feb-20-2017, 05:50 AM)wavic Wrote: Hah! I just read about it. Is it possible new_root to be a remote directory mounted somewhere on the local file system ?new_root must already be mounted, be a type supported as root (most filesystem types are), and have a place for put_old to end up. so, yes! but then, anything not under new_root cannot be accessed. and it only affects the process it is executed in.
i ran across someone mentioned that there existed a way to call a dynamic library symbol (name) after the library was loaded. "pivot_root" is in libc.
if you are wanting to mount a network filesystem as root ... it is done in lots of places. i did it (in c) in the cable set top boxes i worked on.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.