{
resp->id = req->id;
resp->error = -ENOSYS;
+ resp->val = 0;
+ resp->flags = 0;
if (seccomp_notify_respond(fd, resp))
- SYSERROR("Failed to send default message to seccomp");
+ SYSERROR("Failed to send default message to seccomp notification with id(%llu)", resp->id);
+ else
+ TRACE("Sent default response for seccomp notification with id(%llu)", resp->id);
+ memset(resp, 0, handler->conf->seccomp.notifier.sizes.seccomp_notif_resp);
}
#endif
return log_trace(0, "Removing seccomp notifier fd %d", fd);
}
- memset(req, 0, sizeof(*req));
+ memset(req, 0, conf->seccomp.notifier.sizes.seccomp_notif);
ret = seccomp_notify_receive(fd, req);
if (ret) {
SYSERROR("Failed to read seccomp notification");
SYSERROR("Failed to send seccomp notification");
else
TRACE("Sent response for seccomp notification with id(%llu)", resp->id);
+ memset(resp, 0, conf->seccomp.notifier.sizes.seccomp_notif_resp);
out:
#endif