I actually currently use -----SNIP - EDITED FOR SECURITY ------------- syslog (LOG_NOTICE,"Changing directory/root to %s",path if (chdir (path) || chroot (path)) return 1; }else{ syslog (LOG_NOTICE,"No ("EDITED FOR SECURITY" ) directory for %s: using main" } } execv (argv[0],argv+1); return 1; } -------END - SNIP -------------------------- > > > 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? To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
- Re: about jail Rodney W. Grimes
- Re: about jail Alexander Bezroutchko
- Re: about jail Alexander Bezroutchko
- Re: about jail Daniel C. Sobral
- Re: about jail Alexander Bezroutchko
- Re: about jail Adrian Filipi-Martin
- Re: about jail Harold Gutch
- Re: about jail Jacques Vidrine
- chroot could chdir? (was Re: about jail) Carol Deihl
- Re: chroot could chdir? (was Re: about jail) TrouBle
- Re: chroot could chdir? (was Re: about jail) TrouBle
- Re: chroot could chdir? (was Re: about jail) Julian Elischer
- Re: chroot could chdir? (was Re: about jail... Poul-Henning Kamp
- Re: chroot could chdir? (was Re: about ... Julian Elischer
- Re: chroot could chdir? (was Re: ab... Poul-Henning Kamp
- Re: chroot could chdir? (was R... Carol Deihl