Searched refs:addfd (Results 1 – 2 of 2) sorted by relevance
99 struct list_head addfd; member1046 static void seccomp_handle_addfd(struct seccomp_kaddfd *addfd, struct seccomp_knotif *n) in seccomp_handle_addfd() argument1054 list_del_init(&addfd->list); in seccomp_handle_addfd()1055 if (!addfd->setfd) in seccomp_handle_addfd()1056 fd = receive_fd(addfd->file, addfd->flags); in seccomp_handle_addfd()1058 fd = receive_fd_replace(addfd->fd, addfd->file, addfd->flags); in seccomp_handle_addfd()1059 addfd->ret = fd; in seccomp_handle_addfd()1061 if (addfd->ioctl_flags & SECCOMP_ADDFD_FLAG_SEND) { in seccomp_handle_addfd()1077 complete(&addfd->completion); in seccomp_handle_addfd()1088 struct seccomp_kaddfd *addfd, *tmp; in seccomp_do_user_notification() local[all …]
251 struct seccomp_notif_addfd addfd; member3967 struct seccomp_notif_addfd addfd = {}; in TEST() local4008 addfd.srcfd = memfd; in TEST()4009 addfd.newfd = 0; in TEST()4010 addfd.id = req.id; in TEST()4011 addfd.flags = 0x0; in TEST()4014 addfd.newfd_flags = ~O_CLOEXEC; in TEST()4015 EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD, &addfd), -1); in TEST()4017 addfd.newfd_flags = O_CLOEXEC; in TEST()4020 addfd.flags = 0xff; in TEST()[all …]