1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-08 08:58:27 +03:00

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.
This commit is contained in:
Yu Watanabe 2022-06-16 01:14:30 +09:00
parent 8c93ebbdf0
commit 1008d415e7

View File

@ -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)