mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17: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);
|
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);
|
bloom = alloca0(bus->bloom_size);
|
||||||
|
|
||||||
sz = ALIGN8(offsetof(struct kdbus_cmd_match, items));
|
sz = ALIGN8(offsetof(struct kdbus_cmd_match, items));
|
||||||
@ -1392,6 +1396,10 @@ int bus_remove_match_internal_kernel(
|
|||||||
|
|
||||||
assert(bus);
|
assert(bus);
|
||||||
|
|
||||||
|
/* Monitor streams don't support matches, make this a NOP */
|
||||||
|
if (bus->hello_flags & KDBUS_HELLO_MONITOR)
|
||||||
|
return 0;
|
||||||
|
|
||||||
zero(m);
|
zero(m);
|
||||||
m.size = offsetof(struct kdbus_cmd_match, items);
|
m.size = offsetof(struct kdbus_cmd_match, items);
|
||||||
m.cookie = cookie;
|
m.cookie = cookie;
|
||||||
|
Loading…
Reference in New Issue
Block a user