In message <[EMAIL PROTECTED]> "Aleksandr A.Babaylov" writes:
: I need in directories without link to parent in it
: or with link to parent renamed to something exotic name.
:
: What is the method to do it without kernel patching
: in FreeBSD 2.2.X or 3.X ?
I don't think this is possible. Even / has a parent directory
(/.. being the only loop in the directory graph allowed).
If you want to create a process that has no working directory, you can
do this by, for example,
mkdir("/tmp/foo");
chdir("/tmp/foo");
rmdir("/tmp/foo");
which will make it impossible to create files in dot (./). This can
cause other problems as many programs assume they can walk up to
root.
The jail code in -current may also be of interest.
Warner
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message