From: Yu Watanabe Date: Wed, 15 Jun 2022 16:14:30 +0000 (+0900) Subject: core/dbus-execute: drop unnecessary flag X-Git-Tag: v252-rc1~799^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1008d415e7054e206354fa54c61e4020f6f7573e;p=thirdparty%2Fsystemd.git core/dbus-execute: drop unnecessary flag The code block is called only when the list was empty, and the newly requested list is allow-list. Hence, invert_flag is always zero here. --- diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c index 59c93522962..0b28d4f6032 100644 --- a/src/core/dbus-execute.c +++ b/src/core/dbus-execute.c @@ -2470,7 +2470,7 @@ int bus_exec_context_set_transient_property( -1, c->syscall_filter, SECCOMP_PARSE_PERMISSIVE | - SECCOMP_PARSE_ALLOW_LIST | invert_flag, + SECCOMP_PARSE_ALLOW_LIST, u->id, NULL, 0); if (r < 0)