mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-29 21:55:25 +03:00
sd-bus: refuse properties that claim to be both writable and constant at the same time
This commit is contained in:
parent
4c3f1641f1
commit
9b772efb41
@ -1682,6 +1682,11 @@ static int add_object_vtable_internal(
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (v->flags & SD_BUS_VTABLE_PROPERTY_CONST) {
|
||||||
|
r = -EINVAL;
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
|
|
||||||
/* Fall through */
|
/* Fall through */
|
||||||
|
|
||||||
case _SD_BUS_VTABLE_PROPERTY: {
|
case _SD_BUS_VTABLE_PROPERTY: {
|
||||||
|
Loading…
Reference in New Issue
Block a user