Re: [PATCH v6.1 6/7] seccomp: Introduce addfd ioctl to seccomp user notifier

From
Kees Cook <hidden>
Date
2020-07-09 06:22:27
Also in
linux-fsdevel, lkml
Reply to
Kees Cook, 2020-07-09
On Wed, Jul 08, 2020 at 11:17:27PM -0700, Kees Cook wrote:
quoted hunk ↗ jump to hunk
+static long seccomp_notify_addfd(struct seccomp_filter *filter,
+				 struct seccomp_notif_addfd __user *uaddfd,
+				 unsigned int size)
+{
+	struct seccomp_notif_addfd addfd;
+	struct seccomp_knotif *knotif;
+	struct seccomp_kaddfd kaddfd;
+	int ret;
+
+	BUILD_BUG_ON(sizeof(struct seccomp_notify_addfd) < SECCOMP_NOTIFY_ADDFD_SIZE_VER0);
+	BUILD_BUG_ON(sizeof(struct seccomp_notify_addfd) != SECCOMP_NOTIFY_ADDFD_SIZE_LATEST);
*brown paper bag* I built the wrong tree! This is a typo:
seccomp_notify_addfd should be seccomp_notif_addfd (no "y").

-- 
Kees Cook
Thread (26 messages) 26 messages, 3 authors, last reply 2020-07-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help