| /linux/tools/testing/selftests/filesystems/overlayfs/ |
| H A D | set_layers_via_fds.c | 75 layer_fds[0] = openat(fd_tmpfs, "w", O_DIRECTORY); in TEST_F() 78 layer_fds[1] = openat(fd_tmpfs, "u", O_DIRECTORY); in TEST_F() 81 layer_fds[2] = openat(fd_tmpfs, "l1", O_DIRECTORY); in TEST_F() 84 layer_fds[3] = openat(fd_tmpfs, "l2", O_DIRECTORY); in TEST_F() 87 layer_fds[4] = openat(fd_tmpfs, "l3", O_DIRECTORY); in TEST_F() 90 layer_fds[5] = openat(fd_tmpfs, "l4", O_DIRECTORY); in TEST_F() 93 layer_fds[6] = openat(fd_tmpfs, "d1", O_DIRECTORY); in TEST_F() 96 layer_fds[7] = openat(fd_tmpfs, "d2", O_DIRECTORY); in TEST_F() 99 layer_fds[8] = openat(fd_tmpfs, "d3", O_DIRECTORY); in TEST_F() 187 layer_fds[i] = openat(fd_tmpfs, path, O_DIRECTORY); in TEST_F() [all...] |
| /linux/tools/testing/selftests/landlock/ |
| H A D | base_test.c | 227 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST() 250 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST() 306 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST() 498 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); 526 ASSERT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); 528 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); 538 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC); 541 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); 561 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC); 574 EXPECT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXE [all...] |
| H A D | fs_test.c | 493 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 496 ruleset_fd = open(dir_s1d1, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 504 ruleset_fd = open(dir_s1d1, O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 521 path_beneath.parent_fd = open(dir_s1d2, O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 535 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 623 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 676 open(TMP_DIR, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 974 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK() 980 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK() 986 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK() [all...] |
| /linux/tools/include/uapi/asm-generic/ |
| H A D | fcntl.h | |
| /linux/fs/ceph/ |
| H A D | util.c | 59 #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 D | openat-syscall-tp-fields.c | 19 #ifndef O_DIRECTORY 20 #define O_DIRECTORY 00200000 macro 39 int flags = O_RDONLY | O_DIRECTORY; in test__syscall_openat_tp_fields()
|
| H A D | hwmon_pmu.c | 91 test_dirfd = open(dir, O_PATH|O_DIRECTORY); in test_pmu_get() 103 hwmon_dirfd = open(dir, O_PATH|O_DIRECTORY); in test_pmu_get()
|
| /linux/tools/testing/selftests/exec/ |
| H A D | execveat.c | 271 int subdir_dfd = open_or_die("subdir", O_DIRECTORY|O_RDONLY); in run_tests() 273 O_DIRECTORY|O_RDONLY); in run_tests() 274 int dot_dfd = open_or_die(".", O_DIRECTORY|O_RDONLY); in run_tests() 275 int root_dfd = open_or_die("/", O_DIRECTORY|O_RDONLY); in run_tests() 276 int dot_dfd_path = open_or_die(".", O_DIRECTORY|O_RDONLY|O_PATH); in run_tests() 277 int dot_dfd_cloexec = open_or_die(".", O_DIRECTORY|O_RDONLY|O_CLOEXEC); in run_tests()
|
| /linux/tools/perf/trace/beauty/ |
| H A D | open_flags.c | 12 #ifndef O_DIRECTORY 13 #define O_DIRECTORY 00200000 11 #define O_DIRECTORY global() macro
|
| /linux/tools/testing/selftests/proc/ |
| H A D | fd-001-lookup.c | 146 fd = open("/", O_PATH|O_DIRECTORY); in main() 153 fd = open("/", O_PATH|O_DIRECTORY); in main()
|
| H A D | fd-003-kthread.c | 48 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 D | fd-002-posix-eq.c | 32 fd0 = open("/", O_DIRECTORY|O_RDONLY); in main()
|
| H A D | read.c | 109 fd = openat(dirfd(d), de->d_name, O_DIRECTORY|O_RDONLY); in f()
|
| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd_test.c | 104 pidfd = open("/proc/self", O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_simple_success() 168 pidfd = open(buf, O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_exited_fail() 272 pidfd = open(buf, O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_recycled_pid_fail() 408 pidfd = open("/proc/self", O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_syscall_support()
|
| /linux/rust/kernel/fs/ |
| H A D | file.rs | 43 pub const O_DIRECTORY: u32 = bindings::O_DIRECTORY; constant
|
| /linux/tools/perf/util/ |
| H A D | tp_pmu.c | 41 io_dir__init(&evt_dir, open(evt_path, O_CLOEXEC | O_DIRECTORY | O_RDONLY)); in tp_pmu__for_each_tp_event() 74 io_dir__init(&events_dir, open(events_dir_path, O_CLOEXEC | O_DIRECTORY | O_RDONLY)); in tp_pmu__for_each_tp_sys()
|
| H A D | hwmon_pmu.c | 249 io_dir__init(&dir, open(pmu->hwmon_dir, O_CLOEXEC | O_DIRECTORY | O_RDONLY)); in hwmon_pmu__read_events() 421 int dir = open(hwm->hwmon_dir, O_CLOEXEC | O_DIRECTORY | O_RDONLY); in hwmon_pmu__describe_items() 720 io_dir__init(&class_hwmon_dir, open(buf, O_CLOEXEC | O_DIRECTORY | O_RDONLY)); in perf_pmus__read_hwmon_pmus() 735 hwmon_dir = open(buf, O_DIRECTORY); in perf_pmus__read_hwmon_pmus() 771 int dir = open(hwm->hwmon_dir, O_CLOEXEC | O_DIRECTORY | O_RDONLY); in evsel__hwmon_pmu_open()
|
| H A D | drm_pmu.c | 406 fd_dir_fd = openat(proc_dir, buf, O_DIRECTORY); in for_each_drm_fdinfo_in_dir() 452 fdinfo_dir_fd = openat(proc_dir, buf, O_DIRECTORY); in for_each_drm_fdinfo_in_dir() 645 int proc_dir = open(procfs__mountpoint(), O_DIRECTORY); in drm_pmu__read_for_pid()
|
| /linux/tools/perf/ui/browsers/ |
| H A D | scripts.c | 181 scripts_dir_fd = open(scripts_path, O_DIRECTORY); in find_scripts() 212 lang_dir_fd = openat(scripts_dir_fd, lang_dirent->d_name, O_DIRECTORY); in find_scripts()
|
| /linux/samples/pidfd/ |
| H A D | pidfd-metadata.c | 58 procfd = open(path, O_DIRECTORY | O_RDONLY | O_CLOEXEC); in pidfd_metadata_fd()
|
| /linux/tools/testing/selftests/fchmodat2/ |
| H A D | fchmodat2_test.c | 33 dfd = open(dirname, O_PATH | O_DIRECTORY); in setup_testdir()
|
| /linux/tools/testing/selftests/openat2/ |
| H A D | rename_attack_test.c | |
| H A D | resolve_test.c | |
| /linux/include/trace/misc/ |
| H A D | fs.h | 37 { O_DIRECTORY, "O_DIRECTORY" }, \
|
| /linux/tools/testing/selftests/filesystems/ |
| H A D | file_stressor.c | 142 self->fd_proc_pid[i] = open(path, O_DIRECTORY | O_RDONLY | O_CLOEXEC);
|