/external/clang/test/Analysis/ |
chroot.c | 1 // RUN: %clang_cc1 -analyze -analyzer-checker=alpha.unix.Chroot -analyzer-store region -verify %s 3 extern int chroot(const char* path); 10 chroot("/usr/local"); // root changed. 11 foo(); // expected-warning {{No call of chdir("/") immediately after chroot}} 15 chroot("/usr/local"); // root changed. 21 chroot("/usr/local"); // root changed. 23 foo(); // expected-warning {{No call of chdir("/") immediately after chroot}}
|
/bionic/libc/arch-arm/syscalls/ |
chroot.S | 5 ENTRY(chroot) function 16 END(chroot)
|
/bionic/libc/arch-arm64/syscalls/ |
chroot.S | 5 ENTRY(chroot) function 14 END(chroot)
|
/bionic/libc/arch-mips/syscalls/ |
chroot.S | 5 ENTRY(chroot) function 19 END(chroot)
|
/bionic/libc/arch-x86_64/syscalls/ |
chroot.S | 5 ENTRY(chroot) function 15 END(chroot)
|
/external/toybox/toys/other/ |
chroot.c | 0 /* chroot.c - Run command in new root directory. 5 * TODO: The test for root is "==" so root can trivially escape a chroot by 6 * moving it below cwd, ala mkdir("sub"); chroot("sub"); chdir("../../../..") 10 USE_CHROOT(NEWTOY(chroot, "^<1", TOYFLAG_USR|TOYFLAG_SBIN)) 12 config CHROOT 13 bool "chroot" 16 usage: chroot NEWPATH [commandline...] 27 if (chdir(*toys.optargs) || chroot(".")) perror_exit_raw(*toys.optargs);
|
switch_root.c | 13 Use from PID 1 under initramfs to free initramfs, chroot to NEW_ROOT, 72 // point we are in the chroot, so a relative path is still OK. 89 // Fix the appearance of the mount table in the newroot chroot 96 if (chroot(".")) { 97 perror_msg("chroot"); 101 // Make sure cwd does not point outside of the chroot
|
/external/autotest/client/cros/ |
vpn_server.py | 161 chroot = self._chroot 162 chroot.add_root_directories(self.ROOT_DIRECTORIES) 163 chroot.add_config_templates(self.IPSEC_COMMON_CONFIGS) 164 chroot.add_config_templates(self.IPSEC_TYPED_CONFIGS[self._auth_type]) 165 chroot.add_config_values({ 176 chroot.add_startup_command('%s start' % self.IPSEC_COMMAND) 177 chroot.add_startup_command('%s -c /%s -C /tmp/l2tpd.control' % 181 chroot.startup() 186 chroot = self._chroot 187 chroot.run([self.IPSEC_COMMAND, 'stop'], ignore_status=True [all...] |
/bionic/libc/arch-mips64/syscalls/ |
chroot.S | 5 ENTRY(chroot) function 25 END(chroot)
|
/bionic/libc/arch-x86/syscalls/ |
chroot.S | 5 ENTRY(chroot) function 29 END(chroot)
|
/external/autotest/client/cros/cellular/ |
net_interface.py | 48 self.chroot = network_chroot.NetworkChroot(self.PEER_IFACE_NAME, 51 self.chroot.add_config_templates(self.NETWORK_CHROOT_CONFIG) 52 self.chroot.add_startup_command( 54 self.chroot.add_startup_command( 57 self.chroot.add_startup_command(self._dnsmasq_command) 59 self.chroot.add_startup_command(self._test_endpoint_command) 89 self.chroot.run(cmd) 122 self.chroot.startup() 133 self.chroot.shutdown()
|
/external/vboot_reference/tests/ |
test_using_qemu.sh | 13 # BUILD_RUN - path to build directory inside chroot 14 # HOME - home directory inside chroot 15 # QEMU_RUN - path to QEMU binary inside chroot 16 # SYSROOT - path to root for target platform, outside chroot 27 sudo chroot ${SYSROOT} ${QEMU_RUN} -drop-ld-preload \
|
/external/libcap/progs/ |
quicktest.sh | 145 # Verify we can chroot 146 pass_capsh --chroot=$(/bin/pwd) 147 pass_capsh --chroot=$(/bin/pwd) == 148 fail_capsh --chroot=$(/bin/pwd) -- -c "echo oops"
|
/external/v8/build/ |
install-chroot.sh | 7 # This script installs Debian-derived distributions in a chroot environment. 24 echo "-g group,... groups that can use the chroot unauthenticated" 26 echo "-l List all installed chroot environments" 29 echo "-c always copy 64bit helper binaries to 32bit chroot" 98 for i in /var/lib/chroot/*; do 140 echo "Debian or Ubuntu distribution in a chroot environment. You will" 160 # Create directory for chroot 161 sudo mkdir -p /var/lib/chroot 163 # Find chroot environments that can be installed with debootstrap 168 echo "The following targets are available to be installed in a chroot: [all...] |
/external/autotest/contrib/ |
servo-stat | 19 PYTHON=$(readlink -f $REPO/chroot/usr/bin/python2.7) 20 HDCTOOLS=$(readlink -f $REPO/chroot/usr/lib/python2.7/site-packages/servo)
|
/external/e2fsprogs/debugfs/ |
ro_debug_cmds.ct | 31 change_root_directory, chroot;
|
debug_cmds.ct | 38 change_root_directory, chroot;
|
/external/ipsec-tools/src/racoon/ |
localconf.h | 74 char *chroot; /* chroot path */ member in struct:localconf
|
/external/minijail/ |
minijail0.c | 103 " -b: binds <src> to <dest> in chroot. Multiple " 105 " -k: mount <src> to <dest> in chroot. Multiple " 108 " -C <dir>: chroot to <dir>\n" 142 " -t: mount tmpfs at /tmp inside chroot\n" 165 int pivot_root = 0, chroot = 0; local 215 fprintf(stderr, "Could not set chroot because " 220 fprintf(stderr, "Could not set chroot.\n"); 223 chroot = 1; 229 if (chroot) { 318 /* Only allow bind mounts when entering a chroot or using pivot_root. * [all...] |
/frameworks/native/cmds/installd/ |
Android.mk | 83 # OTA chroot tool 118 # Let this depend on otapreopt, the chroot tool and the slot script, so we just have to mention one
|
otapreopt_chroot.cpp | 60 // be passed on to otapreopt in the chroot. 127 if (chroot(".") != 0) { 128 PLOG(ERROR) << "Failed to chroot";
|
/external/libchrome/sandbox/linux/services/ |
credentials_unittest.cc | 155 // We want the chroot to never have a subdirectory. A subdirectory 156 // could allow a chroot escape. 171 // are in a chroot. 206 PCHECK(chroot("/") == 0); 211 PCHECK(chroot("/") == 0); 214 PCHECK(chroot("/") == -1 && errno == EPERM);
|
/external/toybox/scripts/ |
runtest.sh | 145 # Set up a chroot environment and run commands within it. 158 echo -n "Setup chroot" 170 chroot tmpdir4chroot /test.sh
|
/external/autotest/utils/ |
unittest_suite.py | 90 # Unitests that only work in chroot. The names are for module name, thus no 206 """Check if the process is running inside the chroot. 208 @return: True if the process is running inside the chroot, False otherwise. 237 chroot = is_inside_chroot() 240 if not chroot and module_names[-1] in REQUIRES_CHROOT: 242 print ('Test %s requires to run in chroot, skipped.' %
|
/development/ndk/platforms/android-12/include/ |
unistd.h | 119 extern int chroot(const char *);
|