Searched refs:chroot (Results 1 - 5 of 5) sorted by relevance

/linux-master/tools/testing/selftests/filesystems/statmount/
H A Dstatmount_test.c128 chroot(".");
175 ret = chroot(root_mntpoint);
177 ksft_exit_fail_msg("chroot to temp root %s: %s\n",
/linux-master/tools/testing/selftests/nolibc/
H A Dnolibc-test.c922 CASE_TEST(chroot_root); EXPECT_SYSZR(euid0, chroot("/")); break;
923 CASE_TEST(chroot_blah); EXPECT_SYSER(1, chroot("/proc/self/blah"), -1, ENOENT); break;
924 CASE_TEST(chroot_exe); EXPECT_SYSER(1, chroot(argv0), -1, ENOTDIR); break;
/linux-master/tools/include/nolibc/
H A Dsys.h182 * int chroot(const char *path);
192 int chroot(const char *path) function
/linux-master/fs/
H A Dopen.c600 SYSCALL_DEFINE1(chroot, const char __user *, filename)
/linux-master/tools/testing/selftests/landlock/
H A Dfs_test.c1797 * Common layer to check that chroot doesn't ignore it (i.e. a chroot
1856 /* Do chroot into dir_s1d2 (relative to dir_s2d2). */
1857 ASSERT_EQ(0, chroot("../../s1d1/s1d2"))
1859 TH_LOG("Failed to chroot: %s", strerror(errno));
1864 /* Do chroot into dir_s1d2. */
1865 ASSERT_EQ(0, chroot("."))
1867 TH_LOG("Failed to chroot: %s", strerror(errno));

Completed in 171 milliseconds