aboutsummaryrefslogtreecommitdiff
path: root/hw/pci-host/dino.c
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2022-10-26 09:30:24 +0200
committerDaniel P. Berrangé <berrange@redhat.com>2022-10-26 13:32:58 +0100
commit73422d9524376526ab5950b3be3098901cd605d6 (patch)
tree9624968f625979d7ea9d0243ca6b6597baf97512 /hw/pci-host/dino.c
parent23f77f05f2faa8ff3028fef388322f7b4f09533e (diff)
downloadqemu-73422d9524376526ab5950b3be3098901cd605d6.zip
qemu-73422d9524376526ab5950b3be3098901cd605d6.tar.gz
qemu-73422d9524376526ab5950b3be3098901cd605d6.tar.bz2
seccomp: Get actual errno value from failed seccomp functions
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>
Diffstat (limited to 'hw/pci-host/dino.c')
0 files changed, 0 insertions, 0 deletions