Re: chroot could chdir? (was Re: about jail)

1999-09-27 Thread Carol Deihl
continuing anyway. At the very end of chroot(), could it just vrele(fdp-fd_cdir); fdp-fd_cdir = nd.ni_vp; before it returns, setting the current dir to the same place it just chrooted to? -- Carol Deihl - principal, Shrier and Deihl - mailto:[EMAIL PROTECTED] Remote

Re: chroot could chdir? (was Re: about jail)

1999-09-27 Thread Carol Deihl
in the source now, I'm just not too familiar with it... :-) ) Carol You have to examine ALL fd's in case one has a directory open that is outside the chroot.. (see man fchdir(2)) We do. See source. -- Carol Deihl - principal, Shrier and Deihl - mailto:[EMAIL PROTECTED] Remote Unix Network

chroot could chdir? (was Re: about jail)

1999-09-26 Thread Carol Deihl
of chroot(), could it just vrele(fdp-fd_cdir); fdp-fd_cdir = nd.ni_vp; before it returns, setting the current dir to the same place it just chrooted to? Carol -- Carol Deihl - principal, Shrier and Deihl - mailto:[EMAIL PROTECTED] Remote Unix Network Admin, Security, Internet Software