-
Michal Privoznik authored
Upon failure, a libseccomp API returns actual errno value very rarely. Fortunately, after its commit 34bf78ab (contained in 2.5.0 release), the SCMP_FLTATR_API_SYSRAWRC attribute can be set which makes subsequent APIs return true errno on failure. This is especially critical when seccomp_load() fails, because generic -ECANCELED says nothing. Signed-off-by:
Michal Privoznik <mprivozn@redhat.com>
Reviewed-by:
Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by:
Daniel P. Berrangé <berrange@redhat.com>Michal Privoznik authoredUpon failure, a libseccomp API returns actual errno value very rarely. Fortunately, after its commit 34bf78ab (contained in 2.5.0 release), the SCMP_FLTATR_API_SYSRAWRC attribute can be set which makes subsequent APIs return true errno on failure. This is especially critical when seccomp_load() fails, because generic -ECANCELED says nothing. Signed-off-by:
Michal Privoznik <mprivozn@redhat.com>
Reviewed-by:
Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by:
Daniel P. Berrangé <berrange@redhat.com>
Loading