| /freebsd-12.1/contrib/unbound/daemon/ |
| H A D | unbound.c | 475 pidinchroot = need_pidfile && (!(cfg->chrootdir && cfg->chrootdir[0]) || in perform_setup() 476 (cfg->chrootdir && cfg->chrootdir[0] && in perform_setup() 478 strlen(cfg->chrootdir))==0)); in perform_setup() 535 if(cfg->chrootdir && cfg->chrootdir[0]) { in perform_setup() 536 if(chdir(cfg->chrootdir)) { in perform_setup() 541 if(chroot(cfg->chrootdir)) in perform_setup() 549 strlen(cfg->chrootdir)) == 0) in perform_setup() 555 strlen(cfg->chrootdir))==0) { in perform_setup() 572 if(cfg->chrootdir && cfg->chrootdir[0] && in perform_setup() 573 strncmp(dir, cfg->chrootdir, in perform_setup() [all …]
|
| H A D | remote.c | 2492 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); in do_log_reopen()
|
| /freebsd-12.1/contrib/unbound/smallapp/ |
| H A D | unbound-checkconf.c | 372 if(chrootdir && chrootdir[0]) in check_chroot_string() 494 if(cfg->chrootdir && cfg->chrootdir[0] && in morechecks() 495 cfg->chrootdir[strlen(cfg->chrootdir)-1] == '/') in morechecks() 497 cfg->chrootdir); in morechecks() 498 if(cfg->chrootdir && cfg->chrootdir[0] && in morechecks() 508 if( (cfg->chrootdir && cfg->chrootdir[0]) || in morechecks() 536 cfg->chrootdir, cfg); in morechecks() 541 cfg->chrootdir, cfg); in morechecks() 545 free(cfg->chrootdir); in morechecks() 546 cfg->chrootdir = NULL; in morechecks() [all …]
|
| /freebsd-12.1/contrib/unbound/validator/ |
| H A D | val_anchor.c | 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() 1088 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg() 1089 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in anchors_apply_cfg() 1090 nm += strlen(cfg->chrootdir); in anchors_apply_cfg() 1109 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg() 1110 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in anchors_apply_cfg() 1111 nm += strlen(cfg->chrootdir); in anchors_apply_cfg() 1143 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg() [all …]
|
| /freebsd-12.1/usr.sbin/unbound/setup/ |
| H A D | local-unbound-setup.sh | 46 chrootdir="" 102 chrootdir="${workdir}" 107 chrootdir="" 110 if [ -z "${chrootdir}" ] ; then 259 echo " chroot: ${chrootdir}"
|
| /freebsd-12.1/usr.sbin/bsdinstall/distextract/ |
| H A D | distextract.c | 66 char *chrootdir; in main() local 138 chrootdir = getenv("BSDINSTALL_CHROOT"); in main() 139 if (chrootdir != NULL && chdir(chrootdir) != 0) { in main() 142 chrootdir, strerror(errno)); in main()
|
| /freebsd-12.1/contrib/unbound/util/ |
| H A D | log.c | 86 log_init(const char* filename, int use_syslog, const char* chrootdir) in log_init() argument 142 if(chrootdir && chrootdir[0] && strncmp(filename, chrootdir, in log_init() 143 strlen(chrootdir)) == 0) in log_init() 144 filename += strlen(chrootdir); in log_init()
|
| H A D | config_file.c | 355 free(cfg->chrootdir); in config_create_forlib() 356 cfg->chrootdir = NULL; in config_create_forlib() 1395 free(cfg->chrootdir); in config_delete() 2037 if(cfg->chrootdir && cfg->chrootdir[0] && in strlen_after_chroot() 2038 strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir)) == 0) { in strlen_after_chroot() 2043 if(cfg->chrootdir && cfg->chrootdir[0]) { in strlen_after_chroot() 2060 if(cfg->chrootdir && cfg->chrootdir[0] && in strlen_after_chroot() 2084 if(cfg->chrootdir && cfg->chrootdir[0] && in fname_after_chroot() 2085 strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir)) == 0) { in fname_after_chroot() 2092 if(cfg->chrootdir && cfg->chrootdir[0]) { in fname_after_chroot() [all …]
|
| H A D | log.h | 83 void log_init(const char* filename, int use_syslog, const char* chrootdir);
|
| H A D | config_file.h | 279 char* chrootdir; member
|
| H A D | configparser.y | 1030 free(cfg_parser->cfg->chrootdir); 1031 cfg_parser->cfg->chrootdir = $2;
|
| /freebsd-12.1/contrib/unbound/iterator/ |
| H A D | iter_hints.c | 419 if(cfg->chrootdir && cfg->chrootdir[0] && in read_root_hints_list() 420 strncmp(p->str, cfg->chrootdir, in read_root_hints_list() 421 strlen(cfg->chrootdir)) == 0) in read_root_hints_list() 422 f += strlen(cfg->chrootdir); in read_root_hints_list()
|
| /freebsd-12.1/contrib/unbound/contrib/ |
| H A D | drop-tld.diff | 32 /** chrootdir, if not "" or chroot will be done */ 33 char* chrootdir;
|
| /freebsd-12.1/libexec/ftpd/ |
| H A D | ftpd.c | 130 char *chrootdir; variable 1519 chrootdir = NULL; in pass() 1549 (chrootdir = strtok(residue, " \t")) != NULL) { in pass() 1550 if (chrootdir[0] != '/') in pass() 1551 asprintf(&chrootdir, "%s/%s", pw->pw_dir, chrootdir); in pass() 1553 chrootdir = strdup(chrootdir); /* make it permanent */ in pass() 1554 if (chrootdir == NULL) in pass() 1562 if (chrootdir == NULL && in pass() 1563 (chrootdir = strdup(pw->pw_dir)) == NULL) in pass() 1569 if ((homedir = strstr(chrootdir, "/./")) != NULL) { in pass() [all …]
|
| /freebsd-12.1/contrib/blacklist/etc/rc.d/ |
| H A D | blacklistd | 33 for _lr in $(rcorder -k chrootdir /etc/rc.d/*); do
|
| /freebsd-12.1/contrib/ntp/ntpd/ |
| H A D | ntpd.c | 226 const char *chrootdir; /* directory to chroot to */ variable 1240 if (chrootdir ) { 1242 if (chdir(chrootdir)) { 1243 msyslog(LOG_ERR, "Cannot chdir() to `%s': %m", chrootdir); 1246 if (chroot(chrootdir)) { 1247 msyslog(LOG_ERR, "Cannot chroot() to `%s': %m", chrootdir);
|
| H A D | cmd_args.c | 85 chrootdir = OPT_ARG( JAILDIR ); in getCmdOpts()
|
| /freebsd-12.1/contrib/unbound/dnscrypt/ |
| H A D | dnscrypt.c | 563 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in dnsc_chroot_path() 564 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in dnsc_chroot_path() 565 nm += strlen(cfg->chrootdir); in dnsc_chroot_path()
|
| /freebsd-12.1/contrib/unbound/services/ |
| H A D | authzone.c | 1498 if(cfg->chrootdir && cfg->chrootdir[0] && in az_parse_file() 1499 strncmp(incfile, cfg->chrootdir, in az_parse_file() 1500 strlen(cfg->chrootdir)) == 0) in az_parse_file() 1501 incfile += strlen(cfg->chrootdir); in az_parse_file() 1570 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(zfilename, in auth_zone_read_zonefile() 1571 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in auth_zone_read_zonefile() 1572 zfilename += strlen(cfg->chrootdir); in auth_zone_read_zonefile() 4910 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(zfilename, in xfr_write_after_update() 4911 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in xfr_write_after_update() 4912 zfilename += strlen(cfg->chrootdir); in xfr_write_after_update()
|
| /freebsd-12.1/contrib/ntp/include/ |
| H A D | ntpd.h | 568 extern const char *chrootdir; /* directory to chroot() to */
|
| /freebsd-12.1/contrib/unbound/doc/ |
| H A D | README | 102 enabled, may be solved with a symbolic link to /dev/urandom from <chrootdir>.
|
| H A D | Changelog | 7505 - documented /dev/random symlink from chrootdir as FAQ entry. 7714 - check trailing / on chrootdir in checkconf. 7715 - check if root hints and anchor files are in chrootdir.
|