mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-08 05:57:26 +03:00
bus-util: make more properties settable in --property=
Add a couple of new properties to the supported set we can pass in systemd-run's and systemd-nspawn's --property= switch.
This commit is contained in:
parent
6cd16034fc
commit
8bed4cbcc0
@ -1382,7 +1382,8 @@ int bus_append_unit_property_assignment(sd_bus_message *m, const char *assignmen
|
|||||||
|
|
||||||
if (STR_IN_SET(field,
|
if (STR_IN_SET(field,
|
||||||
"CPUAccounting", "MemoryAccounting", "BlockIOAccounting",
|
"CPUAccounting", "MemoryAccounting", "BlockIOAccounting",
|
||||||
"SendSIGHUP", "SendSIGKILL", "WakeSystem", "DefaultDependencies")) {
|
"SendSIGHUP", "SendSIGKILL", "WakeSystem", "DefaultDependencies",
|
||||||
|
"IgnoreSIGPIPE", "TTYVHangup", "TTYReset", "RemainAfterExit")) {
|
||||||
|
|
||||||
r = parse_boolean(eq);
|
r = parse_boolean(eq);
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
@ -1414,7 +1415,11 @@ int bus_append_unit_property_assignment(sd_bus_message *m, const char *assignmen
|
|||||||
|
|
||||||
r = sd_bus_message_append(m, "v", "t", u);
|
r = sd_bus_message_append(m, "v", "t", u);
|
||||||
|
|
||||||
} else if (STR_IN_SET(field, "User", "Group", "DevicePolicy", "KillMode"))
|
} else if (STR_IN_SET(field,
|
||||||
|
"User", "Group", "DevicePolicy", "KillMode",
|
||||||
|
"UtmpIdentifier", "UtmpMode", "PAMName", "TTYPath",
|
||||||
|
"StandardInput", "StandardOutput", "StandardError",
|
||||||
|
"Description", "Slice", "Type"))
|
||||||
r = sd_bus_message_append(m, "v", "s", eq);
|
r = sd_bus_message_append(m, "v", "s", eq);
|
||||||
|
|
||||||
else if (streq(field, "DeviceAllow")) {
|
else if (streq(field, "DeviceAllow")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user