| /netbsd-src/external/bsd/unbound/dist/daemon/ |
| H A D | unbound.c | 524 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 D | unbound-checkconf.c | 537 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 D | nsd-mem.c | 288 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 D | nsd.c | 966 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 D | options.c | 2109 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 D | nsd.h | 263 const char *chrootdir; member
|
| /netbsd-src/etc/rc.d/ |
| H A D | named | 64 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 D | syslogd | 38 for _lr in $(rcorder -k chrootdir /etc/rc.d/*); do
|
| /netbsd-src/external/bsd/unbound/dist/util/ |
| H A D | log.c | 86 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 D | config_file.c | 191 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 D | log.h | 83 void log_init(const char* filename, int use_syslog, const char* chrootdir);
|
| /netbsd-src/external/bsd/unbound/dist/validator/ |
| H A D | val_anchor.c | 1078 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 D | iter_hints.c | 427 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 D | dnstap.c | 138 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 D | dtstream.c | 357 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 D | drop-tld.diff | 32 /** chrootdir, if not "" or chroot will be done */ 33 char* chrootdir;
|
| /netbsd-src/external/bsd/unbound/dist/testdata/04-checkconf.tdir/ |
| H A D | bad.badfwd | 2 # to make sure the check doesn't fail on username or chrootdir.
|
| /netbsd-src/external/bsd/nsd/dist/dnstap/ |
| H A D | dnstap_collector.c | 288 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 D | dnscrypt.c | 563 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 D | blocklistd | 33 for _lr in $(rcorder -k chrootdir /etc/rc.d/*); do
|
| /netbsd-src/external/mpl/bind/dist/bin/confgen/ |
| H A D | rndc-confgen.rst | 24 … keyfile] [**-h**] [**-k** keyname] [**-p** port] [**-s** address] [**-t** chrootdir] [**-u** user] 93 .. option:: -t chrootdir
|
| /netbsd-src/external/bsd/nsd/ |
| H A D | Makefile.inc | 39 -e s,@chrootdir@,/var/chroot/nsd, \
|
| /netbsd-src/external/bsd/unbound/dist/testcode/ |
| H A D | unitauth.c | 673 free(cfg->chrootdir); in authtest_addzone() 674 cfg->chrootdir = NULL; in authtest_addzone()
|
| /netbsd-src/external/bsd/nsd/dist/contrib/ |
| H A D | patch_for_s6_startup_and_other_service_supervisors.diff | 13 " -t chrootdir Change root to specified directory on startup.\n"
|
| /netbsd-src/libexec/httpd/ |
| H A D | bozohttpd.c | 2575 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()
|