core,seccomp: fix logic to parse syscall filter in dbus-execute.c
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 23 Dec 2017 09:45:32 +0000 (18:45 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 23 Dec 2017 09:45:32 +0000 (18:45 +0900)
commit898748d8b97194e43f909e6edf27c100ecaad1be
tree78fce10d14c30101c2feedb0884126115074ef2a
parente7bcff4ec4eeb1f04e2f35cecea4e50698dddb00
core,seccomp: fix logic to parse syscall filter in dbus-execute.c

If multiple SystemCallFilter= settings, some of them are whitelist
and the others are blacklist, are sent to bus, then the parse
result was corrupted.
This fixes the parse logic, now it is the same as one used in
load-fragment.c
src/core/dbus-execute.c
src/core/load-fragment.c
src/shared/seccomp-util.c
src/shared/seccomp-util.h