Lines Matching refs:chroot_dir
776 droproot(const char *username, const char *chroot_dir) in droproot() argument
780 if (chroot_dir && !username) in droproot()
785 if (chroot_dir) { in droproot()
786 if (chroot(chroot_dir) != 0 || chdir ("/") != 0) in droproot()
788 chroot_dir, pcap_strerror(errno)); in droproot()
1506 const char *chroot_dir = NULL; in main() local
2024 if (!chroot_dir) in main()
2025 chroot_dir = WITH_CHROOT; in main()
2360 if (chroot_dir) { in main()
2381 if (username || chroot_dir) in main()
2382 droproot(username, chroot_dir); in main()