Lines Matching refs:parent_fd
295 .parent_fd = -1, in TEST_F_FORK()
303 path_beneath.parent_fd = open(dir_s1d2, O_PATH | O_DIRECTORY | in TEST_F_FORK()
305 ASSERT_LE(0, path_beneath.parent_fd); in TEST_F_FORK()
329 ASSERT_EQ(0, close(path_beneath.parent_fd)); in TEST_F_FORK()
332 path_beneath.parent_fd = open(dir_s1d2, O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK()
333 ASSERT_LE(0, path_beneath.parent_fd); in TEST_F_FORK()
336 ASSERT_EQ(0, close(path_beneath.parent_fd)); in TEST_F_FORK()
339 path_beneath.parent_fd = ruleset_fd; in TEST_F_FORK()
345 path_beneath.parent_fd = open(dir_s1d2, O_PATH | O_DIRECTORY | in TEST_F_FORK()
347 ASSERT_LE(0, path_beneath.parent_fd); in TEST_F_FORK()
370 ASSERT_EQ(0, close(path_beneath.parent_fd)); in TEST_F_FORK()
413 path_beneath.parent_fd = open(file1_s1d2, O_PATH | O_CLOEXEC); in TEST_F_FORK()
414 ASSERT_LE(0, path_beneath.parent_fd); in TEST_F_FORK()
426 ASSERT_EQ(0, close(path_beneath.parent_fd)); in TEST_F_FORK()
437 path_beneath.parent_fd = open(path, O_PATH | O_CLOEXEC); in add_path_beneath()
438 ASSERT_LE(0, path_beneath.parent_fd) { in add_path_beneath()
447 ASSERT_EQ(0, close(path_beneath.parent_fd)); in add_path_beneath()
540 path_beneath.parent_fd = open("/proc/self/ns/mnt", O_PATH | O_CLOEXEC); in TEST_F_FORK()
541 ASSERT_LE(0, path_beneath.parent_fd); in TEST_F_FORK()
545 ASSERT_EQ(0, close(path_beneath.parent_fd)); in TEST_F_FORK()