projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c93ebb
)
core/dbus-execute: drop unnecessary flag
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Wed, 15 Jun 2022 16:14:30 +0000
(
01:14
+0900)
committer
Yu 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
patch
|
blob
|
history
diff --git
a/src/core/dbus-execute.c
b/src/core/dbus-execute.c
index 59c935229623ca880358fc1ee25ee0c9b6b6e4f2..0b28d4f6032842c93278b27ea9e776c9ac5e2749 100644
(file)
--- 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)