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

/freebsd-10.1-release/contrib/unbound/smallapp/
H A Dunbound-checkconf.c261 const char* chrootdir, struct config_file* cfg)
268 if(chrootdir && chrootdir[0])
270 "chrootdir %s", desc, str, chrootdir);
283 const char* chrootdir, struct config_file* cfg)
287 check_chroot_string(desc, &p->str, chrootdir, cfg);
294 const char* chrootdir, struct config_file* cfg)
308 check_chroot_string(desc, &p->str, chrootdir, cfg);
333 if(cfg->chrootdir
260 check_chroot_string(const char* desc, char** ss, const char* chrootdir, struct config_file* cfg) argument
282 check_chroot_filelist(const char* desc, struct config_strlist* list, const char* chrootdir, struct config_file* cfg) argument
293 check_chroot_filelist_wild(const char* desc, struct config_strlist* list, const char* chrootdir, struct config_file* cfg) argument
[all...]
/freebsd-10.1-release/contrib/unbound/daemon/
H A Dunbound.c455 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir);
487 /* true if pidfile is inside chrootdir, or nochroot */
488 !(cfg->chrootdir && cfg->chrootdir[0]) ||
489 (cfg->chrootdir && cfg->chrootdir[0] &&
490 strncmp(daemon->pidfile, cfg->chrootdir,
491 strlen(cfg->chrootdir))==0));
504 if(!(cfg->chrootdir && cfg->chrootdir[
[all...]
H A Dremote.c1906 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir);
/freebsd-10.1-release/usr.sbin/unbound/local-setup/
H A Dlocal-unbound-setup.sh39 chrootdir=""
77 chrootdir="${workdir}"
82 chrootdir=""
85 if [ -z "${chrootdir}" ] ; then
233 echo " chroot: ${chrootdir}"
/freebsd-10.1-release/contrib/unbound/validator/
H A Dval_anchor.c1056 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm,
1057 cfg->chrootdir, strlen(cfg->chrootdir)) == 0)
1058 nm += strlen(cfg->chrootdir);
1069 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm,
1070 cfg->chrootdir, strlen(cfg->chrootdir)) == 0)
1071 nm += strlen(cfg->chrootdir);
[all...]
/freebsd-10.1-release/contrib/unbound/util/
H A Dlog.c83 log_init(const char* filename, int use_syslog, const char* chrootdir) argument
125 if(chrootdir && chrootdir[0] && strncmp(filename, chrootdir,
126 strlen(chrootdir)) == 0)
127 filename += strlen(chrootdir);
H A Dconfig_file.c135 if(!(cfg->chrootdir = strdup(CHROOT_DIR))) goto error_exit;
225 free(cfg->chrootdir);
226 cfg->chrootdir = NULL;
372 else S_STR("chroot:", chrootdir)
628 else O_STR(opt, "chroot", chrootdir)
845 free(cfg->chrootdir);
1197 if(cfg->chrootdir && cfg->chrootdir[0] &&
1198 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.h191 /** chrootdir, if not "" or chroot will be done */
192 char* chrootdir; member in struct:config_file
H A Dconfigparser.y458 free(cfg_parser->cfg->chrootdir);
459 cfg_parser->cfg->chrootdir = $2;
/freebsd-10.1-release/contrib/unbound/iterator/
H A Diter_hints.c404 if(cfg->chrootdir && cfg->chrootdir[0] &&
405 strncmp(p->str, cfg->chrootdir,
406 strlen(cfg->chrootdir)) == 0)
407 f += strlen(cfg->chrootdir);
/freebsd-10.1-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
1015 if (chrootdir ) {
1017 if (chdir(chrootdir)) {
1018 msyslog(LOG_ERR, "Cannot chdir() to `%s': %m", chrootdir);
1021 if (chroot(chrootdir)) {
1022 msyslog(LOG_ERR, "Cannot chroot() to `%s': %m", chrootdir);
/freebsd-10.1-release/libexec/ftpd/
H A Dftpd.c127 char *chrootdir; variable
1499 chrootdir = NULL;
1525 (chrootdir = strtok(residue, " \t")) != NULL) {
1526 if (chrootdir[0] != '/')
1527 asprintf(&chrootdir, "%s/%s", pw->pw_dir, chrootdir);
1529 chrootdir = strdup(chrootdir); /* make it permanent */
1530 if (chrootdir == NULL)
1538 if (chrootdir
[all...]
/freebsd-10.1-release/contrib/ntp/include/
H A Dntpd.h563 extern const char *chrootdir; /* directory to chroot() to */

Completed in 188 milliseconds