]> git.ipfire.org Git - thirdparty/systemd.git/commit
analyze security: fix recursive call of syscall_names_in_filter()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 1 Feb 2019 10:49:24 +0000 (11:49 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 4 Feb 2019 15:01:38 +0000 (16:01 +0100)
commit95832a0f8c2941df83e72dfc9d37eab20da8b1fa
tree5c5b9925a545245f87f4e2c22befb93f5f661e4a
parent6f61b14d5359fad70ffb20aafee076a0481a60bc
analyze security: fix recursive call of syscall_names_in_filter()

When `syscall_names_in_filter()` is called in itself, it is already
examined with `whitelist`. Or, in other words, `syscall_names_in_filter()`
returns bad or good in boolean. So, the returned value should not be
compared with `whitelist` again.

This replaces #11302.
src/analyze/analyze-security.c