| /linux/tools/testing/selftests/openat2/ |
| H A D | openat2_test.c | |
| H A D | rename_attack_test.c | |
| H A D | resolve_test.c | |
| /linux/tools/perf/tests/ |
| H A D | tests-scripts.c | 44 fd = open(devel_dirs[i], O_PATH); in shell_tests__dir_fd() 68 fd = open(path, O_PATH); in shell_tests__dir_fd() 72 fd = open(path, O_PATH); in shell_tests__dir_fd() 80 return open(path, O_PATH); in shell_test__description() 273 fd = openat(dir_fd, ent->d_name, O_PATH); in create_script_test_suites()
|
| 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/landlock/ |
| H A D | base_test.c | 21 #ifndef O_PATH 22 #define O_PATH 010000000 macro 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); 639 root_fd = open("/", O_PATH | O_CLOEXEC);
|
| 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() 520 /* Tests without O_PATH. */ in TEST_F_FORK() 535 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 618 path_beneath_file.parent_fd = open(file1_s1d2, O_PATH | 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() 703 path_beneath.parent_fd = open(file1_s1d2, O_PATH | O_CLOEXEC); in TEST_F_FORK() 732 path_beneath.parent_fd = open(path, O_PATH | O_CLOEXEC); in add_path_beneath() 841 path_beneath.parent_fd = open("/proc/self/ns/mnt", O_PATH | O_CLOEXE in TEST_F_FORK() [all...] |
| /linux/tools/include/uapi/asm-generic/ |
| H A D | fcntl.h | |
| /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 | proc-pid-vm.c | 314 if (open("/", O_RDONLY|O_DIRECTORY|O_PATH) != 0) { in main()
|
| /linux/tools/testing/selftests/exec/ |
| H A D | execveat.c | 276 int dot_dfd_path = open_or_die(".", O_DIRECTORY|O_RDONLY|O_PATH); in run_tests() 279 int fd_path = open_or_die("execveat", O_RDONLY|O_PATH); in run_tests() 283 O_RDONLY|O_PATH); in run_tests() 287 O_RDONLY|O_PATH); in run_tests()
|
| /linux/rust/kernel/fs/ |
| H A D | file.rs | 73 pub const O_PATH: u32 = bindings::O_PATH; constant
|
| /linux/tools/testing/selftests/filesystems/overlayfs/ |
| H A D | set_layers_via_fds.c | 550 layer_fds[i] = openat(fd_tmpfs, path, O_DIRECTORY | O_PATH); in TEST_F() 555 fd_work = openat(fd_tmpfs, "w", O_DIRECTORY | O_PATH); in TEST_F() 559 fd_upper = openat(fd_tmpfs, "u", O_DIRECTORY | O_PATH); in TEST_F() 563 fd_lower = openat(fd_tmpfs, "l501", O_DIRECTORY | O_PATH); in TEST_F() 630 layer_fds[0] = openat(fd_tmp, "upper", O_CLOEXEC | O_DIRECTORY | O_PATH); in TEST_F() 633 layer_fds[1] = openat(fd_tmp, "work", O_CLOEXEC | O_DIRECTORY | O_PATH); in TEST_F()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | bpf_obj_pinning.c | 148 pin_opts.path_fd = open("/sys/fs/bpf", O_PATH); in validate_pin() 213 get_opts.path_fd = open("/sys/fs/bpf", O_PATH); in validate_get()
|
| H A D | d_path.c | 76 indicatorfd = open("/tmp/", O_PATH); in trigger_fstat_events()
|
| /linux/tools/perf/trace/beauty/ |
| H A D | open_flags.c | 60 #ifdef O_PATH in open__scnprintf_flags()
|
| /linux/tools/testing/selftests/fchmodat2/ |
| H A D | fchmodat2_test.c | 33 dfd = open(dirname, O_PATH | O_DIRECTORY); in setup_testdir()
|
| /linux/samples/landlock/ |
| H A D | sandboxer.c | 159 path_beneath.parent_fd = open(path_list[i], O_PATH | O_CLOEXEC); in populate_ruleset_fs()
|
| /linux/tools/perf/util/ |
| H A D | util.c | 541 int err, fd = openat(dirfd, dirp, O_PATH); in scandirat()
|
| /linux/io_uring/ |
| H A D | openclose.c | 65 if (!(open->how.flags & O_PATH) && force_o_largefile()) in __io_openat_prep()
|
| /linux/tools/testing/selftests/cgroup/ |
| H A D | cgroup_util.c | |
| /linux/tools/testing/selftests/cgroup/lib/ |
| H A D | cgroup_util.c | 497 return open(dir, O_DIRECTORY | O_CLOEXEC | O_NOFOLLOW | O_PATH);
|
| /linux/tools/testing/selftests/filesystems/mount-notify/ |
| H A D | mount-notify_test.c | 61 self->orig_root = open("/", O_PATH | O_CLOEXEC); in FIXTURE_SETUP()
|
| H A D | mount-notify_test_ns.c | 70 self->orig_root = open("/", O_PATH | O_CLOEXEC); in FIXTURE_SETUP()
|
| /linux/tools/testing/selftests/filesystems/statmount/ |
| H A D | statmount_test.c | 135 orig_root = open("/", O_PATH); in setup_namespace() 671 fd = open(subdir, O_PATH); in main() 800 fd = open(subdir, O_PATH);
|