/openbmc/linux/tools/testing/selftests/landlock/ |
H A D | fs_test.c | 407 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK() 410 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY)); in TEST_F_FORK() 413 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY)); in TEST_F_FORK() 416 ASSERT_EQ(0, test_open(dir_s2d1, O_RDONLY)); in TEST_F_FORK() 418 ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY)); in TEST_F_FORK() 420 ASSERT_EQ(0, test_open(dir_s2d3, O_RDONLY)); in TEST_F_FORK() 423 ASSERT_EQ(0, test_open(dir_s3d1, O_RDONLY)); in TEST_F_FORK() 1521 ASSERT_EQ(0, test_open("/", O_RDONLY)); in TEST_F_FORK() 1762 test_open_rel(dirfd, "..", O_RDONLY)); in test_relative_path() 1785 O_RDONLY)); in test_relative_path() [all …]
|
H A D | base_test.c | 306 ASSERT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in TEST() 308 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST() 318 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST() 321 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST() 341 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST() 354 EXPECT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in TEST() 368 EXPECT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in TEST() 387 EXPECT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in TEST() 399 EXPECT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in TEST()
|
/openbmc/linux/tools/testing/selftests/exec/ |
H A D | execveat.c | 142 int in_fd = open_or_die(src, O_RDONLY); in exe_cp() 194 fd = open(longpath, O_RDONLY); in check_execveat_pathmax() 232 O_DIRECTORY|O_RDONLY); in run_tests() 233 int dot_dfd = open_or_die(".", O_DIRECTORY|O_RDONLY); in run_tests() 234 int root_dfd = open_or_die("/", O_DIRECTORY|O_RDONLY); in run_tests() 237 int fd = open_or_die("execveat", O_RDONLY); in run_tests() 238 int fd_path = open_or_die("execveat", O_RDONLY|O_PATH); in run_tests() 239 int fd_symlink = open_or_die("execveat.symlink", O_RDONLY); in run_tests() 242 O_RDONLY|O_PATH); in run_tests() 243 int fd_script = open_or_die("script", O_RDONLY); in run_tests() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_sysctl.c | 55 .open_flags = O_RDONLY, 66 .open_flags = O_RDONLY, 77 .open_flags = O_RDONLY, 98 .open_flags = O_RDONLY, 158 .open_flags = O_RDONLY, 179 .open_flags = O_RDONLY, 206 .open_flags = O_RDONLY, 222 .open_flags = O_RDONLY, 264 .open_flags = O_RDONLY, 306 .open_flags = O_RDONLY, [all …]
|
/openbmc/linux/tools/testing/selftests/openat2/ |
H A D | openat2_test.c | 58 .arg.inner.flags = O_RDONLY, in test_openat2_struct() 62 .arg.inner.flags = O_RDONLY, in test_openat2_struct() 69 .arg.inner.flags = O_RDONLY, .size = 0, .err = -EINVAL }, in test_openat2_struct() 71 .arg.inner.flags = O_RDONLY, in test_openat2_struct() 76 .arg.inner.flags = O_RDONLY, .arg.extra1 = 0xdeadbeef, in test_openat2_struct() 79 .arg.inner.flags = O_RDONLY, .arg.extra2 = 0xfeedcafe, in test_openat2_struct() 82 .arg.inner.flags = O_RDONLY, .arg.extra3 = 0xabad1dea, in test_openat2_struct() 197 .how.flags = O_RDONLY, .how.mode = 0600, .err = -EINVAL }, in test_openat2_flags() 220 .how.flags = O_RDONLY, in test_openat2_flags() 226 .how.flags = O_RDONLY, in test_openat2_flags() [all …]
|
/openbmc/linux/tools/testing/selftests/proc/ |
H A D | fd-002-posix-eq.c | 32 fd0 = open("/", O_DIRECTORY|O_RDONLY); in main() 36 fd1 = open(buf, O_RDONLY); in main() 40 fd2 = open(buf, O_RDONLY); in main()
|
H A D | setns-dcache.c | 95 nsfd = open(buf, O_RDONLY); in main() 102 (void)open("/proc/net/unix", O_RDONLY); in main() 116 fd = open("/proc/net/unix", O_RDONLY); in main()
|
H A D | setns-sysvipc.c | 94 nsfd = open(buf, O_RDONLY); in main() 101 (void)open("/proc/sysvipc/shm", O_RDONLY); in main() 115 fd = open("/proc/sysvipc/shm", O_RDONLY); in main()
|
H A D | proc-empty-vm.c | 185 int fd = open(buf, O_RDONLY); in test_proc_pid_maps() 207 int fd = open(buf, O_RDONLY); in test_proc_pid_numa_maps() 230 int fd = open(buf, O_RDONLY); in test_proc_pid_smaps() 286 int fd = open(buf, O_RDONLY); in test_proc_pid_smaps_rollup()
|
H A D | fd-003-kthread.c | 48 dir_fd = open(buf, O_RDONLY|O_DIRECTORY); in kernel_thread_fd() 56 fd = openat(dir_fd, "stat", O_RDONLY); in kernel_thread_fd() 90 fd = openat(dir_fd, "fd", O_RDONLY|O_DIRECTORY); in kernel_thread_fd()
|
H A D | proc-pid-vm.c | 207 fd1 = open(buf, O_RDONLY|O_CLOEXEC); in make_exe() 309 if (open("/", O_RDONLY|O_DIRECTORY|O_PATH) != 0) { in main() 361 fd = open(buf, O_RDONLY); in main() 380 fd = open(buf, O_RDONLY); in main() 436 fd = open(buf, O_RDONLY); in main() 472 fd = open(buf, O_RDONLY); in main()
|
/openbmc/openbmc/poky/meta/recipes-devtools/patch/patch/ |
H A D | CVE-2019-13636.patch | 30 - int ifd = safe_open (filename, O_RDONLY|binary_transput, 0); 31 + int flags = O_RDONLY | binary_transput; 45 + int flags = O_RDONLY | binary_transput; 53 - if ((ifd = safe_open (filename, O_RDONLY | binary_transput, 0)) < 0 77 + int from_flags = O_RDONLY | O_BINARY; 81 - if ((fromfd = safe_open (from, O_RDONLY | O_BINARY, 0)) < 0)
|
/openbmc/linux/tools/testing/selftests/efivarfs/ |
H A D | open-unlink.c | 20 fd = open(path, O_RDONLY); in set_immutable() 51 fd = open(path, O_RDONLY); in get_immutable() 115 fd = open(path, O_RDONLY); in main()
|
/openbmc/phosphor-mboxd/vpnor/ |
H A D | pnor_partition.cpp | 66 if (flags == O_RDONLY) in getPartitionFilePath() 118 if (!(flags == O_RDONLY || flags == O_RDWR)) in fulfil() 121 err << "Require O_RDONLY (0x" << std::hex << O_RDONLY << " or O_RDWR " in fulfil() 146 if (flags == O_RDONLY) in fulfil()
|
/openbmc/openbmc/poky/meta/recipes-extended/shadow/files/ |
H A D | commonio.c-fix-unexpected-open-failure-in-chroot-env.patch | 31 - (db->readonly ? O_RDONLY : O_RDWR) 36 + (true ? O_RDONLY : O_RDWR) 41 + (false ? O_RDONLY : O_RDWR)
|
/openbmc/linux/samples/timers/ |
H A D | hpet_example.c | 89 fd = open(argv[0], O_RDONLY); in hpet_open_close() 109 fd = open(argv[0], O_RDONLY); in hpet_info() 149 fd = open(argv[0], O_RDONLY); in hpet_poll() 243 fd = open(argv[0], O_RDONLY); in hpet_fasync()
|
/openbmc/linux/fs/lockd/ |
H A D | svcsubs.c | 76 return (lock->fl_type == F_WRLCK) ? O_WRONLY : O_RDONLY; in lock_to_openmode() 169 if (file->f_file[O_RDONLY]) in nlm_delete_file() 170 nlmsvc_ops->fclose(file->f_file[O_RDONLY]); in nlm_delete_file() 191 lock.fl_file = file->f_file[O_RDONLY]; in nlm_unlock_files() 289 if (file->f_file[O_RDONLY]) in nlm_close_files() 290 nlmsvc_ops->fclose(file->f_file[O_RDONLY]); in nlm_close_files()
|
/openbmc/qemu/crypto/ |
H A D | random-platform.c | 55 fd = open("/dev/urandom", O_RDONLY | O_CLOEXEC); in qcrypto_random_init() 57 fd = open("/dev/random", O_RDONLY | O_CLOEXEC); in qcrypto_random_init()
|
/openbmc/linux/scripts/ |
H A D | jobserver-exec | 35 reader = os.open(path, os.O_RDONLY | os.O_NONBLOCK) 42 os.O_RDONLY | os.O_NONBLOCK)
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | madv_populate.c | 137 int fd = open("/proc/self/pagemap", O_RDONLY); in range_is_populated() 151 int fd = open("/proc/self/pagemap", O_RDONLY); in range_is_not_populated() 209 int fd = open("/proc/self/pagemap", O_RDONLY); in range_is_softdirty() 223 int fd = open("/proc/self/pagemap", O_RDONLY); in range_is_not_softdirty()
|
/openbmc/linux/tools/perf/util/ |
H A D | zlib.c | 32 input_fd = open(input, O_RDONLY); in gzip_decompress_to_file() 85 int fd = open(input, O_RDONLY); in gzip_is_compressed()
|
/openbmc/hiomapd/vpnor/test/ |
H A D | write_patch.cpp | 64 fd = open((root.rw() / "TEST1").c_str(), O_RDONLY); in main() 73 fd = open(patch.c_str(), O_RDONLY); in main()
|
/openbmc/linux/samples/pidfd/ |
H A D | pidfd-metadata.c | 58 procfd = open(path, O_DIRECTORY | O_RDONLY | O_CLOEXEC); in pidfd_metadata_fd() 105 statusfd = openat(procfd, "status", O_RDONLY | O_CLOEXEC); in main()
|
/openbmc/phosphor-mboxd/vpnor/test/ |
H A D | write_patch.cpp | 61 fd = open((root.rw() / "TEST1").c_str(), O_RDONLY); in main() 70 fd = open(patch.c_str(), O_RDONLY); in main()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | d_path.c | 57 procfd = open("/proc/self/comm", O_RDONLY); in trigger_fstat_events() 60 devfd = open("/dev/urandom", O_RDONLY); in trigger_fstat_events() 63 localfd = open("/tmp/d_path_loadgen.txt", O_CREAT | O_RDONLY, 0644); in trigger_fstat_events()
|