openat
SYSCALL_DEFINE4(openat, int, dfd, const char __user *, filename, int, flags,
COMPAT_SYSCALL_DEFINE4(openat, int, dfd, const char __user *, filename, int, flags, umode_t, mode)
statusfd = openat(procfd, "status", O_RDONLY | O_CLOEXEC);
fd = openat(cgrp->fd, "cgroup.threads", O_WRONLY);
fd = openat(cgrp->fd, "cgroup.procs", O_WRONLY);
fd = openat(cgrp->fd, "tasks", O_WRONLY);
file = openat(hwmon_dirfd, "name", O_WRONLY | O_CREAT, 0600);
file = openat(hwmon_dirfd, item->name, O_WRONLY | O_CREAT, 0600);
fd = openat(0, "/etc/passwd", O_RDONLY);
openat(AT_FDCWD, filename, flags);
fd = openat(0, "/etc/passwd", O_RDONLY);
file = openat(dirfd, name, O_WRONLY | O_CREAT, 0600);
file = openat(dirfd, "perf-pmu-test/events/test-event", O_WRONLY | O_CREAT, 0600);
file = openat(dirfd, "perf-pmu-test/type", O_WRONLY | O_CREAT, 0600);
fd = openat(dir_fd, ent->d_name, O_PATH);
io__init(&io, openat(dir_fd, name, O_RDONLY), buf, sizeof(buf));
fd = openat(dir_fd, filename, O_RDONLY);
lang_dir_fd = openat(scripts_dir_fd, lang_dirent->d_name, O_DIRECTORY);
io__init(&io, openat(fdinfo_dir_fd, fd_name, O_RDONLY), buf, sizeof(buf));
fd_dir_fd = openat(proc_dir, buf, O_DIRECTORY);
fdinfo_dir_fd = openat(proc_dir, buf, O_DIRECTORY);
io__init(&io, openat(fdinfo_dir_fd, fd_name, O_RDONLY), buf, sizeof(buf));
fd_dir_fd = openat(dirfd(proc_dir), buf, O_DIRECTORY);
cmdline_fd = openat(dirfd(proc_dir), buf, O_RDONLY);
int fd = openat(dir.dirfd, ent->d_name, O_RDONLY);
fd = openat(dir, buf, O_RDONLY);
name_fd = openat(hwmon_dir, "name", O_RDONLY);
fd = openat(dir, buf, O_RDONLY);
int fd = openat(dirfd, name, O_RDONLY);
fd = openat(caps_fd, name, O_RDONLY);
return openat(dirfd, path, flags);
fd = openat(events_dir_fd, name, O_RDONLY);
events_dir_fd = openat(sysfs_fd, path, O_DIRECTORY, 0);
int err, fd = openat(dirfd, dirp, O_PATH);
fd_telem_info = openat(fd_dir, info_filename, O_RDONLY);
fd_telem_dir = openat(dirfd(pmt_iter.dir), entry->d_name, O_RDONLY);
fd_pmt = openat(fd_telem_dir, "telem", O_RDONLY);
fd_telem_dir = openat(dirfd(pmt_iter.dir), dirname->d_name, O_RDONLY | O_DIRECTORY);
fd = openat(ctx.fd, name, O_RDONLY);
bpffs_fd = openat(mnt_fd, ".", 0, O_RDWR);
int from = openat(fromfd, fromname, O_RDONLY);
return openat(fd_tmpfs_detached, ".", O_TMPFILE | O_RDWR | O_EXCL, 0600);
ret = openat(dfd, "regfile", O_CREAT | O_WRONLY | O_TRUNC, 0644);
fd = openat(ovl, "test", O_RDWR | O_CREAT, 0644);
layer_fds[i] = openat(fd_tmpfs, path, O_DIRECTORY);
fd_work = openat(fd_tmpfs, "w", O_DIRECTORY);
fd_upper = openat(fd_tmpfs, "u", O_DIRECTORY);
fd_lower = openat(fd_tmpfs, "l501", O_DIRECTORY);
layer_fds[0] = openat(fd_tmpfs, "w", O_DIRECTORY);
layer_fds[1] = openat(fd_tmpfs, "u", O_DIRECTORY);
layer_fds[2] = openat(fd_tmpfs, "l1", O_DIRECTORY);
layer_fds[3] = openat(fd_tmpfs, "l2", O_DIRECTORY);
layer_fds[0] = openat(fd_tmpfs, "w", O_DIRECTORY);
layer_fds[1] = openat(fd_tmpfs, "u", O_DIRECTORY);
layer_fds[2] = openat(fd_tmpfs, "l1", O_DIRECTORY);
layer_fds[3] = openat(fd_tmpfs, "l2", O_DIRECTORY);
layer_fds[0] = openat(fd_tmpfs, "w", O_DIRECTORY);
layer_fds[1] = openat(fd_tmpfs, "u", O_DIRECTORY);
layer_fds[2] = openat(fd_tmpfs, "l1", O_DIRECTORY);
layer_fds[3] = openat(fd_tmpfs, "l2", O_DIRECTORY);
layer_fds[i] = openat(fd_tmpfs, path, O_DIRECTORY | O_PATH);
fd_work = openat(fd_tmpfs, "w", O_DIRECTORY | O_PATH);
fd_upper = openat(fd_tmpfs, "u", O_DIRECTORY | O_PATH);
fd_lower = openat(fd_tmpfs, "l501", O_DIRECTORY | O_PATH);
layer_fds[0] = openat(fd_tmp, "upper", O_CLOEXEC | O_DIRECTORY | O_PATH);
layer_fds[1] = openat(fd_tmp, "work", O_CLOEXEC | O_DIRECTORY | O_PATH);
layer_fds[0] = openat(fd_tmpfs, "w", O_DIRECTORY);
layer_fds[1] = openat(fd_tmpfs, "u", O_DIRECTORY);
layer_fds[2] = openat(fd_tmpfs, "l1", O_DIRECTORY);
layer_fds[3] = openat(fd_tmpfs, "l2", O_DIRECTORY);
layer_fds[4] = openat(fd_tmpfs, "l3", O_DIRECTORY);
layer_fds[5] = openat(fd_tmpfs, "l4", O_DIRECTORY);
layer_fds[6] = openat(fd_tmpfs, "d1", O_DIRECTORY);
layer_fds[7] = openat(fd_tmpfs, "d2", O_DIRECTORY);
layer_fds[8] = openat(fd_tmpfs, "d3", O_DIRECTORY);
fd = openat(dfd, fn, O_WRONLY);
curr = openat(curr, path, O_PATH);
int fd = openat(AT_FDCWD, ".", O_PATH);
fd = openat(fd, path, O_PATH);
int newfd = openat(fd, "..", O_PATH);
fd = openat(curr, "file.txt", O_CREAT | O_TRUNC | O_WRONLY,
fd = openat(dirfd, path, flags | O_CLOEXEC);
img_fd = openat(-EBADF, "/mnt/C/ext4.img", O_CREAT | O_WRONLY, 0600);
dev = openat(AT_FDCWD, "/dev", O_DIRECTORY);
null = openat(dev, "null", O_RDONLY);
int ret = openat(dfd, path, how->flags, how->mode);
int fd = openat(dfd, path, O_CREAT, 0700);
afd = openat(dfd, "a", O_PATH);
dfd = openat(rootfd, test->dir, O_PATH | O_DIRECTORY);
tmpfd = openat(dfd, "root", O_PATH | O_DIRECTORY);
fd_pidfd_mnt = openat(-EBADF, self->template, O_RDONLY | O_NOCTTY | O_CLOEXEC);
self->nsfds[i] = openat(proc_fd, info->name, O_RDONLY | O_CLOEXEC);
self->nsfds[i] = openat(proc_fd, info->name, O_RDONLY | O_CLOEXEC);
fd = openat(dir_fd, "stat", O_RDONLY);
fd = openat(dir_fd, "fd", O_RDONLY|O_DIRECTORY);
fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_EXCL|O_TMPFILE, 0700);
fd = openat(dirfd(d), de->d_name, O_DIRECTORY|O_RDONLY);
fd = openat(dirfd(d), filename, O_RDONLY|O_NONBLOCK);
fd = openat(dirfd(d), filename, O_WRONLY);
fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600);
fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600);