Home
last modified time | relevance | path

Searched refs:chrootdir (Results 1 – 25 of 42) sorted by relevance

12

/netbsd-src/external/bsd/unbound/dist/daemon/
H A Dunbound.c524 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); in perform_setup()
534 pidinchroot = need_pidfile && (!(cfg->chrootdir && cfg->chrootdir[0]) || in perform_setup()
535 (cfg->chrootdir && cfg->chrootdir[0] && in perform_setup()
536 strncmp(cfg->pidfile, cfg->chrootdir, in perform_setup()
537 strlen(cfg->chrootdir))==0)); in perform_setup()
597 if(cfg->chrootdir && cfg->chrootdir[0]) { in perform_setup()
598 if(chdir(cfg->chrootdir)) { in perform_setup()
600 cfg->chrootdir, strerror(errno)); in perform_setup()
602 verbose(VERB_QUERY, "chdir to %s", cfg->chrootdir); in perform_setup()
603 if(chroot(cfg->chrootdir)) in perform_setup()
[all …]
/netbsd-src/external/bsd/unbound/dist/smallapp/
H A Dunbound-checkconf.c537 const char* chrootdir, struct config_file* cfg) in check_chroot_string() argument
544 if(chrootdir && chrootdir[0]) in check_chroot_string()
546 "chrootdir %s", desc, str, chrootdir); in check_chroot_string()
559 const char* chrootdir, struct config_file* cfg) in check_chroot_filelist() argument
563 check_chroot_string(desc, &p->str, chrootdir, cfg); in check_chroot_filelist()
570 const char* chrootdir, struct config_file* cfg) in check_chroot_filelist_wild() argument
584 check_chroot_string(desc, &p->str, chrootdir, cfg); in check_chroot_filelist_wild()
669 if(cfg->chrootdir && cfg->chrootdir[0] && in morechecks()
670 cfg->chrootdir[strlen(cfg->chrootdir)-1] == '/') in morechecks()
672 cfg->chrootdir); in morechecks()
[all …]
/netbsd-src/external/bsd/nsd/dist/
H A Dnsd-mem.c288 if(nsd.chrootdir == 0) nsd.chrootdir = nsd.options->chroot; in main()
291 if(nsd.chrootdir == 0) nsd.chrootdir = CHROOTDIR; in main()
305 if (nsd.chrootdir && strlen(nsd.chrootdir)) { in main()
306 if(chdir(nsd.chrootdir)) { in main()
310 nsd.chrootdir)); in main()
H A Dnsd.c966 nsd.chrootdir = 0; in main()
1090 nsd.chrootdir = optarg; in main()
1220 if(nsd.chrootdir == 0) nsd.chrootdir = nsd.options->chroot; in main()
1223 if(nsd.chrootdir == 0) nsd.chrootdir = CHROOTDIR; in main()
1450 if (nsd.chrootdir && nsd.chrootdir[0]) { in main()
1452 append_trailing_slash(&nsd.chrootdir, nsd.region); in main()
1457 if (strncmp(nsd.options->zonesdir, nsd.chrootdir, strlen(nsd.chrootdir)) != 0) { in main()
1459 nsd.options->zonesdir, nsd.chrootdir); in main()
1460 } else if (!file_inside_chroot(nsd.pidfile, nsd.chrootdir)) { in main()
1462 nsd.pidfile, nsd.chrootdir); in main()
[all …]
H A Doptions.c2109 if (nsd->chrootdir && nsd->chrootdir[0] && in config_make_zonefile()
2112 strncmp(zone->pattern->zonefile, nsd->chrootdir, in config_make_zonefile()
2113 strlen(nsd->chrootdir)) == 0) in config_make_zonefile()
2115 return zone->pattern->zonefile + strlen(nsd->chrootdir) - 1; in config_make_zonefile()
2133 if (nsd->chrootdir && nsd->chrootdir[0] && f[0] == '/' && in config_make_zonefile()
2134 strncmp(f, nsd->chrootdir, strlen(nsd->chrootdir)) == 0) in config_make_zonefile()
2136 return f + strlen(nsd->chrootdir) - 1; in config_make_zonefile()
H A Dnsd.h263 const char *chrootdir; member
/netbsd-src/etc/rc.d/
H A Dnamed64 local chrootdir="$1"
67 if ! [ -x "${chrootdir}${dir}/${file}" ] ||
68 [ "${chrootdir}${dir}/${file}" -ot "${dir}/${file}" ]; then
69 rm -f "${chrootdir}${dir}/${file}"
70 cp -p "${dir}/${file}" "${chrootdir}${dir}/${file}"
H A Dsyslogd38 for _lr in $(rcorder -k chrootdir /etc/rc.d/*); do
/netbsd-src/external/bsd/unbound/dist/util/
H A Dlog.c86 log_init(const char* filename, int use_syslog, const char* chrootdir) in log_init() argument
142 if(chrootdir && chrootdir[0] && strncmp(filename, chrootdir, in log_init()
143 strlen(chrootdir)) == 0) in log_init()
144 filename += strlen(chrootdir); in log_init()
H A Dconfig_file.c191 if(!(cfg->chrootdir = strdup(CHROOT_DIR))) goto error_exit; in config_create()
412 free(cfg->chrootdir); in config_create_forlib()
413 cfg->chrootdir = NULL; in config_create_forlib()
635 else S_STR("chroot:", chrootdir) in config_set_option()
1121 else O_STR(opt, "chroot", chrootdir) in config_get_option()
1603 free(cfg->chrootdir); in config_delete()
2356 if(cfg->chrootdir && cfg->chrootdir[0] && in strlen_after_chroot()
2357 strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir)) == 0) { in strlen_after_chroot()
2362 if(cfg->chrootdir && cfg->chrootdir[0]) { in strlen_after_chroot()
2364 len += strlen(cfg->chrootdir); in strlen_after_chroot()
[all …]
H A Dlog.h83 void log_init(const char* filename, int use_syslog, const char* chrootdir);
/netbsd-src/external/bsd/unbound/dist/validator/
H A Dval_anchor.c1078 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg()
1079 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in anchors_apply_cfg()
1080 nm += strlen(cfg->chrootdir); in anchors_apply_cfg()
1091 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg()
1092 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in anchors_apply_cfg()
1093 nm += strlen(cfg->chrootdir); in anchors_apply_cfg()
1115 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg()
1116 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in anchors_apply_cfg()
1117 nm += strlen(cfg->chrootdir); in anchors_apply_cfg()
/netbsd-src/external/bsd/unbound/dist/iterator/
H A Diter_hints.c427 if(cfg->chrootdir && cfg->chrootdir[0] && in read_root_hints_list()
428 strncmp(p->str, cfg->chrootdir, in read_root_hints_list()
429 strlen(cfg->chrootdir)) == 0) in read_root_hints_list()
430 f += strlen(cfg->chrootdir); in read_root_hints_list()
/netbsd-src/external/bsd/unbound/dist/dnstap/
H A Ddnstap.c138 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(p, in dt_create()
139 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in dt_create()
140 p += strlen(cfg->chrootdir); in dt_create()
H A Ddtstream.c357 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in dt_io_thread_apply_cfg()
358 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in dt_io_thread_apply_cfg()
359 nm += strlen(cfg->chrootdir); in dt_io_thread_apply_cfg()
/netbsd-src/external/bsd/unbound/dist/contrib/
H A Ddrop-tld.diff32 /** chrootdir, if not "" or chroot will be done */
33 char* chrootdir;
/netbsd-src/external/bsd/unbound/dist/testdata/04-checkconf.tdir/
H A Dbad.badfwd2 # to make sure the check doesn't fail on username or chrootdir.
/netbsd-src/external/bsd/nsd/dist/dnstap/
H A Ddnstap_collector.c288 if(nsd->chrootdir && nsd->chrootdir[0]) { in dt_init_dnstap()
289 int l = strlen(nsd->chrootdir)-1; /* ends in trailing slash */ in dt_init_dnstap()
293 nsd->chrootdir, l) == 0) in dt_init_dnstap()
/netbsd-src/external/bsd/unbound/dist/dnscrypt/
H A Ddnscrypt.c563 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in dnsc_chroot_path()
564 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in dnsc_chroot_path()
565 nm += strlen(cfg->chrootdir); in dnsc_chroot_path()
/netbsd-src/external/bsd/blocklist/etc/rc.d/
H A Dblocklistd33 for _lr in $(rcorder -k chrootdir /etc/rc.d/*); do
/netbsd-src/external/mpl/bind/dist/bin/confgen/
H A Drndc-confgen.rst24 … keyfile] [**-h**] [**-k** keyname] [**-p** port] [**-s** address] [**-t** chrootdir] [**-u** user]
93 .. option:: -t chrootdir
/netbsd-src/external/bsd/nsd/
H A DMakefile.inc39 -e s,@chrootdir@,/var/chroot/nsd, \
/netbsd-src/external/bsd/unbound/dist/testcode/
H A Dunitauth.c673 free(cfg->chrootdir); in authtest_addzone()
674 cfg->chrootdir = NULL; in authtest_addzone()
/netbsd-src/external/bsd/nsd/dist/contrib/
H A Dpatch_for_s6_startup_and_other_service_supervisors.diff13 " -t chrootdir Change root to specified directory on startup.\n"
/netbsd-src/libexec/httpd/
H A Dbozohttpd.c2575 char *chrootdir; in bozo_setup() local
2694 if ((chrootdir = bozo_get_pref(prefs, "chroot dir")) != NULL) { in bozo_setup()
2695 httpd->rootdir = bozostrdup(httpd, NULL, chrootdir); in bozo_setup()
2713 if ((chrootdir != NULL || username != NULL) && !dirtyenv) in bozo_setup()

12