]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/dbus-execute: drop unnecessary flag
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 15 Jun 2022 16:14:30 +0000 (01:14 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 17 Jun 2022 03:26:50 +0000 (12:26 +0900)
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.

src/core/dbus-execute.c

index 59c935229623ca880358fc1ee25ee0c9b6b6e4f2..0b28d4f6032842c93278b27ea9e776c9ac5e2749 100644 (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)