]> git.proxmox.com Git - mirror_lxc.git/commitdiff
seccomp: send default response when there's no proxy
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 5 Jul 2019 09:22:34 +0000 (11:22 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 9 Jul 2019 10:25:10 +0000 (12:25 +0200)
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 <w.bumiller@proxmox.com>
src/lxc/seccomp.c

index 7e2b407ab2aef771978bfc1866be4a3b18bd69b6..12e6dbe7825ffc6b7f11729b09957ac399202a00 100644 (file)
@@ -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 */