}
r = sd_bus_message_append(m, "v", "i", oa);
+
} else if (STR_IN_SET(field, "ReadWriteDirectories", "ReadOnlyDirectories", "InaccessibleDirectories",
"ReadWritePaths", "ReadOnlyPaths", "InaccessiblePaths")) {
const char *p;
offset += word[offset] == '+';
if (!path_is_absolute(word + offset)) {
- log_error("Failed to parse %s value %s", field, eq);
+ log_error("Path specified by %s is not absolute: %s", field, eq);
return -EINVAL;
}
break;
if (!valid_user_group_name_or_id(word)) {
- log_error("Failed to parse %s value %s", field, eq);
+ log_error("Invalid group name or id is specified by %s: %s", field, eq);
return -EINVAL;
}
flags = (~flags) & NAMESPACE_FLAGS_ALL;
r = sd_bus_message_append(m, "v", "t", (uint64_t) flags);
+
} else if ((dep = unit_dependency_from_string(field)) >= 0)
+
r = sd_bus_message_append(m, "v", "as", 1, eq);
+
else if (streq(field, "MountFlags")) {
unsigned long f;
return log_error_errno(r, "Failed to parse mount propagation flags: %s", eq);
r = sd_bus_message_append(m, "v", "t", (uint64_t) f);
+
} else if (STR_IN_SET(field, "BindPaths", "BindReadOnlyPaths")) {
const char *p = eq;