]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/load-fragment.c
seccomp: rework functions for parsing system call filters 8280/head
authorLennart Poettering <lennart@poettering.net>
Mon, 26 Feb 2018 11:51:35 +0000 (12:51 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 27 Feb 2018 18:59:09 +0000 (19:59 +0100)
commit13d92c6300edbb1369f97c2e1bef4c4096de8ddb
tree120ab6d5ae6ee4c73b97e78fe895803d3512936e
parentfa7bc1d1c71e84b1676ed6853a09e612ca7bd67f
seccomp: rework functions for parsing system call filters

This reworks system call filter parsing, and replaces a couple of "bool"
function arguments by a single flags parameter.

This shouldn't change behaviour, except for one case: when we
recursively call our parsing function on our own syscall list, then
we'll lower the log level to LOG_DEBUG from LOG_WARNING, because at that
point things are just a problem in our own code rather than in the user
configuration we are parsing, and we shouldn't hence generate confusing
warnings about syntax errors.

Fixes: #8261
src/core/dbus-execute.c
src/core/load-fragment.c
src/shared/seccomp-util.c
src/shared/seccomp-util.h