Commit 1370a882 by Wolfgang Bumiller

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: 's avatarWolfgang Bumiller <w.bumiller@proxmox.com>
parent 3745ee0e
...@@ -1375,7 +1375,7 @@ int seccomp_notify_handler(int fd, uint32_t events, void *data, ...@@ -1375,7 +1375,7 @@ int seccomp_notify_handler(int fd, uint32_t events, void *data,
if (listener_proxy_fd < 0) { if (listener_proxy_fd < 0) {
ERROR("No seccomp proxy registered"); 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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment