/openbmc/linux/tools/testing/selftests/openat2/ |
H A D | openat2_test.c | 170 .how.flags = O_TMPFILE | O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags() 176 .how.flags = O_PATH | O_CLOEXEC }, in test_openat2_flags() 178 .how.flags = O_PATH | O_DIRECTORY }, in test_openat2_flags() 180 .how.flags = O_PATH | O_NOFOLLOW }, in test_openat2_flags() 183 .how.flags = O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags() 185 .how.flags = O_PATH | O_CREAT, .err = -EINVAL }, in test_openat2_flags() 187 .how.flags = O_PATH | O_EXCL, .err = -EINVAL }, in test_openat2_flags() 189 .how.flags = O_PATH | O_NOCTTY, .err = -EINVAL }, in test_openat2_flags() 191 .how.flags = O_PATH | O_DIRECT, .err = -EINVAL }, in test_openat2_flags() 193 .how.flags = O_PATH | O_LARGEFILE, .err = -EINVAL }, in test_openat2_flags() [all …]
|
H A D | rename_attack_test.c | 43 dfd = open(dirname, O_PATH | O_DIRECTORY); in setup_testdir() 92 .flags = O_PATH, in test_rename_attack() 102 afd = openat(dfd, "a", O_PATH); in test_rename_attack()
|
H A D | resolve_test.c | 59 dfd = open(dirname, O_PATH | O_DIRECTORY); in setup_testdir() 65 tmpfd = openat(dfd, "root", O_PATH | O_DIRECTORY); in setup_testdir() 456 test->how.flags |= O_PATH; in test_openat2_opath_tests() 459 dfd = openat(rootfd, test->dir, O_PATH | O_DIRECTORY); in test_openat2_opath_tests()
|
/openbmc/linux/tools/testing/selftests/landlock/ |
H A D | base_test.c | 21 #ifndef O_PATH 22 #define O_PATH 010000000 macro 183 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()
|
H A D | fs_test.c | 442 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 445 ruleset_fd = open(dir_s1d1, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 484 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 565 path_beneath_file.parent_fd = open(file1_s1d2, O_PATH | O_CLOEXEC); in TEST_F_FORK() 570 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 618 path_beneath.parent_fd = open(path, O_PATH | O_CLOEXEC); in add_path_beneath() 733 path_beneath.parent_fd = open("/proc/self/ns/mnt", O_PATH | O_CLOEXEC); in TEST_F_FORK() 788 ASSERT_EQ(0, test_open("/", O_RDONLY | O_PATH)); in TEST_F_FORK() 790 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY | O_PATH)); in TEST_F_FORK() 792 ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY | O_PATH)); in TEST_F_FORK() [all …]
|
/openbmc/linux/tools/include/uapi/asm-generic/ |
H A D | fcntl.h | 84 #ifndef O_PATH 85 #define O_PATH 010000000 macro
|
/openbmc/linux/include/uapi/asm-generic/ |
H A D | fcntl.h | 84 #ifndef O_PATH 85 #define O_PATH 010000000 macro
|
/openbmc/linux/tools/testing/selftests/exec/ |
H A D | execveat.c | 235 int dot_dfd_path = open_or_die(".", O_DIRECTORY|O_RDONLY|O_PATH); in run_tests() 238 int fd_path = open_or_die("execveat", O_RDONLY|O_PATH); in run_tests() 242 O_RDONLY|O_PATH); in run_tests() 246 O_RDONLY|O_PATH); in run_tests()
|
/openbmc/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 | 309 if (open("/", O_RDONLY|O_DIRECTORY|O_PATH) != 0) { in main()
|
/openbmc/qemu/hw/9pfs/ |
H A D | 9p-util.h | 18 #ifdef O_PATH 19 #define O_PATH_9P_UTIL O_PATH
|
/openbmc/linux/arch/parisc/include/uapi/asm/ |
H A D | fcntl.h | 20 #define O_PATH 020000000 macro
|
/openbmc/linux/arch/alpha/include/uapi/asm/ |
H A D | fcntl.h | 35 #define O_PATH 040000000 macro
|
/openbmc/linux/arch/sparc/include/uapi/asm/ |
H A D | fcntl.h | 38 #define O_PATH 0x1000000 macro
|
/openbmc/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 | 68 indicatorfd = open("/tmp/", O_PATH); in trigger_fstat_events()
|
/openbmc/linux/include/linux/ |
H A D | fcntl.h | 13 O_NOATIME | O_CLOEXEC | O_PATH | __O_TMPFILE)
|
/openbmc/linux/tools/perf/trace/beauty/ |
H A D | open_flags.c | 58 #ifdef O_PATH in open__scnprintf_flags()
|
/openbmc/linux/tools/testing/selftests/fchmodat2/ |
H A D | fchmodat2_test.c | 28 dfd = open(dirname, O_PATH | O_DIRECTORY); in setup_testdir()
|
/openbmc/linux/tools/perf/util/ |
H A D | print-events.c | 65 int events_fd = open(events_path, O_PATH); in print_tracepoint_events() 89 dir_fd = openat(events_fd, sys_dirent->d_name, O_PATH); in print_tracepoint_events()
|
/openbmc/linux/fs/ |
H A D | open.c | 886 if (unlikely(f->f_flags & O_PATH)) { in do_dentry_open() 1201 #define O_PATH_FLAGS (O_DIRECTORY | O_NOFOLLOW | O_PATH | O_CLOEXEC) 1211 if (how.flags & O_PATH) in build_open_how() 1281 if (flags & O_PATH) { in build_open_flags() 1310 op->intent = flags & O_PATH ? 0 : LOOKUP_OPEN; in build_open_flags() 1474 if (!(tmp.flags & O_PATH) && force_o_largefile()) in SYSCALL_DEFINE4()
|
/openbmc/linux/samples/landlock/ |
H A D | sandboxer.c | 122 path_beneath.parent_fd = open(path_list[i], O_PATH | O_CLOEXEC); in populate_ruleset()
|
/openbmc/linux/io_uring/ |
H A D | openclose.c | 57 if (!(open->how.flags & O_PATH) && force_o_largefile()) in __io_openat_prep()
|
/openbmc/linux/tools/testing/selftests/cgroup/ |
H A D | cgroup_util.c | 413 return open(dir, O_DIRECTORY | O_CLOEXEC | O_NOFOLLOW | O_PATH); in dirfd_open_opath()
|
/openbmc/linux/Documentation/userspace-api/ |
H A D | landlock.rst | 113 ``O_PATH`` flag and fill the &struct landlock_path_beneath_attr with this file 126 path_beneath.parent_fd = open("/usr", O_PATH | O_CLOEXEC);
|