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

12

/linux-master/arch/alpha/include/uapi/asm/
H A Dfcntl.h35 #define O_PATH 040000000 macro
/linux-master/arch/sparc/include/uapi/asm/
H A Dfcntl.h38 #define O_PATH 0x1000000 macro
/linux-master/tools/perf/trace/beauty/
H A Dopen_flags.c58 #ifdef O_PATH
/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);
/linux-master/arch/parisc/include/uapi/asm/
H A Dfcntl.h20 #define O_PATH 020000000 macro
/linux-master/fs/
H A Dnamei.c3791 } else if (unlikely(file->f_flags & O_PATH)) {
H A Dnamespace.c2684 file = dentry_open(path, O_PATH, current_cred());
2732 file = dentry_open(&path, O_PATH, current_cred());
4037 /* Attach to an apparent O_PATH fd with a note that we need to unmount
4040 file = dentry_open(&newmount, O_PATH, fc->cred);
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/fs/smb/server/
H A Dsmb2pdu.c2070 oflags |= O_PATH;
/linux-master/include/linux/
H A Dfcntl.h13 O_NOATIME | O_CLOEXEC | O_PATH | __O_TMPFILE)
/linux-master/include/uapi/asm-generic/
H A Dfcntl.h84 #ifndef O_PATH
85 #define O_PATH 010000000 macro
/linux-master/io_uring/
H A Dopenclose.c62 if (!(open->how.flags & O_PATH) && force_o_largefile())
/linux-master/net/unix/
H A Daf_unix.c3085 f = dentry_open(&path, O_PATH, current_cred());
/linux-master/samples/landlock/
H A Dsandboxer.c119 path_beneath.parent_fd = open(path_list[i], O_PATH | O_CLOEXEC);
/linux-master/tools/include/uapi/asm-generic/
H A Dfcntl.h84 #ifndef O_PATH
85 #define O_PATH 010000000 macro
/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/perf/util/
H A Dpmu.c722 fd = perf_pmu__pathname_fd(dirfd, name, "cpumask", O_PATH);
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);
H A Dutil.c563 int err, fd = openat(dirfd, dirp, 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/testing/selftests/cgroup/
H A Dcgroup_util.c411 return open(dir, O_DIRECTORY | O_CLOEXEC | O_NOFOLLOW | 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/fchmodat2/
H A Dfchmodat2_test.c28 dfd = open(dirname, O_PATH | O_DIRECTORY);
/linux-master/tools/testing/selftests/filesystems/statmount/
H A Dstatmount_test.c163 orig_root = open("/", O_PATH);

Completed in 497 milliseconds

12