Searched refs:addfd (Results 1 – 2 of 2) sorted by relevance
101 struct list_head addfd; member1065 static void seccomp_handle_addfd(struct seccomp_kaddfd *addfd, struct seccomp_knotif *n) in seccomp_handle_addfd() argument1073 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->file, addfd->flags); in seccomp_handle_addfd()1078 addfd->ret = fd; in seccomp_handle_addfd()1080 if (addfd->ioctl_flags & SECCOMP_ADDFD_FLAG_SEND) { in seccomp_handle_addfd()1096 complete(&addfd->completion); in seccomp_handle_addfd()1113 struct seccomp_kaddfd *addfd, *tmp; in seccomp_do_user_notification() local[all …]
258 struct seccomp_notif_addfd addfd; member4062 struct seccomp_notif_addfd addfd = {}; in TEST() local4104 addfd.srcfd = memfd; in TEST()4105 addfd.newfd = 0; in TEST()4106 addfd.id = req.id; in TEST()4107 addfd.flags = 0x0; in TEST()4110 addfd.newfd_flags = ~O_CLOEXEC; in TEST()4111 EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD, &addfd), -1); in TEST()4113 addfd.newfd_flags = O_CLOEXEC; in TEST()4116 addfd.flags = 0xff; in TEST()[all …]