/linux-master/tools/testing/selftests/mount_setattr/ |
H A D | mount_setattr_test.c | 148 #define OPEN_TREE_CLOEXEC O_CLOEXEC 176 fd = open(path, O_WRONLY | O_CLOEXEC | O_NOCTTY | O_NOFOLLOW); 425 fd = creat(NOSYMFOLLOW_TARGET, O_RDWR | O_CLOEXEC); 632 fd = open("/mnt/A/AA/B/b", O_RDWR | O_CLOEXEC | O_CREAT | O_EXCL, 0777); 681 fd = open("/mnt/A/AA/B/b", O_RDWR | O_CLOEXEC | O_CREAT | O_EXCL, 0777); 711 dfd = open("/mnt/A/AA/B", O_DIRECTORY | O_CLOEXEC); 987 fd = open("/mnt/A", O_DIRECTORY | O_CLOEXEC); 1115 fd = open("/dev/null", O_RDONLY | O_CLOEXEC); 1144 attr.userns_fd = open("/proc/1/ns/user", O_RDONLY | O_CLOEXEC); 1226 ret = open(path, O_RDONLY | O_CLOEXEC); [all...] |
/linux-master/include/uapi/linux/ |
H A D | mount.h | 65 #define OPEN_TREE_CLOEXEC O_CLOEXEC /* Close the file on execve() */
|
/linux-master/tools/testing/selftests/mm/ |
H A D | uffd-common.h | 40 #define UFFD_FLAGS (O_CLOEXEC | O_NONBLOCK | UFFD_USER_MODE_ONLY)
|
H A D | hugepage-mremap.c | 69 uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
|
/linux-master/drivers/gpu/drm/i915/gem/selftests/ |
H A D | mock_dmabuf.c | 120 exp_info.flags = O_CLOEXEC;
|
/linux-master/tools/perf/trace/beauty/include/uapi/linux/ |
H A D | mount.h | 65 #define OPEN_TREE_CLOEXEC O_CLOEXEC /* Close the file on execve() */
|
/linux-master/tools/testing/selftests/filesystems/ |
H A D | devpts_pts.c | 105 master = open(ptmx, O_RDWR | O_NOCTTY | O_CLOEXEC); 123 slave = ioctl(master, TIOCGPTPEER, O_RDWR | O_NOCTTY | O_CLOEXEC);
|
/linux-master/tools/testing/selftests/pidfd/ |
H A D | pidfd_wait.c | 55 pidfd = open("/proc/self", O_DIRECTORY | O_RDONLY | O_CLOEXEC); 63 pidfd = open("/dev/null", O_RDONLY | O_CLOEXEC);
|
/linux-master/include/linux/ |
H A D | userfaultfd_k.h | 33 #define UFFD_CLOEXEC O_CLOEXEC 36 #define UFFD_SHARED_FCNTL_FLAGS (O_CLOEXEC | O_NONBLOCK)
|
/linux-master/tools/testing/selftests/kvm/lib/ |
H A D | userfaultfd_util.c | 137 uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK); 158 ret = pipe2((int *) &pipes, O_CLOEXEC | O_NONBLOCK);
|
/linux-master/tools/testing/selftests/exec/ |
H A D | execveat.c | 252 int dot_dfd_cloexec = open_or_die(".", O_DIRECTORY|O_RDONLY|O_CLOEXEC); 264 int fd_cloexec = open_or_die("execveat", O_RDONLY|O_CLOEXEC); 265 int fd_script_cloexec = open_or_die("script", O_RDONLY|O_CLOEXEC); 289 /* O_CLOEXEC fd + no path */ 347 /* O_CLOEXEC fd fails for a script (as script file inaccessible) */
|
/linux-master/tools/testing/selftests/powerpc/tm/ |
H A D | tm-signal-pagefault.c | 148 uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
|
/linux-master/arch/um/os-Linux/ |
H A D | mem.c | 132 fd = open(tempdir, O_CLOEXEC | O_RDWR | O_EXCL | O_TMPFILE, 0700);
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | bpf_mod_race.c | 69 uffd = sys_userfaultfd(O_CLOEXEC);
|
/linux-master/samples/acrn/ |
H A D | vm-sample.c | 61 hsm_fd = open("/dev/acrn_hsm", O_RDWR|O_CLOEXEC);
|
/linux-master/tools/testing/selftests/openat2/ |
H A D | openat2_test.c | 174 { .name = "compatible flags (O_PATH | O_CLOEXEC)", 175 .how.flags = O_PATH | O_CLOEXEC }, 287 /* O_CLOEXEC isn't shown in F_GETFL. */ 289 fdflags |= O_CLOEXEC;
|
/linux-master/io_uring/ |
H A D | openclose.c | 75 if (open->file_slot && (open->how.flags & O_CLOEXEC)) 284 /* default to O_CLOEXEC, disable if IORING_FIXED_FD_NO_CLOEXEC is set */ 286 ifi->o_flags = O_CLOEXEC;
|
/linux-master/fs/ |
H A D | signalfd.c | 256 BUILD_BUG_ON(SFD_CLOEXEC != O_CLOEXEC); 274 ufd = get_unused_fd_flags(flags & O_CLOEXEC);
|
H A D | fsopen.c | 148 return fscontext_create_fd(fc, flags & FSOPEN_CLOEXEC ? O_CLOEXEC : 0); 202 return fscontext_create_fd(fc, flags & FSPICK_CLOEXEC ? O_CLOEXEC : 0);
|
/linux-master/tools/testing/selftests/landlock/ |
H A D | fs_test.c | 409 fd = openat(dirfd, path, flags | O_CLOEXEC); 463 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); 466 ruleset_fd = open(dir_s1d1, O_PATH | O_DIRECTORY | O_CLOEXEC); 474 ruleset_fd = open(dir_s1d1, O_DIRECTORY | O_CLOEXEC); 491 path_beneath.parent_fd = open(dir_s1d2, O_DIRECTORY | O_CLOEXEC); 505 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); 587 path_beneath_file.parent_fd = open(file1_s1d2, O_PATH | O_CLOEXEC); 592 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); 645 open(TMP_DIR, O_PATH | O_DIRECTORY | O_CLOEXEC); 672 path_beneath.parent_fd = open(file1_s1d2, O_PATH | O_CLOEXEC); [all...] |
/linux-master/tools/testing/selftests/core/ |
H A D | close_range_test.c | 43 fd = open("/dev/null", O_RDONLY | O_CLOEXEC); 116 fd = open("/dev/null", O_RDONLY | O_CLOEXEC); 205 fd = open("/dev/null", O_RDONLY | O_CLOEXEC);
|
/linux-master/drivers/media/mc/ |
H A D | mc-request.c | 306 fd = get_unused_fd_flags(O_CLOEXEC); 312 filp = anon_inode_getfile("request", &request_fops, NULL, O_CLOEXEC);
|
/linux-master/tools/lib/bpf/ |
H A D | zip.c | 205 fd = open(path, O_RDONLY | O_CLOEXEC);
|
/linux-master/net/handshake/ |
H A D | netlink.c | 113 fd = get_unused_fd_flags(O_CLOEXEC);
|
/linux-master/kernel/bpf/ |
H A D | token.c | 212 fd = get_unused_fd_flags(O_CLOEXEC);
|