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>
if (listener_proxy_fd < 0) {
ERROR("No seccomp proxy registered");
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 */
}
/* remember the ID in case we receive garbage from the proxy */