Home
last modified time | relevance | path

Searched refs:addfd (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/kernel/
H A Dseccomp.c92 * dying, a new seccomp addfd message, or changing to REPLIED
98 /* outstanding addfd requests */
99 struct list_head addfd; member
831 static void seccomp_handle_addfd(struct seccomp_kaddfd *addfd) in seccomp_handle_addfd() argument
837 list_del_init(&addfd->list); in seccomp_handle_addfd()
838 addfd->ret = receive_fd_replace(addfd->fd, addfd->file, addfd->flags); in seccomp_handle_addfd()
839 complete(&addfd in seccomp_handle_addfd()
850 struct seccomp_kaddfd *addfd, *tmp; seccomp_do_user_notification() local
1325 struct seccomp_notif_addfd addfd; seccomp_notify_addfd() local
[all...]
/kernel/linux/linux-6.6/kernel/
H A Dseccomp.c94 * dying, a new seccomp addfd message, or changing to REPLIED
100 /* outstanding addfd requests */
101 struct list_head addfd; member
1065 static void seccomp_handle_addfd(struct seccomp_kaddfd *addfd, struct seccomp_knotif *n) in seccomp_handle_addfd() argument
1073 list_del_init(&addfd->list); in seccomp_handle_addfd()
1074 if (!addfd->setfd) in seccomp_handle_addfd()
1075 fd = receive_fd(addfd->file, addfd->flags); in seccomp_handle_addfd()
1077 fd = receive_fd_replace(addfd->fd, addfd in seccomp_handle_addfd()
1113 struct seccomp_kaddfd *addfd, *tmp; seccomp_do_user_notification() local
1661 struct seccomp_notif_addfd addfd; seccomp_notify_addfd() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c249 struct seccomp_notif_addfd addfd; member
3969 struct seccomp_notif_addfd addfd = {}; in TEST() local
4001 addfd.srcfd = memfd; in TEST()
4002 addfd.newfd = 0; in TEST()
4003 addfd.id = req.id; in TEST()
4004 addfd.flags = 0x0; in TEST()
4007 addfd.newfd_flags = ~O_CLOEXEC; in TEST()
4008 EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD, &addfd), -1); in TEST()
4010 addfd.newfd_flags = O_CLOEXEC; in TEST()
4013 addfd in TEST()
4096 struct seccomp_notif_addfd addfd = {}; TEST() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c258 struct seccomp_notif_addfd addfd; member
4045 struct seccomp_notif_addfd addfd = {}; in TEST() local
4077 /* Atomic addfd+send is received here. Check it is a valid fd */ in TEST()
4086 addfd.srcfd = memfd; in TEST()
4087 addfd.newfd = 0; in TEST()
4088 addfd.id = req.id; in TEST()
4089 addfd.flags = 0x0; in TEST()
4092 addfd.newfd_flags = ~O_CLOEXEC; in TEST()
4093 EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD, &addfd), -1); in TEST()
4095 addfd in TEST()
4203 struct seccomp_notif_addfd addfd = {}; TEST() local
[all...]

Completed in 14 milliseconds