| /src/external/bsd/unbound/dist/daemon/ |
| unbound.c | 553 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); 562 /* true if pidfile is inside chrootdir, or nochroot */ 563 pidinchroot = need_pidfile && (!(cfg->chrootdir && cfg->chrootdir[0]) || 564 (cfg->chrootdir && cfg->chrootdir[0] && 565 strncmp(cfg->pidfile, cfg->chrootdir, 566 strlen(cfg->chrootdir))==0)); 623 if(cfg->chrootdir && cfg->chrootdir[0]) [all...] |
| /src/external/mpl/bind/dist/bin/confgen/ |
| rndc-confgen.c | 73 [-s addr] [-t chrootdir] [-u user]\n\ 82 -t chrootdir: write a keyfile in chrootdir as well (requires -a)\n\ 106 char *chrootdir = NULL; local 186 chrootdir = isc_commandline_argument; 235 write_key_file(keyfile, chrootdir == NULL ? user : NULL, 241 if (chrootdir != NULL) { 243 len = strlen(chrootdir) + strlen(keyfile) + 2; 245 snprintf(buf, len, "%s%s%s", chrootdir,
|
| /src/etc/rc.d/ |
| syslogd | 34 # Find /etc/rc.d scripts with "chrootdir" rcorder(8) keyword, 38 for _lr in $(rcorder -k chrootdir /etc/rc.d/*); do
|
| named | 9 # KEYWORD: chrootdir 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}"
|
| /src/external/bsd/blocklist/etc/rc.d/ |
| blocklistd | 29 # Find /etc/rc.d scripts with "chrootdir" rcorder(8) keyword, 33 for _lr in $(rcorder -k chrootdir /etc/rc.d/*); do
|
| /src/external/bsd/nsd/dist/ |
| nsd-mem.c | 294 if(nsd.chrootdir == 0) nsd.chrootdir = nsd.options->chroot; 295 #ifdef CHROOTDIR 296 /* if still no chrootdir, fallback to default */ 297 if(nsd.chrootdir == 0) nsd.chrootdir = CHROOTDIR; 298 #endif /* CHROOTDIR */ 311 if (nsd.chrootdir && strlen(nsd.chrootdir)) { [all...] |
| nsd.c | 111 " -t chrootdir Change root to specified directory on startup.\n" 891 nsd.chrootdir = 0; 1017 nsd.chrootdir = optarg; 1174 if(nsd.chrootdir == 0) nsd.chrootdir = nsd.options->chroot; 1175 #ifdef CHROOTDIR 1176 /* if still no chrootdir, fallback to default */ 1177 if(nsd.chrootdir == 0) nsd.chrootdir = CHROOTDIR; [all...] |
| nsd.h | 275 const char *chrootdir; member in struct:nsd
|
| options.c | 2562 if (nsd->chrootdir && nsd->chrootdir[0] && 2565 strncmp(zone->pattern->zonefile, nsd->chrootdir, 2566 strlen(nsd->chrootdir)) == 0) 2567 /* -1 because chrootdir ends in trailing slash */ 2568 return zone->pattern->zonefile + strlen(nsd->chrootdir) - 1; 2586 if (nsd->chrootdir && nsd->chrootdir[0] && f[0] == '/' && 2587 strncmp(f, nsd->chrootdir, strlen(nsd->chrootdir)) == 0 [all...] |
| remote.c | 2159 if(xfrd->nsd->chrootdir) { 2160 size_t l = strlen(xfrd->nsd->chrootdir); 2161 while(l>0 && xfrd->nsd->chrootdir[l-1] == '/') 2163 if(strncmp(xfrd->nsd->chrootdir, cfgfile, l) != 0) { 2166 cfgfile, xfrd->nsd->chrootdir); 2207 const char *chrootdir = xfrd->nsd->chrootdir; local 2212 if (chrootdir && !file_inside_chroot(file, chrootdir)) 2215 xfrd->nsd->options->configfile, xfrd->nsd->chrootdir, [all...] |
| /src/external/bsd/unbound/dist/smallapp/ |
| unbound-checkconf.c | 580 const char* chrootdir, struct config_file* cfg) 587 if(chrootdir && chrootdir[0]) 589 "chrootdir %s", desc, str, chrootdir); 602 const char* chrootdir, struct config_file* cfg) 606 check_chroot_string(desc, &p->str, chrootdir, cfg); 613 const char* chrootdir, struct config_file* cfg) 627 check_chroot_string(desc, &p->str, chrootdir, cfg); 714 if(cfg->chrootdir && cfg->chrootdir[0] & [all...] |
| /src/external/bsd/nsd/ |
| Makefile.inc | 40 -e s,@chrootdir@,/var/chroot/nsd, \
|
| /src/external/bsd/unbound/dist/util/ |
| log.h | 81 * @param chrootdir: to which directory we have been chrooted, if any. 83 void log_init(const char* filename, int use_syslog, const char* chrootdir);
|
| log.c | 89 log_init(const char* filename, int use_syslog, const char* chrootdir) 145 if(chrootdir && chrootdir[0] && strncmp(filename, chrootdir, 146 strlen(chrootdir)) == 0) 147 filename += strlen(chrootdir);
|
| config_file.c | 197 if(!(cfg->chrootdir = strdup(CHROOT_DIR))) goto error_exit; 437 free(cfg->chrootdir); 438 cfg->chrootdir = NULL; 689 else S_STR("chroot:", chrootdir) 1195 else O_STR(opt, "chroot", chrootdir) 1740 free(cfg->chrootdir); 2543 if(cfg->chrootdir && cfg->chrootdir[0] && 2544 strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir)) == 0) [all...] |
| /src/external/bsd/unbound/dist/validator/ |
| val_anchor.c | 1081 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, 1082 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) 1083 nm += strlen(cfg->chrootdir); 1094 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, 1095 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) 1096 nm += strlen(cfg->chrootdir); [all...] |
| /src/external/bsd/unbound/dist/dnstap/ |
| dnstap.c | 163 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(p, 164 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) 165 p += strlen(cfg->chrootdir);
|
| dtstream.c | 363 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, 364 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) 365 nm += strlen(cfg->chrootdir);
|
| /src/external/bsd/unbound/dist/iterator/ |
| iter_hints.c | 430 if(cfg->chrootdir && cfg->chrootdir[0] && 431 strncmp(p->str, cfg->chrootdir, 432 strlen(cfg->chrootdir)) == 0) 433 f += strlen(cfg->chrootdir);
|
| /src/external/bsd/nsd/dist/dnstap/ |
| dnstap_collector.c | 288 if(nsd->chrootdir && nsd->chrootdir[0]) { 289 int l = strlen(nsd->chrootdir)-1; /* ends in trailing slash */ 293 nsd->chrootdir, l) == 0)
|
| /src/external/bsd/ntp/dist/ntpd/ |
| cmd_args.c | 87 chrootdir = OPT_ARG( JAILDIR );
|
| ntpd.c | 214 const char *chrootdir; /* directory to chroot to */ variable 1238 if (chrootdir ) { 1240 if (chdir(chrootdir)) { 1241 msyslog(LOG_ERR, "Cannot chdir() to `%s': %m", chrootdir); 1244 if (chroot(chrootdir)) { 1245 msyslog(LOG_ERR, "Cannot chroot() to `%s': %m", chrootdir);
|
| /src/external/bsd/unbound/dist/dnscrypt/ |
| dnscrypt.c | 563 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, 564 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) 565 nm += strlen(cfg->chrootdir);
|
| /src/external/bsd/unbound/dist/testcode/ |
| unitauth.c | 674 free(cfg->chrootdir); 675 cfg->chrootdir = NULL;
|
| /src/external/bsd/ntp/dist/include/ |
| ntpd.h | 615 extern const char *chrootdir; /* directory to chroot() to */
|