Searched refs:addfd (Results 1 – 2 of 2) sorted by relevance
99 struct list_head addfd; member831 static void seccomp_handle_addfd(struct seccomp_kaddfd *addfd) in seccomp_handle_addfd() argument837 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->completion); in seccomp_handle_addfd()850 struct seccomp_kaddfd *addfd, *tmp; in seccomp_do_user_notification() local863 INIT_LIST_HEAD(&n.addfd); in seccomp_do_user_notification()877 addfd = list_first_entry_or_null(&n.addfd, in seccomp_do_user_notification()879 if (addfd && n.state != SECCOMP_NOTIFY_REPLIED) { in seccomp_do_user_notification()880 seccomp_handle_addfd(addfd); in seccomp_do_user_notification()[all …]
247 struct seccomp_notif_addfd addfd; member3954 struct seccomp_notif_addfd addfd = {}; in TEST() local3986 addfd.srcfd = memfd; in TEST()3987 addfd.newfd = 0; in TEST()3988 addfd.id = req.id; in TEST()3989 addfd.flags = 0x0; in TEST()3992 addfd.newfd_flags = ~O_CLOEXEC; in TEST()3993 EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD, &addfd), -1); in TEST()3995 addfd.newfd_flags = O_CLOEXEC; in TEST()3998 addfd.flags = 0xff; in TEST()[all …]