Re: [Qemu-devel] [PATCH] seccomp: report more useful errors from seccomp

2019-03-27 Thread Eduardo Otubo
On 25/03/2019 - 15:52:27, Daniel P. Berrange wrote: > On Mon, Mar 25, 2019 at 04:25:19PM +0100, Marc-André Lureau wrote: > > Hi > > > > On Mon, Mar 25, 2019 at 3:07 PM Daniel P. Berrangé > > wrote: > > > > > > Most of the seccomp functions return errnos as a negative return > > > value. The

Re: [Qemu-devel] [PATCH] seccomp: report more useful errors from seccomp

2019-03-25 Thread Daniel P . Berrangé
On Mon, Mar 25, 2019 at 04:25:19PM +0100, Marc-André Lureau wrote: > Hi > > On Mon, Mar 25, 2019 at 3:07 PM Daniel P. Berrangé > wrote: > > > > Most of the seccomp functions return errnos as a negative return > > value. The code is currently ignoring these and reporting a generic > > error

Re: [Qemu-devel] [PATCH] seccomp: report more useful errors from seccomp

2019-03-25 Thread Marc-André Lureau
Hi On Mon, Mar 25, 2019 at 3:07 PM Daniel P. Berrangé wrote: > > 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

[Qemu-devel] [PATCH] seccomp: report more useful errors from seccomp

2019-03-25 Thread Daniel P . Berrangé
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.