analyze: fix offline check for syscal filter
authorLuca Boccassi <bluca@debian.org>
Thu, 31 Mar 2022 23:54:53 +0000 (00:54 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 28 Apr 2022 16:47:27 +0000 (18:47 +0200)
commitb5dfdf0301c5042a6882fe03cb167968ba8e3ee5
treed65b3d102fb0dc72fe77c3dd6c34f7a27f6a35a1
parent8ed1490de6e561b488a4ddd0dd9f267e88e4c92f
analyze: fix offline check for syscal filter

The deny/allow list check was inverted, if we are deny listing and the
hashmap contains the syscall then that's good

Fixes https://github.com/systemd/systemd/issues/22914

(cherry picked from commit dd51e725df9aec2847482131ef601e0215b371a0)
src/analyze/analyze-security.c