/linux-master/fs/9p/ |
H A D | vfs_inode_dotl.c | 132 { O_DIRECTORY, P9_DOTL_DIRECTORY },
|
/linux-master/fs/smb/client/ |
H A D | file.c | 252 if (flags & O_DIRECTORY) 382 *? by this client. Flags O_APPEND, O_DIRECT, O_DIRECTORY,
|
/linux-master/fs/ |
H A D | namei.c | 3356 open_flag |= O_DIRECTORY;
|
H A D | open.c | 1188 #define O_PATH_FLAGS (O_DIRECTORY | O_NOFOLLOW | O_PATH | O_CLOEXEC) 1249 * Block bugs where O_DIRECTORY | O_CREAT created regular files. 1250 * Note, that blocking O_DIRECTORY | O_CREAT here also protects 1251 * O_TMPFILE below which requires O_DIRECTORY being raised. 1253 if ((flags & (O_DIRECTORY | O_CREAT)) == (O_DIRECTORY | O_CREAT)) 1260 * to use O_TMPFILE on old kernels we enforce that O_DIRECTORY 1263 if (!(flags & O_DIRECTORY)) 1307 if (flags & O_DIRECTORY)
|
/linux-master/tools/testing/selftests/exec/ |
H A D | execveat.c | 246 int subdir_dfd = open_or_die("subdir", O_DIRECTORY|O_RDONLY); 248 O_DIRECTORY|O_RDONLY); 249 int dot_dfd = open_or_die(".", O_DIRECTORY|O_RDONLY); 250 int root_dfd = open_or_die("/", O_DIRECTORY|O_RDONLY); 251 int dot_dfd_path = open_or_die(".", O_DIRECTORY|O_RDONLY|O_PATH); 252 int dot_dfd_cloexec = open_or_die(".", O_DIRECTORY|O_RDONLY|O_CLOEXEC);
|
/linux-master/tools/lib/bpf/ |
H A D | libbpf.c | 4854 bpffs_fd = open(bpffs_path, O_DIRECTORY, O_RDWR);
|
/linux-master/fs/ceph/ |
H A D | file.c | 47 ceph_sys2wire(O_DIRECTORY); 378 flags = O_DIRECTORY; /* mds likes to know */
|
/linux-master/tools/perf/util/ |
H A D | pmu.c | 239 fd = perf_pmu__pathname_fd(dirfd, name, "format", O_DIRECTORY); 612 dir_fd = open(path, O_DIRECTORY); 2043 return open(path, O_DIRECTORY);
|
/linux-master/tools/testing/selftests/landlock/ |
H A D | net_test.c | 1551 path_beneath.parent_fd = open("/dev", O_PATH | 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); 455 ruleset_fd = open(dir_s1d1, O_DIRECTORY | O_CLOEXEC); 472 path_beneath.parent_fd = open(dir_s1d2, O_DIRECTORY | O_CLOEXEC); 486 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); 572 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); 625 open(TMP_DIR, O_PATH | O_DIRECTORY | O_CLOEXEC); 928 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); 934 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); 940 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); [all...] |
H A D | base_test.c | 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); 305 ASSERT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); 307 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); 317 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC); 320 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC);
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | profiler.inc.h | 19 #define O_DIRECTORY 00200000 macro 21 #define O_TMPFILE (__O_TMPFILE | O_DIRECTORY)
|
/linux-master/fs/nfs/ |
H A D | dir.c | 2069 if ((open_flags & O_DIRECTORY)) { 2072 * Hashed negative dentry with O_DIRECTORY: dentry was
|
/linux-master/tools/testing/selftests/nolibc/ |
H A D | nolibc-test.c | 676 ret = fd = open(dir, O_RDONLY | O_DIRECTORY, 0);
|
/linux-master/tools/testing/selftests/capabilities/ |
H A D | test_execve.c | 212 int ourpath_fd = open(our_path, O_RDONLY | O_DIRECTORY);
|
/linux-master/fs/nfsd/ |
H A D | nfs4recover.c | 544 nn->rec_file = filp_open(user_recovery_dirname, O_RDONLY | O_DIRECTORY, 0);
|
/linux-master/tools/perf/tests/ |
H A D | pmu.c | 173 fd = open(format, O_DIRECTORY);
|
/linux-master/tools/testing/selftests/pidfd/ |
H A D | pidfd_test.c | 69 pidfd = open("/proc/self", O_DIRECTORY | O_CLOEXEC); 116 pidfd = open(buf, O_DIRECTORY | O_CLOEXEC); 220 pidfd = open(buf, O_DIRECTORY | O_CLOEXEC); 356 pidfd = open("/proc/self", O_DIRECTORY | O_CLOEXEC);
|
/linux-master/tools/testing/selftests/openat2/ |
H A D | openat2_test.c | 176 { .name = "compatible flags (O_PATH | O_DIRECTORY)", 177 .how.flags = O_PATH | O_DIRECTORY },
|
/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/fchmodat2/ |
H A D | fchmodat2_test.c | 28 dfd = open(dirname, O_PATH | O_DIRECTORY);
|
/linux-master/tools/include/uapi/asm-generic/ |
H A D | fcntl.h | 53 #ifndef O_DIRECTORY 54 #define O_DIRECTORY 00200000 /* must be a directory */ macro 93 #define O_TMPFILE (__O_TMPFILE | O_DIRECTORY)
|
/linux-master/include/uapi/asm-generic/ |
H A D | fcntl.h | 53 #ifndef O_DIRECTORY 54 #define O_DIRECTORY 00200000 /* must be a directory */ macro 93 #define O_TMPFILE (__O_TMPFILE | O_DIRECTORY)
|
/linux-master/tools/testing/selftests/mount_setattr/ |
H A D | mount_setattr_test.c | 711 dfd = open("/mnt/A/AA/B", O_DIRECTORY | O_CLOEXEC); 987 fd = open("/mnt/A", O_DIRECTORY | O_CLOEXEC);
|
/linux-master/tools/testing/selftests/proc/ |
H A D | proc-pid-vm.c | 309 if (open("/", O_RDONLY|O_DIRECTORY|O_PATH) != 0) {
|