Home
last modified time | relevance | path

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

/Linux-v5.10/kernel/
Dseccomp.c99 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->completion); in seccomp_handle_addfd()
850 struct seccomp_kaddfd *addfd, *tmp; in seccomp_do_user_notification() local
863 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 …]
/Linux-v5.10/tools/testing/selftests/seccomp/
Dseccomp_bpf.c247 struct seccomp_notif_addfd addfd; member
3954 struct seccomp_notif_addfd addfd = {}; in TEST() local
3986 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 …]