/freebsd-11-stable/contrib/unbound/daemon/ |
H A D | unbound.c | 495 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); 504 /* true if pidfile is inside chrootdir, or nochroot */ 505 pidinchroot = need_pidfile && (!(cfg->chrootdir && cfg->chrootdir[0]) || 506 (cfg->chrootdir && cfg->chrootdir[0] && 507 strncmp(cfg->pidfile, cfg->chrootdir, 508 strlen(cfg->chrootdir))==0)); 568 if(cfg->chrootdir && cfg->chrootdir[ [all...] |
H A D | remote.c | 2501 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir);
|
/freebsd-11-stable/contrib/blacklist/etc/rc.d/ |
H A D | blacklistd | 29 # Find /etc/rc.d scripts with "chrootdir" rcorder(8) keyword, 33 for _lr in $(rcorder -k chrootdir /etc/rc.d/*); do
|
/freebsd-11-stable/contrib/unbound/smallapp/ |
H A D | unbound-checkconf.c | 455 const char* chrootdir, struct config_file* cfg) 462 if(chrootdir && chrootdir[0]) 464 "chrootdir %s", desc, str, chrootdir); 477 const char* chrootdir, struct config_file* cfg) 481 check_chroot_string(desc, &p->str, chrootdir, cfg); 488 const char* chrootdir, struct config_file* cfg) 502 check_chroot_string(desc, &p->str, chrootdir, cfg); 586 if(cfg->chrootdir 454 check_chroot_string(const char* desc, char** ss, const char* chrootdir, struct config_file* cfg) argument 476 check_chroot_filelist(const char* desc, struct config_strlist* list, const char* chrootdir, struct config_file* cfg) argument 487 check_chroot_filelist_wild(const char* desc, struct config_strlist* list, const char* chrootdir, struct config_file* cfg) argument [all...] |
/freebsd-11-stable/usr.sbin/bsdinstall/distextract/ |
H A D | distextract.c | 66 char *chrootdir; local 138 chrootdir = getenv("BSDINSTALL_CHROOT"); 139 if (chrootdir != NULL && chdir(chrootdir) != 0) { 142 chrootdir, strerror(errno));
|
/freebsd-11-stable/usr.sbin/unbound/setup/ |
H A D | local-unbound-setup.sh | 43 chrootdir="" 83 chrootdir="${workdir}" 88 chrootdir="" 91 if [ -z "${chrootdir}" ] ; then 237 echo " chroot: ${chrootdir}"
|
/freebsd-11-stable/contrib/unbound/util/ |
H A D | log.c | 86 log_init(const char* filename, int use_syslog, const char* chrootdir) argument 142 if(chrootdir && chrootdir[0] && strncmp(filename, chrootdir, 143 strlen(chrootdir)) == 0) 144 filename += strlen(chrootdir);
|
H A D | 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);
|
H A D | config_file.c | 181 if(!(cfg->chrootdir = strdup(CHROOT_DIR))) goto error_exit; 379 free(cfg->chrootdir); 380 cfg->chrootdir = NULL; 583 else S_STR("chroot:", chrootdir) 1031 else O_STR(opt, "chroot", chrootdir) 1488 free(cfg->chrootdir); 2178 if(cfg->chrootdir && cfg->chrootdir[0] && 2179 strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir)) [all...] |
H A D | config_file.h | 303 /** chrootdir, if not "" or chroot will be done */ 304 char* chrootdir; member in struct:config_file
|
H A D | configparser.y | 1139 free(cfg_parser->cfg->chrootdir); 1140 cfg_parser->cfg->chrootdir = $2;
|
/freebsd-11-stable/contrib/unbound/validator/ |
H A D | val_anchor.c | 1073 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, 1074 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) 1075 nm += strlen(cfg->chrootdir); 1086 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, 1087 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) 1088 nm += strlen(cfg->chrootdir); [all...] |
/freebsd-11-stable/contrib/unbound/iterator/ |
H A D | iter_hints.c | 419 if(cfg->chrootdir && cfg->chrootdir[0] && 420 strncmp(p->str, cfg->chrootdir, 421 strlen(cfg->chrootdir)) == 0) 422 f += strlen(cfg->chrootdir);
|
/freebsd-11-stable/contrib/unbound/dnstap/ |
H A D | dnstap.c | 138 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(p, 139 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) 140 p += strlen(cfg->chrootdir);
|
H A D | dtstream.c | 352 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, 353 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) 354 nm += strlen(cfg->chrootdir);
|
/freebsd-11-stable/contrib/ntp/ntpd/ |
H A D | cmd_args.c | 85 chrootdir = OPT_ARG( JAILDIR );
|
H A D | ntpd.c | 212 const char *chrootdir; /* directory to chroot to */ variable 1209 if (chrootdir ) { 1211 if (chdir(chrootdir)) { 1212 msyslog(LOG_ERR, "Cannot chdir() to `%s': %m", chrootdir); 1215 if (chroot(chrootdir)) { 1216 msyslog(LOG_ERR, "Cannot chroot() to `%s': %m", chrootdir);
|
/freebsd-11-stable/libexec/ftpd/ |
H A D | ftpd.c | 128 char *chrootdir; variable 1503 chrootdir = NULL; 1533 (chrootdir = strtok(residue, " \t")) != NULL) { 1534 if (chrootdir[0] != '/') 1535 asprintf(&chrootdir, "%s/%s", pw->pw_dir, chrootdir); 1537 chrootdir = strdup(chrootdir); /* make it permanent */ 1538 if (chrootdir == NULL) 1546 if (chrootdir [all...] |
/freebsd-11-stable/contrib/unbound/dnscrypt/ |
H A D | dnscrypt.c | 563 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, 564 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) 565 nm += strlen(cfg->chrootdir);
|
/freebsd-11-stable/contrib/ntp/include/ |
H A D | ntpd.h | 568 extern const char *chrootdir; /* directory to chroot() to */
|
/freebsd-11-stable/contrib/unbound/services/ |
H A D | authzone.c | 1500 if(cfg->chrootdir && cfg->chrootdir[0] && 1501 strncmp(incfile, cfg->chrootdir, 1502 strlen(cfg->chrootdir)) == 0) 1503 incfile += strlen(cfg->chrootdir); 1572 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(zfilename, 1573 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) 1574 zfilename += strlen(cfg->chrootdir); [all...] |