Home
last modified time | relevance | path

Searched refs:addfd (Results 1 – 2 of 2) sorted by relevance

/linux-6.15/kernel/
H A Dseccomp.c99 struct list_head addfd; member
1114 if (!addfd->setfd) in seccomp_handle_addfd()
1115 fd = receive_fd(addfd->file, NULL, addfd->flags); in seccomp_handle_addfd()
1117 fd = receive_fd_replace(addfd->fd, addfd->file, addfd->flags); in seccomp_handle_addfd()
1118 addfd->ret = fd; in seccomp_handle_addfd()
1198 addfd = list_first_entry_or_null(&n.addfd, in seccomp_do_user_notification()
1201 if (addfd) in seccomp_do_user_notification()
1212 list_for_each_entry_safe(addfd, tmp, &n.addfd, list) { in seccomp_do_user_notification()
1214 addfd->ret = -ESRCH; in seccomp_do_user_notification()
1711 ret = copy_struct_from_user(&addfd, sizeof(addfd), uaddfd, size); in seccomp_notify_addfd()
[all …]
/linux-6.15/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c4171 addfd.newfd = 0; in TEST()
4172 addfd.id = req.id; in TEST()
4185 addfd.flags = 0; in TEST()
4188 addfd.newfd = 1; in TEST()
4191 addfd.newfd = 0; in TEST()
4199 big.addfd = addfd; in TEST()
4212 big.addfd = addfd; in TEST()
4218 addfd.newfd = 42; in TEST()
4246 addfd.newfd = 0; in TEST()
4324 addfd.newfd = 0; in TEST()
[all …]