Searched refs:O_PATH (Results 1 - 25 of 32) sorted by relevance

12

/linux-master/arch/parisc/include/uapi/asm/
H A Dfcntl.h20 #define O_PATH 020000000 macro
/linux-master/arch/alpha/include/uapi/asm/
H A Dfcntl.h35 #define O_PATH 040000000 macro
/linux-master/tools/testing/selftests/openat2/
H A Dopenat2_test.c167 /* 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 Drename_attack_test.c43 dfd = open(dirname, O_PATH | O_DIRECTORY);
92 .flags = O_PATH,
102 afd = openat(dfd, "a", O_PATH);
H A Dresolve_test.c59 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 Dfcntl.h38 #define O_PATH 0x1000000 macro
/linux-master/include/uapi/asm-generic/
H A Dfcntl.h84 #ifndef O_PATH
85 #define O_PATH 010000000 macro
/linux-master/tools/include/uapi/asm-generic/
H A Dfcntl.h84 #ifndef O_PATH
85 #define O_PATH 010000000 macro
/linux-master/include/linux/
H A Dfcntl.h13 O_NOATIME | O_CLOEXEC | O_PATH | __O_TMPFILE)
/linux-master/tools/testing/selftests/landlock/
H A Dbase_test.c20 #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 Dfs_test.c444 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 Dfd-001-lookup.c146 fd = open("/", O_PATH|O_DIRECTORY);
153 fd = open("/", O_PATH|O_DIRECTORY);
H A Dproc-pid-vm.c309 if (open("/", O_RDONLY|O_DIRECTORY|O_PATH) != 0) {
/linux-master/tools/perf/trace/beauty/
H A Dopen_flags.c58 #ifdef O_PATH
/linux-master/tools/testing/selftests/fchmodat2/
H A Dfchmodat2_test.c28 dfd = open(dirname, O_PATH | O_DIRECTORY);
/linux-master/tools/perf/tests/
H A Dtests-scripts.c36 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 Dexecveat.c9 #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 Dbpf_obj_pinning.c59 /* 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 Dd_path.c68 indicatorfd = open("/tmp/", O_PATH);
/linux-master/tools/perf/util/
H A Dprint-events.c66 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 Dopen.c917 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 Dsandboxer.c119 path_beneath.parent_fd = open(path_list[i], O_PATH | O_CLOEXEC);
/linux-master/io_uring/
H A Dopenclose.c62 if (!(open->how.flags & O_PATH) && force_o_largefile())
/linux-master/tools/testing/selftests/cgroup/
H A Dcgroup_util.c411 return open(dir, O_DIRECTORY | O_CLOEXEC | O_NOFOLLOW | O_PATH);
/linux-master/tools/testing/selftests/filesystems/statmount/
H A Dstatmount_test.c163 orig_root = open("/", O_PATH);

Completed in 196 milliseconds

12