From: Wolfgang Bumiller Date: Fri, 5 Jul 2019 09:22:34 +0000 (+0200) Subject: seccomp: send default response when there's no proxy X-Git-Tag: lxc-4.0.0~149^2~6 X-Git-Url: https://git.proxmox.com/?p=mirror_lxc.git;a=commitdiff_plain;h=1370a882bcac001d8e61a152548cdbc3b0a600dd seccomp: send default response when there's no proxy Particularly, when there's no proxy registered (iow. none configured but the seccomp profile still had a 'notify' rule), we don't want to leave them hanging. Signed-off-by: Wolfgang Bumiller --- diff --git a/src/lxc/seccomp.c b/src/lxc/seccomp.c index 7e2b407ab..12e6dbe78 100644 --- a/src/lxc/seccomp.c +++ b/src/lxc/seccomp.c @@ -1375,7 +1375,7 @@ int seccomp_notify_handler(int fd, uint32_t events, void *data, if (listener_proxy_fd < 0) { ERROR("No seccomp proxy registered"); - return minus_one_set_errno(EINVAL); + return seccomp_notify_default_answer(fd, req, resp, hdlr); } /* remember the ID in case we receive garbage from the proxy */