Searched refs:chrootdir (Results 1 - 17 of 17) sorted by relevance

/freebsd-11.0-release/contrib/unbound/smallapp/
H A Dunbound-checkconf.c267 const char* chrootdir, struct config_file* cfg)
274 if(chrootdir && chrootdir[0])
276 "chrootdir %s", desc, str, chrootdir);
289 const char* chrootdir, struct config_file* cfg)
293 check_chroot_string(desc, &p->str, chrootdir, cfg);
300 const char* chrootdir, struct config_file* cfg)
314 check_chroot_string(desc, &p->str, chrootdir, cfg);
341 if(cfg->chrootdir
266 check_chroot_string(const char* desc, char** ss, const char* chrootdir, struct config_file* cfg) argument
288 check_chroot_filelist(const char* desc, struct config_strlist* list, const char* chrootdir, struct config_file* cfg) argument
299 check_chroot_filelist_wild(const char* desc, struct config_strlist* list, const char* chrootdir, struct config_file* cfg) argument
[all...]
/freebsd-11.0-release/contrib/unbound/daemon/
H A Dunbound.c465 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir);
487 /* true if pidfile is inside chrootdir, or nochroot */
488 pidinchroot = !(cfg->chrootdir && cfg->chrootdir[0]) ||
489 (cfg->chrootdir && cfg->chrootdir[0] &&
490 strncmp(cfg->pidfile, cfg->chrootdir,
491 strlen(cfg->chrootdir))==0);
547 if(cfg->chrootdir && cfg->chrootdir[
[all...]
H A Dremote.c2146 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir);
/freebsd-11.0-release/contrib/blacklist/etc/rc.d/
H A Dblacklistd29 # Find /etc/rc.d scripts with "chrootdir" rcorder(8) keyword,
33 for _lr in $(rcorder -k chrootdir /etc/rc.d/*); do
/freebsd-11.0-release/contrib/unbound/validator/
H A Dval_anchor.c1073 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.0-release/usr.sbin/bsdinstall/distextract/
H A Ddistextract.c64 char *chrootdir; local
136 chrootdir = getenv("BSDINSTALL_CHROOT");
137 if (chrootdir != NULL && chdir(chrootdir) != 0) {
140 chrootdir, strerror(errno));
/freebsd-11.0-release/usr.sbin/unbound/local-setup/
H A Dlocal-unbound-setup.sh41 chrootdir=""
81 chrootdir="${workdir}"
86 chrootdir=""
89 if [ -z "${chrootdir}" ] ; then
235 echo " chroot: ${chrootdir}"
/freebsd-11.0-release/contrib/unbound/util/
H A Dlog.c87 log_init(const char* filename, int use_syslog, const char* chrootdir) argument
137 if(chrootdir && chrootdir[0] && strncmp(filename, chrootdir,
138 strlen(chrootdir)) == 0)
139 filename += strlen(chrootdir);
H A Dconfig_file.c151 if(!(cfg->chrootdir = strdup(CHROOT_DIR))) goto error_exit;
258 free(cfg->chrootdir);
259 cfg->chrootdir = NULL;
414 else S_STR("chroot:", chrootdir)
691 else O_STR(opt, "chroot", chrootdir)
939 free(cfg->chrootdir);
1317 if(cfg->chrootdir && cfg->chrootdir[0] &&
1318 strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir))
[all...]
H A Dlog.h81 * @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 Dconfig_file.h205 /** chrootdir, if not "" or chroot will be done */
206 char* chrootdir; member in struct:config_file
H A Dconfigparser.y505 free(cfg_parser->cfg->chrootdir);
506 cfg_parser->cfg->chrootdir = $2;
/freebsd-11.0-release/contrib/unbound/iterator/
H A Diter_hints.c406 if(cfg->chrootdir && cfg->chrootdir[0] &&
407 strncmp(p->str, cfg->chrootdir,
408 strlen(cfg->chrootdir)) == 0)
409 f += strlen(cfg->chrootdir);
/freebsd-11.0-release/contrib/ntp/ntpd/
H A Dcmd_args.c85 chrootdir = OPT_ARG( JAILDIR );
H A Dntpd.c182 const char *chrootdir; /* directory to chroot to */ variable
1017 if (chrootdir ) {
1019 if (chdir(chrootdir)) {
1020 msyslog(LOG_ERR, "Cannot chdir() to `%s': %m", chrootdir);
1023 if (chroot(chrootdir)) {
1024 msyslog(LOG_ERR, "Cannot chroot() to `%s': %m", chrootdir);
/freebsd-11.0-release/libexec/ftpd/
H A Dftpd.c131 char *chrootdir; variable
1514 chrootdir = NULL;
1540 (chrootdir = strtok(residue, " \t")) != NULL) {
1541 if (chrootdir[0] != '/')
1542 asprintf(&chrootdir, "%s/%s", pw->pw_dir, chrootdir);
1544 chrootdir = strdup(chrootdir); /* make it permanent */
1545 if (chrootdir == NULL)
1553 if (chrootdir
[all...]
/freebsd-11.0-release/contrib/ntp/include/
H A Dntpd.h566 extern const char *chrootdir; /* directory to chroot() to */

Completed in 232 milliseconds