| /linux/tools/testing/selftests/wireguard/qemu/ |
| H A D | init.c | 66 fd = open("/dev/random", O_WRONLY); in seed_rng() 114 fd = open("/proc/sys/kernel/printk", O_WRONLY); in enable_logging() 120 fd = open("/proc/sys/debug/exception-trace", O_WRONLY); in enable_logging() 195 fd = open(success_dev, O_WRONLY); in launch_tests() 238 fd = open("/sys/kernel/debug/kmemleak", O_WRONLY); in clear_leaks() 250 fd = open("/sys/kernel/debug/kmemleak", O_WRONLY); in check_leaks()
|
| /linux/tools/testing/selftests/namespaces/ |
| H A D | file_handle_test.c | 481 int uid_map_fd = open("/proc/self/uid_map", O_WRONLY); in TEST() 482 int gid_map_fd = open("/proc/self/gid_map", O_WRONLY); in TEST() 483 int setgroups_fd = open("/proc/self/setgroups", O_WRONLY); in TEST() 610 int uid_map_fd = open("/proc/self/uid_map", O_WRONLY); in TEST() 611 int gid_map_fd = open("/proc/self/gid_map", O_WRONLY); in TEST() 612 int setgroups_fd = open("/proc/self/setgroups", O_WRONLY); in TEST() 739 int uid_map_fd = open("/proc/self/uid_map", O_WRONLY); in TEST() 740 int gid_map_fd = open("/proc/self/gid_map", O_WRONLY); in TEST() 741 int setgroups_fd = open("/proc/self/setgroups", O_WRONLY); in TEST() 868 int uid_map_fd = open("/proc/self/uid_map", O_WRONLY); in TEST() [all …]
|
| /linux/fs/lockd/ |
| H A D | svcsubs.c | 76 return lock_is_write(lock) ? O_WRONLY : O_RDONLY; in lock_to_openmode() 171 if (file->f_file[O_WRONLY]) in nlm_delete_file() 172 nlmsvc_ops->fclose(file->f_file[O_WRONLY]); in nlm_delete_file() 194 lock.c.flc_file = file->f_file[O_WRONLY]; in nlm_unlock_files() 291 if (file->f_file[O_WRONLY]) in nlm_close_files() 292 nlmsvc_ops->fclose(file->f_file[O_WRONLY]); in nlm_close_files()
|
| /linux/tools/testing/selftests/tmpfs/ |
| H A D | bug-link-o-tmpfile.c | 59 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main() 71 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main()
|
| /linux/tools/testing/selftests/landlock/ |
| H A D | fs_test.c | 944 ASSERT_EQ(0, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK() 947 ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK() 975 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK() 981 ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK() 987 ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK() 1031 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK() 1037 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK() 1043 ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK() 1056 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK() 1062 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK() [all …]
|
| /linux/tools/testing/selftests/firmware/ |
| H A D | fw_namespace.c | 39 fd = open(sys_path, O_WRONLY); in trigger_fw() 53 fd = open(fw_path, O_WRONLY | O_CREAT, 0600); in setup_fw()
|
| /linux/tools/testing/selftests/safesetid/ |
| H A D | safesetid-test.c | 70 fd = open(filename, O_WRONLY); in vmaybe_write_file() 165 int fd = open(add_uid_whitelist_policy_file, O_WRONLY); in ensure_securityfs_mounted() 189 fd = open(add_uid_whitelist_policy_file, O_WRONLY); in write_uid_policies() 213 fd = open(add_gid_whitelist_policy_file, O_WRONLY); in write_gid_policies()
|
| /linux/tools/testing/selftests/filesystems/fuse/ |
| H A D | fusectl_test.c | 30 int fd = open(path, O_WRONLY); in write_file() 113 abort_fd = open(path_buf, O_WRONLY); in TEST_F()
|
| /linux/samples/watchdog/ |
| H A D | watchdog-simple.c | 9 int fd = open("/dev/watchdog", O_WRONLY); in main()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | test_sysctl.c | 105 .open_flags = O_WRONLY, 128 .open_flags = O_WRONLY, 624 .open_flags = O_WRONLY, 694 .open_flags = O_WRONLY, 744 .open_flags = O_WRONLY, 783 .open_flags = O_WRONLY, 852 .open_flags = O_WRONLY, 1364 .open_flags = O_WRONLY, 1509 } else if (test->open_flags == O_WRONLY) { in access_sysctl()
|
| H A D | test_bprm_opts.c | 38 null_fd = open("/dev/null", O_WRONLY); in run_set_secureexec()
|
| /linux/tools/usb/usbip/libsrc/ |
| H A D | sysfs_utils.c | 16 fd = open(attr_path, O_WRONLY); in write_sysfs_attribute()
|
| /linux/rust/kernel/fs/ |
| H A D | file.rs | 102 pub const O_WRONLY: u32 = bindings::O_WRONLY; constant
|
| /linux/tools/perf/tests/ |
| H A D | pmu.c | 88 file = openat(dirfd, "perf-pmu-test/type", O_WRONLY | O_CREAT, 0600); in test_pmu_get() 113 file = openat(dirfd, name, O_WRONLY | O_CREAT, 0600); in test_pmu_get() 132 file = openat(dirfd, "perf-pmu-test/events/test-event", O_WRONLY | O_CREAT, 0600); in test_pmu_get()
|
| /linux/tools/testing/selftests/sched_ext/ |
| H A D | util.c | 38 fd = open(path, O_WRONLY | O_APPEND); in write_text()
|
| /linux/tools/power/cpupower/utils/helpers/ |
| H A D | msr.c | 61 fd = open(msr_file_name, O_WRONLY); in write_msr()
|
| /linux/samples/cgroup/ |
| H A D | cgroup_event_listener.c | 43 event_control = open(event_control_path, O_WRONLY); in main()
|
| /linux/fs/nfsd/ |
| H A D | lockd.c | 50 access = (mode == O_WRONLY) ? NFSD_MAY_WRITE : NFSD_MAY_READ; in nlm_fopen()
|
| /linux/arch/um/drivers/ |
| H A D | tty.c | 50 mode = O_WRONLY; in tty_open()
|
| /linux/include/linux/ |
| H A D | fcntl.h | 10 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
|
| /linux/tools/testing/selftests/timens/ |
| H A D | timens.h | 74 fd = open("/proc/self/timens_offsets", O_WRONLY); in _settime()
|
| H A D | futex.c | 82 fd = open("/proc/self/timens_offsets", O_WRONLY); in main()
|
| /linux/tools/include/nolibc/ |
| H A D | stdio.h | 69 flags = O_WRONLY | O_CREAT | O_TRUNC; in fopen() 72 flags = O_WRONLY | O_CREAT | O_APPEND; in fopen() 79 flags = (flags & ~(O_RDONLY | O_WRONLY)) | O_RDWR; in fopen()
|
| /linux/tools/testing/selftests/filesystems/ |
| H A D | utils.c | 193 setgroups_fd = open(path, O_WRONLY | O_CLOEXEC); in write_id_mapping() 212 fd = open(path, O_WRONLY | O_CLOEXEC); in write_id_mapping() 455 int fd = open(path, O_WRONLY); in write_file()
|
| /linux/tools/include/uapi/asm-generic/ |
| H A D | fcntl.h | |