seccomp: report more useful errors from seccomp
Most of the seccomp functions return errnos as a negative return value. The code is currently ignoring these and reporting a generic error message for all seccomp failure scenarios making debugging painful. Report a more precise error from each failed call and include errno if it is available. Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com> Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: NEduardo Otubo <otubo@redhat.com>
Showing
想要评论请 注册 或 登录