seccomp: split out inner loop code of seccomp_add_syscall_filter_set()
authorLennart Poettering <lennart@poettering.net>
Sun, 10 Sep 2017 17:10:29 +0000 (19:10 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 Sep 2017 16:00:07 +0000 (18:00 +0200)
commit69b1b241bb8ad504f11e9eec4f2bceb5da0e1100
treef289d982f9a50bfd37d9581620698042b6b364e7
parent12dc37890254adf852439eb46ebb154fb3e37b41
seccomp: split out inner loop code of seccomp_add_syscall_filter_set()

Let's add a new helper function seccomp_add_syscall_filter_item() that
contains the inner loop code of seccomp_add_syscall_filter_set(). This
helper function we can then export and make use of elsewhere.
src/shared/seccomp-util.c
src/shared/seccomp-util.h