mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 02:21:44 +03:00
sd-bus: catch up with current kdbus, don't do matches on kdbus monitor connections
This commit is contained in:
parent
e7100587da
commit
96ceff4283
@ -1180,6 +1180,10 @@ int bus_add_match_internal_kernel(
|
||||
|
||||
assert(bus);
|
||||
|
||||
/* Monitor streams don't support matches, make this a NOP */
|
||||
if (bus->hello_flags & KDBUS_HELLO_MONITOR)
|
||||
return 0;
|
||||
|
||||
bloom = alloca0(bus->bloom_size);
|
||||
|
||||
sz = ALIGN8(offsetof(struct kdbus_cmd_match, items));
|
||||
@ -1392,6 +1396,10 @@ int bus_remove_match_internal_kernel(
|
||||
|
||||
assert(bus);
|
||||
|
||||
/* Monitor streams don't support matches, make this a NOP */
|
||||
if (bus->hello_flags & KDBUS_HELLO_MONITOR)
|
||||
return 0;
|
||||
|
||||
zero(m);
|
||||
m.size = offsetof(struct kdbus_cmd_match, items);
|
||||
m.cookie = cookie;
|
||||
|
Loading…
Reference in New Issue
Block a user