Lines Matching refs:open
392 * Mixing error codes from close(2) and open(2) should not lead to any
442 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC);
445 ruleset_fd = open(dir_s1d1, O_PATH | O_DIRECTORY | O_CLOEXEC);
453 ruleset_fd = open(dir_s1d1, O_DIRECTORY | O_CLOEXEC);
470 path_beneath.parent_fd = open(dir_s1d2, O_DIRECTORY | O_CLOEXEC);
484 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC);
565 path_beneath_file.parent_fd = open(file1_s1d2, O_PATH | O_CLOEXEC);
570 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC);
618 path_beneath.parent_fd = open(path, O_PATH | O_CLOEXEC);
621 TH_LOG("Failed to open directory \"%s\": %s", path,
733 path_beneath.parent_fd = open("/proc/self/ns/mnt", O_PATH | O_CLOEXEC);
806 reg_fd = open(file1_s2d2, O_RDWR | O_CLOEXEC);
815 reg_fd = open(file1_s2d2, O_RDONLY | O_CLOEXEC);
1325 * Same tests and results as above, except for open(dir_s1d3) which is
1736 dirfd = open(dir_s1d2, O_DIRECTORY);
1824 dst_fd = open(dst_path, O_WRONLY | O_TRUNC | O_CLOEXEC);
1827 TH_LOG("Failed to open \"%s\": %s", dst_path, strerror(errno));
1829 src_fd = open(BINARY_PATH, O_RDONLY | O_CLOEXEC);
1832 TH_LOG("Failed to open \"" BINARY_PATH "\": %s",
3179 return open(procfd_path, open_flags);
3203 reg_fd = open(file1_s1d2, O_RDONLY | O_CLOEXEC);
3343 * Checks read right: truncate and open with O_TRUNC work, unless the
3352 * Checks write right: truncate and open with O_TRUNC work, unless the
3361 * Checks "no rights" case: truncate works but all open attempts fail,
3438 * Note: Files can get truncated using open() even with O_RDONLY.
3444 /* Checks truncate right: truncate works, but can't open file. */
3525 fd_layer0 = open(path, O_WRONLY);
3533 fd_layer1 = open(path, O_WRONLY);
3542 fd_layer2 = open(path, O_WRONLY);
3552 fd_layer3 = open(path, O_WRONLY);
3651 fd = open(path, O_WRONLY);
3672 * Enables Landlock in the child process, open a file descriptor
3691 fd = open(path, O_WRONLY);
3731 * created in ways other than open(2).