| /freebsd-13.1/contrib/unbound/daemon/ |
| H A D | unbound.c | 534 pidinchroot = need_pidfile && (!(cfg->chrootdir && cfg->chrootdir[0]) || in perform_setup() 535 (cfg->chrootdir && cfg->chrootdir[0] && in perform_setup() 537 strlen(cfg->chrootdir))==0)); in perform_setup() 597 if(cfg->chrootdir && cfg->chrootdir[0]) { in perform_setup() 598 if(chdir(cfg->chrootdir)) { in perform_setup() 603 if(chroot(cfg->chrootdir)) in perform_setup() 611 strlen(cfg->chrootdir)) == 0) in perform_setup() 617 strlen(cfg->chrootdir))==0) { in perform_setup() 634 if(cfg->chrootdir && cfg->chrootdir[0] && in perform_setup() 635 strncmp(dir, cfg->chrootdir, in perform_setup() [all …]
|
| H A D | remote.c | 2531 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); in do_log_reopen()
|
| /freebsd-13.1/contrib/unbound/smallapp/ |
| H A D | unbound-checkconf.c | 508 if(chrootdir && chrootdir[0]) in check_chroot_string() 632 if(cfg->chrootdir && cfg->chrootdir[0] && in morechecks() 633 cfg->chrootdir[strlen(cfg->chrootdir)-1] == '/') in morechecks() 635 cfg->chrootdir); in morechecks() 636 if(cfg->chrootdir && cfg->chrootdir[0] && in morechecks() 646 if( (cfg->chrootdir && cfg->chrootdir[0]) || in morechecks() 677 cfg->chrootdir, cfg); in morechecks() 681 free(cfg->chrootdir); in morechecks() 682 cfg->chrootdir = NULL; in morechecks() 859 cfg->chrootdir, cfg); in morechecks() [all …]
|
| /freebsd-13.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-13.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-13.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 | 389 free(cfg->chrootdir); in config_create_forlib() 390 cfg->chrootdir = NULL; in config_create_forlib() 1533 free(cfg->chrootdir); in config_delete() 2255 if(cfg->chrootdir && cfg->chrootdir[0] && in strlen_after_chroot() 2256 strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir)) == 0) { in strlen_after_chroot() 2261 if(cfg->chrootdir && cfg->chrootdir[0]) { in strlen_after_chroot() 2278 if(cfg->chrootdir && cfg->chrootdir[0] && in strlen_after_chroot() 2302 if(cfg->chrootdir && cfg->chrootdir[0] && in fname_after_chroot() 2303 strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir)) == 0) { in fname_after_chroot() 2310 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 | 310 char* chrootdir; member
|
| H A D | configparser.y | 1201 free(cfg_parser->cfg->chrootdir); 1202 cfg_parser->cfg->chrootdir = $2;
|
| /freebsd-13.1/contrib/unbound/validator/ |
| H A D | val_anchor.c | 1078 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg() 1079 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in anchors_apply_cfg() 1080 nm += strlen(cfg->chrootdir); in anchors_apply_cfg() 1091 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg() 1092 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in anchors_apply_cfg() 1093 nm += strlen(cfg->chrootdir); in anchors_apply_cfg() 1115 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in anchors_apply_cfg() 1116 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in anchors_apply_cfg() 1117 nm += strlen(cfg->chrootdir); in anchors_apply_cfg()
|
| /freebsd-13.1/contrib/unbound/iterator/ |
| H A D | iter_hints.c | 427 if(cfg->chrootdir && cfg->chrootdir[0] && in read_root_hints_list() 428 strncmp(p->str, cfg->chrootdir, in read_root_hints_list() 429 strlen(cfg->chrootdir)) == 0) in read_root_hints_list() 430 f += strlen(cfg->chrootdir); in read_root_hints_list()
|
| /freebsd-13.1/contrib/unbound/dnstap/ |
| H A D | dnstap.c | 138 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(p, in dt_create() 139 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in dt_create() 140 p += strlen(cfg->chrootdir); in dt_create()
|
| H A D | dtstream.c | 357 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm, in dt_io_thread_apply_cfg() 358 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in dt_io_thread_apply_cfg() 359 nm += strlen(cfg->chrootdir); in dt_io_thread_apply_cfg()
|
| /freebsd-13.1/contrib/unbound/contrib/ |
| H A D | drop-tld.diff | 32 /** chrootdir, if not "" or chroot will be done */ 33 char* chrootdir;
|
| /freebsd-13.1/contrib/blacklist/etc/rc.d/ |
| H A D | blacklistd | 33 for _lr in $(rcorder -k chrootdir /etc/rc.d/*); do
|
| /freebsd-13.1/contrib/ntp/ntpd/ |
| H A D | ntpd.c | 215 const char *chrootdir; /* directory to chroot to */ variable 1217 if (chrootdir ) { 1219 if (chdir(chrootdir)) { 1220 msyslog(LOG_ERR, "Cannot chdir() to `%s': %m", chrootdir); 1223 if (chroot(chrootdir)) { 1224 msyslog(LOG_ERR, "Cannot chroot() to `%s': %m", chrootdir);
|
| H A D | cmd_args.c | 85 chrootdir = OPT_ARG( JAILDIR ); in getCmdOpts()
|
| /freebsd-13.1/libexec/ftpd/ |
| H A D | ftpd.c | 130 char *chrootdir; variable 1505 chrootdir = NULL; in pass() 1536 (chrootdir = strtok(residue, " \t")) != NULL) { in pass() 1537 if (chrootdir[0] != '/') in pass() 1538 asprintf(&chrootdir, "%s/%s", pw->pw_dir, chrootdir); in pass() 1540 chrootdir = strdup(chrootdir); /* make it permanent */ in pass() 1541 if (chrootdir == NULL) in pass() 1549 if (chrootdir == NULL && in pass() 1550 (chrootdir = strdup(pw->pw_dir)) == NULL) in pass() 1556 if ((homedir = strstr(chrootdir, "/./")) != NULL) { in pass() [all …]
|
| /freebsd-13.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-13.1/contrib/ntp/include/ |
| H A D | ntpd.h | 568 extern const char *chrootdir; /* directory to chroot() to */
|
| /freebsd-13.1/contrib/unbound/services/ |
| H A D | authzone.c | 1504 if(cfg->chrootdir && cfg->chrootdir[0] && in az_parse_file() 1505 strncmp(incfile, cfg->chrootdir, in az_parse_file() 1506 strlen(cfg->chrootdir)) == 0) in az_parse_file() 1507 incfile += strlen(cfg->chrootdir); in az_parse_file() 1576 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(zfilename, in auth_zone_read_zonefile() 1577 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in auth_zone_read_zonefile() 1578 zfilename += strlen(cfg->chrootdir); in auth_zone_read_zonefile() 5136 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(zfilename, in xfr_write_after_update() 5137 cfg->chrootdir, strlen(cfg->chrootdir)) == 0) in xfr_write_after_update() 5138 zfilename += strlen(cfg->chrootdir); in xfr_write_after_update()
|
| /freebsd-13.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 | 8922 - documented /dev/random symlink from chrootdir as FAQ entry. 9131 - check trailing / on chrootdir in checkconf. 9132 - check if root hints and anchor files are in chrootdir.
|