| /openbsd-src/regress/sys/kern/unveil-unmount/ |
| H A D | Makefile | 7 PROGS= unveil-unlink unveil-chroot unveil-perm unveil-chdir 37 REGRESS_TARGETS += run-chroot 38 run-chroot: 40 ${SUDO} ./unveil-chroot /mnt/regress-unveil / 43 REGRESS_TARGETS += run-chroot-dir 44 run-chroot-dir: 46 ${SUDO} ./unveil-chroot /mnt/regress-unveil/foo / 49 REGRESS_TARGETS += run-chroot-unveil-dir 50 run-chroot-unveil-dir: 52 ${SUDO} ./unveil-chroot /mnt/regress-unveil /foo [all …]
|
| H A D | unveil-chroot.c | 40 if (chroot(root) == -1) in main()
|
| /openbsd-src/regress/sys/kern/realpath-unmount/ |
| H A D | Makefile | 7 PROGS= realpath-chroot realpath-chdir 31 REGRESS_TARGETS += run-chroot 32 run-chroot: 34 ${SUDO} ./realpath-chroot /mnt/regress-realpath / 37 REGRESS_TARGETS += run-chroot-dir 38 run-chroot-dir: 40 ${SUDO} ./realpath-chroot /mnt/regress-realpath/foo / 43 REGRESS_TARGETS += run-chroot-subdir 44 run-chroot-subdir: 46 ${SUDO} ./realpath-chroot /mnt/regress-realpath /foo [all …]
|
| H A D | realpath-chroot.c | 37 if (chroot(root) == -1) in main()
|
| /openbsd-src/gnu/llvm/lldb/scripts/lldb-test-qemu/ |
| H A D | rootfs.sh | 85 sudo chroot $image_name.dir locale-gen en_US.UTF-8 87 sudo chroot $image_name.dir sed -i \ 90 sudo chroot $image_name.dir sed -i '$ a\nameserver 8.8.8.8' /etc/resolv.conf 92 sudo chroot $image_name.dir apt update 93 sudo chroot $image_name.dir apt -y install ssh bash-completion 94 sudo chroot $image_name.dir adduser --gecos "" $USER 95 sudo chroot $image_name.dir adduser $USER sudo
|
| /openbsd-src/regress/lib/libc/sys/ |
| H A D | t_chroot.c | 72 if (chroot(buf) != 0) in ATF_TC_BODY() 77 if (chroot("/root") != -1) in ATF_TC_BODY() 125 ATF_REQUIRE_ERRNO(ENAMETOOLONG, chroot(buf) == -1); in ATF_TC_BODY() 128 ATF_REQUIRE_ERRNO(EFAULT, chroot((void *)-1) == -1); in ATF_TC_BODY() 131 ATF_REQUIRE_ERRNO(ENOENT, chroot("/a/b/c/d/e/f/g/h/i/j") == -1); in ATF_TC_BODY() 157 if (chroot(buf) != -1) in ATF_TC_BODY()
|
| /openbsd-src/usr.sbin/nsd/ |
| H A D | nsd-checkconf.c | 190 const char* chr = opt->chroot; in quotepath() 428 SERV_GET_STR(chroot, o); in config_print_zone() 666 print_string_var("chroot:", opt->chroot); in config_test_print_server() 841 if(opt->chroot != 0) in additional_checks() 844 filename, opt->chroot); in additional_checks() 861 if (opt->chroot && opt->chroot[0]) { in additional_checks() 863 append_trailing_slash(&opt->chroot, opt->region); in additional_checks() 869 if (strncmp(opt->zonesdir, opt->chroot, strlen(opt->chroot)) != 0) { in additional_checks() 871 filename, opt->zonesdir, opt->chroot); in additional_checks() 874 if (!file_inside_chroot(opt->pidfile, opt->chroot)) { in additional_checks() [all …]
|
| H A D | configlexer.lex | 91 if (cfg_parser->chroot) { in config_start_include_glob() 92 int l = strlen(cfg_parser->chroot); /* chroot has trailing slash */ in config_start_include_glob() 93 if (strncmp(cfg_parser->chroot, filename, l) != 0) { in config_start_include_glob() 95 filename, cfg_parser->chroot); in config_start_include_glob() 222 chroot{COLON} { LEXOUT(("v(%s) ", yytext)); return VAR_CHROOT;}
|
| H A D | Makefile.bsd-wrapper | 15 --with-chroot=${CHROOTDIR} \
|
| /openbsd-src/usr.sbin/chroot/ |
| H A D | Makefile | 3 PROG= chroot 4 MAN= chroot.8
|
| H A D | chroot.c | 117 if (chroot(argv[0]) != 0 || chdir("/") != 0) in main()
|
| /openbsd-src/distrib/special/chroot/ |
| H A D | Makefile | 3 PROG= chroot 5 .PATH: ${.CURDIR}/../../../usr.sbin/chroot
|
| /openbsd-src/regress/lib/libc/asr/ |
| H A D | regress.subr | 31 chroot -u bin "${ROOTDIR}" ${bin0} $@ > ${out0} 33 chroot -u bin "${ROOTDIR}" ${bin1} $@ > ${out1}
|
| /openbsd-src/sys/arch/octeon/stand/rdboot/ |
| H A D | disk.c | 191 if (chroot("/mnt") == -1) { in disk_open() 206 (void)chroot("."); in disk_close()
|
| /openbsd-src/regress/usr.sbin/acme-client/ |
| H A D | httpd.conf | 1 chroot "${.OBJDIR}/www"
|
| /openbsd-src/sys/arch/powerpc64/stand/rdboot/ |
| H A D | disk.c | 206 if (chroot("/mnt") == -1) { in disk_open() 221 (void)chroot("."); in disk_close()
|
| /openbsd-src/usr.sbin/unbound/util/ |
| H A D | configlexer.lex | 83 if(cfg_parser->chroot && strncmp(filename, cfg_parser->chroot, in config_start_include() 84 strlen(cfg_parser->chroot)) == 0) { in config_start_include() 85 filename += strlen(cfg_parser->chroot); in config_start_include() 138 if(cfg_parser->chroot && strncmp(filename, cfg_parser->chroot, in config_start_include_glob() 139 strlen(cfg_parser->chroot)) == 0) { in config_start_include_glob() 140 filename += strlen(cfg_parser->chroot); in config_start_include_glob() 285 chroot{COLON} { YDVAR(1, VAR_CHROOT) }
|
| /openbsd-src/sbin/unwind/libunbound/util/ |
| H A D | configlexer.lex | 83 if(cfg_parser->chroot && strncmp(filename, cfg_parser->chroot, in config_start_include() 84 strlen(cfg_parser->chroot)) == 0) { in config_start_include() 85 filename += strlen(cfg_parser->chroot); in config_start_include() 138 if(cfg_parser->chroot && strncmp(filename, cfg_parser->chroot, in config_start_include_glob() 139 strlen(cfg_parser->chroot)) == 0) { in config_start_include_glob() 140 filename += strlen(cfg_parser->chroot); in config_start_include_glob() 285 chroot{COLON} { YDVAR(1, VAR_CHROOT) }
|
| /openbsd-src/distrib/special/ |
| H A D | Makefile | 4 arch bioctl cat chmod chroot cp date dd df dhcpleased disklabel \
|
| /openbsd-src/usr.sbin/unbound/daemon/ |
| H A D | unbound.c | 466 /** daemonize, drop user privileges and chroot if needed */ 491 /* read ssl keys while superuser and outside chroot */ in perform_setup() 567 /* write new pidfile (while still root, so can be outside chroot) */ in perform_setup() 594 /* box into the chroot */ in perform_setup() 598 fatal_exit("unable to chdir to chroot %s: %s", in perform_setup() 602 if(chroot(cfg->chrootdir)) in perform_setup() 603 fatal_exit("unable to chroot to %s: %s", in perform_setup() 606 fatal_exit("unable to chdir to / in chroot %s: %s", in perform_setup() 608 verbose(VERB_QUERY, "chroot to %s", cfg->chrootdir); in perform_setup() 613 /* adjust stored pidfile for chroot */ in perform_setup() [all...] |
| H A D | daemon.h | 80 /** the chroot dir in use, NULL if none */ member 81 char* chroot;
|
| /openbsd-src/usr.sbin/ |
| H A D | Makefile | 6 bgpctl bgpd bgplgd btrace chroot config cron crunchgen dev_mkdb \
|
| /openbsd-src/usr.sbin/mopd/mopd/ |
| H A D | mopd.c | 133 if (chroot(MOP_FILE_PATH) == -1) { in main()
|
| /openbsd-src/usr.sbin/smtpd/ |
| H A D | dispatcher.c | 149 if (chroot(PATH_CHROOT) == -1) in dispatcher()
|
| /openbsd-src/libexec/rpc.rstatd/ |
| H A D | rstatd.c | 76 if (chroot("/var/empty") == -1) { in main()
|