| /NextBSD/contrib/unbound/smallapp/ |
| HD | unbound-checkconf.c | 267 const char* chrootdir, struct config_file* cfg) in check_chroot_string() argument 274 if(chrootdir && chrootdir[0]) in check_chroot_string() 276 "chrootdir %s", desc, str, chrootdir); in check_chroot_string() 289 const char* chrootdir, struct config_file* cfg) in check_chroot_filelist() argument 293 check_chroot_string(desc, &p->str, chrootdir, cfg); in check_chroot_filelist() 300 const char* chrootdir, struct config_file* cfg) in check_chroot_filelist_wild() argument 314 check_chroot_string(desc, &p->str, chrootdir, cfg); in check_chroot_filelist_wild() 341 if(cfg->chrootdir && cfg->chrootdir[0] && in morechecks() 342 cfg->chrootdir[strlen(cfg->chrootdir)-1] == '/') in morechecks() 344 cfg->chrootdir); in morechecks() [all …]
|
| /NextBSD/contrib/unbound/daemon/ |
| HD | unbound.c | 462 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); in perform_setup() 495 !(cfg->chrootdir && cfg->chrootdir[0]) || in perform_setup() 496 (cfg->chrootdir && cfg->chrootdir[0] && in perform_setup() 497 strncmp(daemon->pidfile, cfg->chrootdir, in perform_setup() 498 strlen(cfg->chrootdir))==0)); in perform_setup() 542 if(cfg->chrootdir && cfg->chrootdir[0]) { in perform_setup() 543 if(chdir(cfg->chrootdir)) { in perform_setup() 545 cfg->chrootdir, strerror(errno)); in perform_setup() 547 verbose(VERB_QUERY, "chdir to %s", cfg->chrootdir); in perform_setup() 548 if(chroot(cfg->chrootdir)) in perform_setup() [all …]
|
| HD | remote.c | 2146 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); in do_log_reopen()
|
| /NextBSD/contrib/unbound/validator/ |
| HD | val_anchor.c | 1062 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg() 1063 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in anchors_apply_cfg() 1064 nm += strlen(cfg->chrootdir); in anchors_apply_cfg() 1075 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg() 1076 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in anchors_apply_cfg() 1077 nm += strlen(cfg->chrootdir); in anchors_apply_cfg() 1096 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg() 1097 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in anchors_apply_cfg() 1098 nm += strlen(cfg->chrootdir); in anchors_apply_cfg() 1130 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg() [all …]
|
| /NextBSD/usr.sbin/unbound/local-setup/ |
| HD | local-unbound-setup.sh | 41 chrootdir="" 81 chrootdir="${workdir}" 86 chrootdir="" 89 if [ -z "${chrootdir}" ] ; then 259 echo " chroot: ${chrootdir}"
|
| /NextBSD/contrib/unbound/util/ |
| HD | config_file.c | 149 if(!(cfg->chrootdir = strdup(CHROOT_DIR))) goto error_exit; in config_create() 255 free(cfg->chrootdir); in config_create_forlib() 256 cfg->chrootdir = NULL; in config_create_forlib() 409 else S_STR("chroot:", chrootdir) in config_set_option() 683 else O_STR(opt, "chroot", chrootdir) in config_get_option() 911 free(cfg->chrootdir); in config_delete() 1289 if(cfg->chrootdir && cfg->chrootdir[0] && in strlen_after_chroot() 1290 strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir)) == 0) { in strlen_after_chroot() 1295 if(cfg->chrootdir && cfg->chrootdir[0]) { in strlen_after_chroot() 1297 len += strlen(cfg->chrootdir); in strlen_after_chroot() [all …]
|
| HD | log.c | 87 log_init(const char* filename, int use_syslog, const char* chrootdir) in log_init() argument 137 if(chrootdir && chrootdir[0] && strncmp(filename, chrootdir, in log_init() 138 strlen(chrootdir)) == 0) in log_init() 139 filename += strlen(chrootdir); in log_init()
|
| HD | log.h | 83 void log_init(const char* filename, int use_syslog, const char* chrootdir);
|
| HD | config_file.h | 202 char* chrootdir; member
|
| HD | configparser.y | 483 free(cfg_parser->cfg->chrootdir); 484 cfg_parser->cfg->chrootdir = $2;
|
| /NextBSD/usr.sbin/bsdinstall/distextract/ |
| HD | distextract.c | 64 char *chrootdir; in main() local 136 chrootdir = getenv("BSDINSTALL_CHROOT"); in main() 137 if (chrootdir != NULL && chdir(chrootdir) != 0) { in main() 140 chrootdir, strerror(errno)); in main()
|
| /NextBSD/contrib/unbound/iterator/ |
| HD | iter_hints.c | 406 if(cfg->chrootdir && cfg->chrootdir[0] && in read_root_hints_list() 407 strncmp(p->str, cfg->chrootdir, in read_root_hints_list() 408 strlen(cfg->chrootdir)) == 0) in read_root_hints_list() 409 f += strlen(cfg->chrootdir); in read_root_hints_list()
|
| /NextBSD/contrib/ntp/ntpd/ |
| HD | ntpd.c | 182 const char *chrootdir; /* directory to chroot to */ variable 978 if (chrootdir ) { 980 if (chdir(chrootdir)) { 981 msyslog(LOG_ERR, "Cannot chdir() to `%s': %m", chrootdir); 984 if (chroot(chrootdir)) { 985 msyslog(LOG_ERR, "Cannot chroot() to `%s': %m", chrootdir);
|
| HD | cmd_args.c | 85 chrootdir = OPT_ARG( JAILDIR ); in getCmdOpts()
|
| /NextBSD/libexec/ftpd/ |
| HD | ftpd.c | 127 char *chrootdir; variable 1499 chrootdir = NULL; in pass() 1525 (chrootdir = strtok(residue, " \t")) != NULL) { in pass() 1526 if (chrootdir[0] != '/') in pass() 1527 asprintf(&chrootdir, "%s/%s", pw->pw_dir, chrootdir); in pass() 1529 chrootdir = strdup(chrootdir); /* make it permanent */ in pass() 1530 if (chrootdir == NULL) in pass() 1538 if (chrootdir == NULL && in pass() 1539 (chrootdir = strdup(pw->pw_dir)) == NULL) in pass() 1545 if ((homedir = strstr(chrootdir, "/./")) != NULL) { in pass() [all …]
|
| /NextBSD/contrib/ntp/include/ |
| HD | ntpd.h | 562 extern const char *chrootdir; /* directory to chroot() to */
|
| /NextBSD/contrib/unbound/doc/ |
| HD | README | 100 enabled, may be solved with a symbolic link to /dev/random from <chrootdir>.
|
| HD | Changelog | 4350 - documented /dev/random symlink from chrootdir as FAQ entry. 4559 - check trailing / on chrootdir in checkconf. 4560 - check if root hints and anchor files are in chrootdir.
|