Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/kernel/
H A Dseccomp.c99 struct list_head addfd; member
1062 static void seccomp_handle_addfd(struct seccomp_kaddfd *addfd) in seccomp_handle_addfd() argument
1068 list_del_init(&addfd->list); in seccomp_handle_addfd()
1069 addfd->ret = receive_fd_replace(addfd->fd, addfd->file, addfd->flags); in seccomp_handle_addfd()
1070 complete(&addfd->completion); in seccomp_handle_addfd()
1081 struct seccomp_kaddfd *addfd, *tmp; in seccomp_do_user_notification() local
1094 INIT_LIST_HEAD(&n.addfd); in seccomp_do_user_notification()
1109 addfd = list_first_entry_or_null(&n.addfd, in seccomp_do_user_notification()
1112 if (addfd) in seccomp_do_user_notification()
1113 seccomp_handle_addfd(addfd); in seccomp_do_user_notification()
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c247 struct seccomp_notif_addfd addfd; member
3963 struct seccomp_notif_addfd addfd = {}; in TEST() local
3995 addfd.srcfd = memfd; in TEST()
3996 addfd.newfd = 0; in TEST()
3997 addfd.id = req.id; in TEST()
3998 addfd.flags = 0x0; in TEST()
4001 addfd.newfd_flags = ~O_CLOEXEC; in TEST()
4002 EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD, &addfd), -1); in TEST()
4004 addfd.newfd_flags = O_CLOEXEC; in TEST()
4007 addfd.flags = 0xff; in TEST()
[all …]