seccomp: only abort on syscall name resolution failures (#3701)
authorLuca Bruno <lucab@debian.org>
Tue, 12 Jul 2016 09:55:26 +0000 (11:55 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Jul 2016 09:55:26 +0000 (11:55 +0200)
commit391b81cd03f0829e8a5c45b0eaefad4ef41f1285
treed837aab5eb1c69892ad8bf59cae58169519de37a
parente18ec3c71d6450de898cd46e659b560e18ee8430
seccomp: only abort on syscall name resolution failures (#3701)

seccomp_syscall_resolve_name() can return a mix of positive and negative
(pseudo-) syscall numbers, while errors are signaled via __NR_SCMP_ERROR.
This commit lets the syscall filter parser only abort on real parsing
failures, letting libseccomp handle pseudo-syscall number on its own
and allowing proper multiplexed syscalls filtering.
src/core/load-fragment.c