Home
last modified time | relevance | path

Searched refs:setup_mount_destination (Results 1 – 4 of 4) sorted by relevance

/external/minijail/
Dsystem_unittest.cc254 TEST(setup_mount_destination, dest_exists) { in TEST() argument
257 EXPECT_EQ(0, setup_mount_destination(nullptr, kValidDir, 0, 0, false, in TEST()
259 EXPECT_EQ(0, setup_mount_destination(nullptr, "/proc", 0, 0, true, nullptr)); in TEST()
260 EXPECT_EQ(0, setup_mount_destination(nullptr, "/dev", 0, 0, false, nullptr)); in TEST()
264 TEST(setup_mount_destination, mount_flags) { in TEST() argument
274 EXPECT_EQ(0, setup_mount_destination("/proc", proc.c_str(), -1, -1, true, in TEST()
282 EXPECT_EQ(0, setup_mount_destination("/proc/self", proc_self.c_str(), -1, -1, in TEST()
289 TEST(setup_mount_destination, reject_relative_bind) { in TEST() argument
291 EXPECT_NE(0, setup_mount_destination("foo", kNoSuchDir, 0, 0, true, nullptr)); in TEST()
295 TEST(setup_mount_destination, create_pseudo_fs) { in TEST() argument
[all …]
Dsystem.h57 int setup_mount_destination(const char *source, const char *dest, uid_t uid,
Dsystem.c302 int setup_mount_destination(const char *source, const char *dest, uid_t uid, in setup_mount_destination() function
Dlibminijail.c1495 setup_mount_destination(m->src, dest, j->uid, j->gid, in mount_one()