Home
last modified time | relevance | path

Searched refs:O_DIRECTORY (Results 1 – 25 of 48) sorted by relevance

12

/linux/tools/testing/selftests/landlock/
H A Dbase_test.c183 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST()
206 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST()
278 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST()
306 ASSERT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in TEST()
308 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST()
318 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST()
321 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST()
341 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST()
354 EXPECT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in TEST()
368 EXPECT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in TEST()
[all …]
H A Dfs_test.c470 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK()
473 ruleset_fd = open(dir_s1d1, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK()
481 ruleset_fd = open(dir_s1d1, O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK()
498 path_beneath.parent_fd = open(dir_s1d2, O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK()
512 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK()
599 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK()
652 open(TMP_DIR, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK()
958 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
964 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
970 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
[all …]
/linux/tools/include/uapi/asm-generic/
H A Dfcntl.h
/linux/include/uapi/asm-generic/
H A Dfcntl.h53 #ifndef O_DIRECTORY
54 #define O_DIRECTORY 00200000 /* must be a directory */ macro
93 #define O_TMPFILE (__O_TMPFILE | O_DIRECTORY)
/linux/fs/ceph/
H A Dutil.c59 #ifdef O_DIRECTORY /* fixme */ in ceph_flags_to_mode()
60 if ((flags & O_DIRECTORY) == O_DIRECTORY) in ceph_flags_to_mode()
/linux/tools/perf/tests/
H A Dopenat-syscall-tp-fields.c19 #ifndef O_DIRECTORY
20 #define O_DIRECTORY 00200000 macro
40 int flags = O_RDONLY | O_DIRECTORY; in test__syscall_openat_tp_fields()
/linux/tools/testing/selftests/exec/
H A Dexecveat.c246 int subdir_dfd = open_or_die("subdir", O_DIRECTORY|O_RDONLY); in run_tests()
248 O_DIRECTORY|O_RDONLY); in run_tests()
249 int dot_dfd = open_or_die(".", O_DIRECTORY|O_RDONLY); in run_tests()
250 int root_dfd = open_or_die("/", O_DIRECTORY|O_RDONLY); in run_tests()
251 int dot_dfd_path = open_or_die(".", O_DIRECTORY|O_RDONLY|O_PATH); in run_tests()
252 int dot_dfd_cloexec = open_or_die(".", O_DIRECTORY|O_RDONLY|O_CLOEXEC); in run_tests()
/linux/tools/perf/trace/beauty/
H A Dopen_flags.c10 #ifndef O_DIRECTORY
11 #define O_DIRECTORY 00200000 macro
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_test.c69 pidfd = open("/proc/self", O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_simple_success()
116 pidfd = open(buf, O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_exited_fail()
220 pidfd = open(buf, O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_recycled_pid_fail()
356 pidfd = open("/proc/self", O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_syscall_support()
/linux/tools/testing/selftests/proc/
H A Dfd-001-lookup.c146 fd = open("/", O_PATH|O_DIRECTORY); in main()
153 fd = open("/", O_PATH|O_DIRECTORY); in main()
H A Dfd-003-kthread.c48 dir_fd = open(buf, O_RDONLY|O_DIRECTORY); in kernel_thread_fd()
90 fd = openat(dir_fd, "fd", O_RDONLY|O_DIRECTORY); in kernel_thread_fd()
H A Dfd-002-posix-eq.c32 fd0 = open("/", O_DIRECTORY|O_RDONLY); in main()
H A Dread.c109 fd = openat(dirfd(d), de->d_name, O_DIRECTORY|O_RDONLY); in f()
/linux/arch/m68k/include/uapi/asm/
H A Dfcntl.h5 #define O_DIRECTORY 040000 /* must be a directory */ macro
/linux/arch/powerpc/include/uapi/asm/
H A Dfcntl.h5 #define O_DIRECTORY 040000 /* must be a directory */ macro
/linux/arch/arm/include/uapi/asm/
H A Dfcntl.h5 #define O_DIRECTORY 040000 /* must be a directory */ macro
/linux/arch/arm64/include/uapi/asm/
H A Dfcntl.h23 #define O_DIRECTORY 040000 /* must be a directory */ macro
/linux/arch/parisc/include/uapi/asm/
H A Dfcntl.h17 #define O_DIRECTORY 000010000 /* must be a directory */ macro
/linux/arch/alpha/include/uapi/asm/
H A Dfcntl.h13 #define O_DIRECTORY 0100000 /* must be a directory */ macro
/linux/samples/bpf/
H A Dtest_cgrp2_sock2.c48 cg_fd = open(argv[1], O_DIRECTORY | O_RDONLY); in main()
/linux/include/linux/
H A Dfcntl.h12 FASYNC | O_DIRECT | O_LARGEFILE | O_DIRECTORY | O_NOFOLLOW | \
/linux/include/trace/misc/
H A Dfs.h37 { O_DIRECTORY, "O_DIRECTORY" }, \
/linux/samples/pidfd/
H A Dpidfd-metadata.c58 procfd = open(path, O_DIRECTORY | O_RDONLY | O_CLOEXEC); in pidfd_metadata_fd()
/linux/tools/testing/selftests/openat2/
H A Drename_attack_test.c43 dfd = open(dirname, O_PATH | O_DIRECTORY); in setup_testdir()
/linux/tools/testing/selftests/fchmodat2/
H A Dfchmodat2_test.c28 dfd = open(dirname, O_PATH | O_DIRECTORY); in setup_testdir()

12