seccomp: improve error reporting
authorLucas Werkmeister <mail@lucaswerkmeister.de>
Sat, 25 Aug 2018 22:27:29 +0000 (00:27 +0200)
committerLucas Werkmeister <mail@lucaswerkmeister.de>
Wed, 29 Aug 2018 19:42:03 +0000 (21:42 +0200)
commit851ee70a3da1263a8eb9e7f230d2e18462ec2ead
treec368ebaccb21384022a5383641723f541a4a6672
parent8f8112f916c68746c436c3e4314b226fee820f1e
seccomp: improve error reporting

Only report OOM if that was actually the error of the operation,
explicitly report the possible error that a syscall was already blocked
with a different errno and translate that into a more sensible errno
(EEXIST only makes sense in connection to the hashmap), and pass through
all other potential errors unmodified. Part of #9939.
src/shared/seccomp-util.c