From 1008d415e7054e206354fa54c61e4020f6f7573e Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 16 Jun 2022 01:14:30 +0900 Subject: [PATCH] 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. --- src/core/dbus-execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c index 59c9352296..0b28d4f603 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) -- 2.25.1