From: Christian Brauner Date: Mon, 2 Nov 2020 15:48:02 +0000 (+0100) Subject: seccomp: log aborted system calls X-Git-Tag: lxc-5.0.0~343^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d724ab4f4b2611f5d93525ef8ef4f1c6d91334d;p=thirdparty%2Flxc.git seccomp: log aborted system calls Suggested-by: Jann Horn Signed-off-by: Christian Brauner --- diff --git a/src/lxc/seccomp.c b/src/lxc/seccomp.c index e303561bf..ba6811d90 100644 --- a/src/lxc/seccomp.c +++ b/src/lxc/seccomp.c @@ -1390,7 +1390,10 @@ int seccomp_notify_handler(int fd, uint32_t events, void *data, memset(req, 0, conf->seccomp.notifier.sizes.seccomp_notif); ret = seccomp_notify_receive(fd, req); if (ret) { - SYSERROR("Failed to read seccomp notification"); + if (errno == ENOENT) + TRACE("Intercepted system call aborted"); + else + SYSERROR("Failed to read seccomp notification"); goto out; }