seccomp: react gracefully if we can't translate a syscall name
authorLennart Poettering <lennart@poettering.net>
Thu, 5 Oct 2017 09:23:07 +0000 (11:23 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 5 Oct 2017 09:27:34 +0000 (11:27 +0200)
commitff217dc3afe95504e48aeb8d8ad7fb7f53ce9cb1
tree69230f38ecc937035e176329973273c2f09a1a63
parent4c3a917617260956faeb4eceb606c316f6bea407
seccomp: react gracefully if we can't translate a syscall name

When a libseccomp implementation doesn't know a syscall yet, that's no
reason for us to fail completely. Instead, debug log, and proceed.

This hopefully fixes the preadv2/pwritev2 issues pointed out here:

https://github.com/systemd/systemd/pull/6952#issuecomment-334302923
src/shared/seccomp-util.c