/linux-master/arch/parisc/include/uapi/asm/ |
H A D | fcntl.h | 20 #define O_PATH 020000000 macro
|
/linux-master/arch/alpha/include/uapi/asm/ |
H A D | fcntl.h | 35 #define O_PATH 040000000 macro
|
/linux-master/tools/testing/selftests/openat2/ |
H A D | openat2_test.c | 167 /* O_TMPFILE is incompatible with O_PATH and O_CREAT. */ 168 { .name = "incompatible flags (O_TMPFILE | O_PATH)", 169 .how.flags = O_TMPFILE | O_PATH | O_RDWR, .err = -EINVAL }, 173 /* O_PATH only permits certain other flags to be set ... */ 174 { .name = "compatible flags (O_PATH | O_CLOEXEC)", 175 .how.flags = O_PATH | O_CLOEXEC }, 176 { .name = "compatible flags (O_PATH | O_DIRECTORY)", 177 .how.flags = O_PATH | O_DIRECTORY }, 178 { .name = "compatible flags (O_PATH | O_NOFOLLOW)", 179 .how.flags = O_PATH | O_NOFOLLO [all...] |
H A D | rename_attack_test.c | 43 dfd = open(dirname, O_PATH | O_DIRECTORY); 92 .flags = O_PATH, 102 afd = openat(dfd, "a", O_PATH);
|
H A D | resolve_test.c | 59 dfd = open(dirname, O_PATH | O_DIRECTORY); 65 tmpfd = openat(dfd, "root", O_PATH | O_DIRECTORY); 454 /* Auto-set O_PATH. */ 456 test->how.flags |= O_PATH; 459 dfd = openat(rootfd, test->dir, O_PATH | O_DIRECTORY);
|
/linux-master/arch/sparc/include/uapi/asm/ |
H A D | fcntl.h | 38 #define O_PATH 0x1000000 macro
|
/linux-master/include/uapi/asm-generic/ |
H A D | fcntl.h | 84 #ifndef O_PATH 85 #define O_PATH 010000000 macro
|
/linux-master/tools/include/uapi/asm-generic/ |
H A D | fcntl.h | 84 #ifndef O_PATH 85 #define O_PATH 010000000 macro
|
/linux-master/include/linux/ |
H A D | fcntl.h | 13 O_NOATIME | O_CLOEXEC | O_PATH | __O_TMPFILE)
|
/linux-master/tools/testing/selftests/landlock/ |
H A 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); 205 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); 277 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC);
|
H A D | fs_test.c | 444 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); 447 ruleset_fd = open(dir_s1d1, O_PATH | O_DIRECTORY | O_CLOEXEC); 471 /* Tests without O_PATH. */ 486 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); 567 path_beneath_file.parent_fd = open(file1_s1d2, O_PATH | O_CLOEXEC); 572 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); 625 open(TMP_DIR, O_PATH | O_DIRECTORY | O_CLOEXEC); 652 path_beneath.parent_fd = open(file1_s1d2, O_PATH | O_CLOEXEC); 681 path_beneath.parent_fd = open(path, O_PATH | O_CLOEXEC); 786 path_beneath.parent_fd = open("/proc/self/ns/mnt", O_PATH | O_CLOEXE [all...] |
/linux-master/tools/testing/selftests/proc/ |
H A D | fd-001-lookup.c | 146 fd = open("/", O_PATH|O_DIRECTORY); 153 fd = open("/", O_PATH|O_DIRECTORY);
|
H A D | proc-pid-vm.c | 309 if (open("/", O_RDONLY|O_DIRECTORY|O_PATH) != 0) {
|
/linux-master/tools/perf/trace/beauty/ |
H A D | open_flags.c | 58 #ifdef O_PATH
|
/linux-master/tools/testing/selftests/fchmodat2/ |
H A D | fchmodat2_test.c | 28 dfd = open(dirname, O_PATH | O_DIRECTORY);
|
/linux-master/tools/perf/tests/ |
H A D | tests-scripts.c | 36 int fd = open(devel_dirs[i], O_PATH); 46 return open(path, O_PATH); 225 fd = openat(dir_fd, ent->d_name, O_PATH);
|
/linux-master/tools/testing/selftests/exec/ |
H A D | execveat.c | 9 #define _GNU_SOURCE /* to get O_PATH, AT_EMPTY_PATH */ 251 int dot_dfd_path = open_or_die(".", O_DIRECTORY|O_RDONLY|O_PATH); 254 int fd_path = open_or_die("execveat", O_RDONLY|O_PATH); 258 O_RDONLY|O_PATH); 262 O_RDONLY|O_PATH); 291 /* O_PATH fd */ 302 /* Mess with executable file that's already open with O_PATH */
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | bpf_obj_pinning.c | 59 /* create O_PATH fd for detached mount */ 148 pin_opts.path_fd = open("/sys/fs/bpf", O_PATH); 213 get_opts.path_fd = open("/sys/fs/bpf", O_PATH);
|
H A D | d_path.c | 68 indicatorfd = open("/tmp/", O_PATH);
|
/linux-master/tools/perf/util/ |
H A D | print-events.c | 66 int events_fd = open(events_path, O_PATH); 89 dir_fd = openat(events_fd, sys_dirent->d_name, O_PATH);
|
/linux-master/fs/ |
H A D | open.c | 917 if (unlikely(f->f_flags & O_PATH)) { 1188 #define O_PATH_FLAGS (O_DIRECTORY | O_NOFOLLOW | O_PATH | O_CLOEXEC) 1197 /* O_PATH beats everything else. */ 1198 if (how.flags & O_PATH) 1268 if (flags & O_PATH) { 1269 /* O_PATH only permits certain other flags to be set. */ 1297 op->intent = flags & O_PATH ? 0 : LOOKUP_OPEN; 1458 /* O_LARGEFILE is only allowed for non-O_PATH. */ 1459 if (!(tmp.flags & O_PATH) && force_o_largefile())
|
/linux-master/samples/landlock/ |
H A D | sandboxer.c | 119 path_beneath.parent_fd = open(path_list[i], O_PATH | O_CLOEXEC);
|
/linux-master/io_uring/ |
H A D | openclose.c | 62 if (!(open->how.flags & O_PATH) && force_o_largefile())
|
/linux-master/tools/testing/selftests/cgroup/ |
H A D | cgroup_util.c | 411 return open(dir, O_DIRECTORY | O_CLOEXEC | O_NOFOLLOW | O_PATH);
|
/linux-master/tools/testing/selftests/filesystems/statmount/ |
H A D | statmount_test.c | 163 orig_root = open("/", O_PATH);
|