/linux-5.19.10/tools/testing/selftests/openat2/ |
D | openat2_test.c | 169 .how.flags = O_TMPFILE | O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags() 175 .how.flags = O_PATH | O_CLOEXEC }, in test_openat2_flags() 177 .how.flags = O_PATH | O_DIRECTORY }, in test_openat2_flags() 179 .how.flags = O_PATH | O_NOFOLLOW }, in test_openat2_flags() 182 .how.flags = O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags() 184 .how.flags = O_PATH | O_CREAT, .err = -EINVAL }, in test_openat2_flags() 186 .how.flags = O_PATH | O_EXCL, .err = -EINVAL }, in test_openat2_flags() 188 .how.flags = O_PATH | O_NOCTTY, .err = -EINVAL }, in test_openat2_flags() 190 .how.flags = O_PATH | O_DIRECT, .err = -EINVAL }, in test_openat2_flags() 192 .how.flags = O_PATH | O_LARGEFILE, .err = -EINVAL }, in test_openat2_flags() [all …]
|
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()
|
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()
|
/linux-5.19.10/tools/testing/selftests/landlock/ |
D | base_test.c | 20 #ifndef O_PATH 21 #define O_PATH 010000000 macro 182 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST() 205 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST() 294 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST()
|
D | fs_test.c | 322 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 325 ruleset_fd = open(dir_s1d1, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 364 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 444 path_beneath_file.parent_fd = open(file1_s1d2, O_PATH | O_CLOEXEC); in TEST_F_FORK() 449 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 497 path_beneath.parent_fd = open(path, O_PATH | O_CLOEXEC); in add_path_beneath() 612 path_beneath.parent_fd = open("/proc/self/ns/mnt", O_PATH | O_CLOEXEC); in TEST_F_FORK() 667 ASSERT_EQ(0, test_open("/", O_RDONLY | O_PATH)); in TEST_F_FORK() 669 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY | O_PATH)); in TEST_F_FORK() 671 ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY | O_PATH)); in TEST_F_FORK() [all …]
|
/linux-5.19.10/tools/include/uapi/asm-generic/ |
D | fcntl.h | 84 #ifndef O_PATH 85 #define O_PATH 010000000 macro
|
/linux-5.19.10/include/uapi/asm-generic/ |
D | fcntl.h | 84 #ifndef O_PATH 85 #define O_PATH 010000000 macro
|
/linux-5.19.10/tools/testing/selftests/exec/ |
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()
|
/linux-5.19.10/tools/testing/selftests/proc/ |
D | fd-001-lookup.c | 146 fd = open("/", O_PATH|O_DIRECTORY); in main() 153 fd = open("/", O_PATH|O_DIRECTORY); in main()
|
D | proc-pid-vm.c | 271 if (open("/", O_RDONLY|O_DIRECTORY|O_PATH) != 0) { in main()
|
/linux-5.19.10/arch/parisc/include/uapi/asm/ |
D | fcntl.h | 20 #define O_PATH 020000000 macro
|
/linux-5.19.10/arch/alpha/include/uapi/asm/ |
D | fcntl.h | 35 #define O_PATH 040000000 macro
|
/linux-5.19.10/arch/sparc/include/uapi/asm/ |
D | fcntl.h | 38 #define O_PATH 0x1000000 macro
|
/linux-5.19.10/include/linux/ |
D | fcntl.h | 13 O_NOATIME | O_CLOEXEC | O_PATH | __O_TMPFILE)
|
/linux-5.19.10/tools/perf/trace/beauty/ |
D | open_flags.c | 58 #ifdef O_PATH in open__scnprintf_flags()
|
/linux-5.19.10/fs/ |
D | open.c | 807 if (unlikely(f->f_flags & O_PATH)) { in do_dentry_open() 1068 #define O_PATH_FLAGS (O_DIRECTORY | O_NOFOLLOW | O_PATH | O_CLOEXEC) 1078 if (how.flags & O_PATH) in build_open_how() 1140 if (flags & O_PATH) { in build_open_flags() 1169 op->intent = flags & O_PATH ? 0 : LOOKUP_OPEN; in build_open_flags() 1332 if (!(tmp.flags & O_PATH) && force_o_largefile()) in SYSCALL_DEFINE4()
|
D | namespace.c | 2496 file = dentry_open(path, O_PATH, current_cred()); in open_detached_copy() 2544 file = dentry_open(&path, O_PATH, current_cred()); in SYSCALL_DEFINE3() 3734 file = dentry_open(&newmount, O_PATH, fc->cred); in SYSCALL_DEFINE3()
|
D | namei.c | 3649 } else if (unlikely(file->f_flags & O_PATH)) { in path_openat()
|
/linux-5.19.10/samples/landlock/ |
D | sandboxer.c | 114 path_beneath.parent_fd = open(path_list[i], O_PATH | O_CLOEXEC); in populate_ruleset()
|
/linux-5.19.10/tools/testing/selftests/bpf/prog_tests/ |
D | d_path.c | 57 indicatorfd = open("/tmp/", O_PATH); in trigger_fstat_events()
|
/linux-5.19.10/tools/testing/selftests/cgroup/ |
D | cgroup_util.c | 409 return open(dir, O_DIRECTORY | O_CLOEXEC | O_NOFOLLOW | O_PATH); in dirfd_open_opath()
|
/linux-5.19.10/Documentation/userspace-api/ |
D | landlock.rst | 100 ``O_PATH`` flag and fill the &struct landlock_path_beneath_attr with this file 113 path_beneath.parent_fd = open("/usr", O_PATH | O_CLOEXEC);
|
/linux-5.19.10/net/unix/ |
D | af_unix.c | 3054 f = dentry_open(&path, O_PATH, current_cred()); in unix_open_file()
|
/linux-5.19.10/fs/ksmbd/ |
D | smb2pdu.c | 1984 oflags |= O_PATH; in smb2_create_open_flags()
|
/linux-5.19.10/io_uring/ |
D | io_uring.c | 5137 if (!(req->open.how.flags & O_PATH) && force_o_largefile()) in __io_openat_prep()
|