Lines Matching refs:field
77 const char *field, \
84 return log_error_errno(r, "Failed to parse %s=%s: %m", field, eq); \
86 r = sd_bus_message_append(m, "(sv)", field, \
97 const char *field, \
103 …return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Failed to parse %s: %s", field, eq); …
105 r = sd_bus_message_append(m, "(sv)", field, \
140 static int bus_append_string(sd_bus_message *m, const char *field, const char *eq) { in bus_append_string() argument
143 r = sd_bus_message_append(m, "(sv)", field, "s", eq); in bus_append_string()
150 static int bus_append_strv(sd_bus_message *m, const char *field, const char *eq, ExtractFlags flags… in bus_append_strv() argument
158 r = sd_bus_message_append_basic(m, 's', field); in bus_append_strv()
201 static int bus_append_byte_array(sd_bus_message *m, const char *field, const void *buf, size_t n) { in bus_append_byte_array() argument
208 r = sd_bus_message_append_basic(m, SD_BUS_TYPE_STRING, field); in bus_append_byte_array()
231 static int bus_append_parse_sec_rename(sd_bus_message *m, const char *field, const char *eq) { in bus_append_parse_sec_rename() argument
239 return log_error_errno(r, "Failed to parse %s=%s: %m", field, eq); in bus_append_parse_sec_rename()
241 l = strlen(field); in bus_append_parse_sec_rename()
244 strcpy(mempcpy(n, field, l - 3), "USec"); in bus_append_parse_sec_rename()
253 static int bus_append_parse_size(sd_bus_message *m, const char *field, const char *eq, uint64_t bas… in bus_append_parse_size() argument
259 return log_error_errno(r, "Failed to parse %s=%s: %m", field, eq); in bus_append_parse_size()
261 r = sd_bus_message_append(m, "(sv)", field, "t", v); in bus_append_parse_size()
268 static int bus_append_exec_command(sd_bus_message *m, const char *field, const char *eq) { in bus_append_exec_command() argument
273 bool is_ex_prop = endswith(field, "Ex"); in bus_append_exec_command()
337 upgraded_name = strjoin(field, "Ex"); in bus_append_exec_command()
362 r = sd_bus_message_append_basic(m, SD_BUS_TYPE_STRING, upgraded_name ?: field); in bus_append_exec_command()
437 static int bus_append_cgroup_property(sd_bus_message *m, const char *field, const char *eq) { in bus_append_cgroup_property() argument
440 if (STR_IN_SET(field, "DevicePolicy", in bus_append_cgroup_property()
445 return bus_append_string(m, field, eq); in bus_append_cgroup_property()
447 if (STR_IN_SET(field, "ManagedOOMMemoryPressureLimit")) { in bus_append_cgroup_property()
450 return log_error_errno(r, "Failed to parse %s value: %s", field, eq); in bus_append_cgroup_property()
453 r = sd_bus_message_append(m, "(sv)", field, "u", UINT32_SCALE_FROM_PERMYRIAD(r)); in bus_append_cgroup_property()
460 if (STR_IN_SET(field, "CPUAccounting", in bus_append_cgroup_property()
466 return bus_append_parse_boolean(m, field, eq); in bus_append_cgroup_property()
468 if (STR_IN_SET(field, "CPUWeight", in bus_append_cgroup_property()
472 return bus_append_cg_weight_parse(m, field, eq); in bus_append_cgroup_property()
474 if (STR_IN_SET(field, "CPUShares", in bus_append_cgroup_property()
476 return bus_append_cg_cpu_shares_parse(m, field, eq); in bus_append_cgroup_property()
478 if (STR_IN_SET(field, "AllowedCPUs", in bus_append_cgroup_property()
488 return log_error_errno(r, "Failed to parse %s value: %s", field, eq); in bus_append_cgroup_property()
494 return bus_append_byte_array(m, field, array, allocated); in bus_append_cgroup_property()
497 if (STR_IN_SET(field, "BlockIOWeight", in bus_append_cgroup_property()
499 return bus_append_cg_blkio_weight_parse(m, field, eq); in bus_append_cgroup_property()
501 if (streq(field, "DisableControllers")) in bus_append_cgroup_property()
504 if (streq(field, "Delegate")) { in bus_append_cgroup_property()
516 if (STR_IN_SET(field, "MemoryMin", in bus_append_cgroup_property()
527 r = sd_bus_message_append(m, "(sv)", field, "t", CGROUP_LIMIT_MAX); in bus_append_cgroup_property()
532 uint64_t empty_value = STR_IN_SET(field, in bus_append_cgroup_property()
540 r = sd_bus_message_append(m, "(sv)", field, "t", empty_value); in bus_append_cgroup_property()
554 n = strjoina(field, "Scale"); in bus_append_cgroup_property()
562 if (streq(field, "TasksMax")) in bus_append_cgroup_property()
563 return bus_append_safe_atou64(m, field, eq); in bus_append_cgroup_property()
565 return bus_append_parse_size(m, field, eq, 1024); in bus_append_cgroup_property()
568 if (streq(field, "CPUQuota")) { in bus_append_cgroup_property()
588 if (streq(field, "CPUQuotaPeriodSec")) { in bus_append_cgroup_property()
602 if (streq(field, "DeviceAllow")) { in bus_append_cgroup_property()
604 r = sd_bus_message_append(m, "(sv)", field, "a(ss)", 0); in bus_append_cgroup_property()
614 … r = sd_bus_message_append(m, "(sv)", field, "a(ss)", 1, path, strempty(rwm)); in bus_append_cgroup_property()
623 …if (cgroup_io_limit_type_from_string(field) >= 0 || STR_IN_SET(field, "BlockIOReadBandwidth", "Blo… in bus_append_cgroup_property()
625 r = sd_bus_message_append(m, "(sv)", field, "a(st)", 0); in bus_append_cgroup_property()
634 field, eq); in bus_append_cgroup_property()
647 r = sd_bus_message_append(m, "(sv)", field, "a(st)", 1, path, bytes); in bus_append_cgroup_property()
656 if (STR_IN_SET(field, "IODeviceWeight", in bus_append_cgroup_property()
659 r = sd_bus_message_append(m, "(sv)", field, "a(st)", 0); in bus_append_cgroup_property()
668 field, eq); in bus_append_cgroup_property()
675 … return log_error_errno(r, "Failed to parse %s value %s: %m", field, weight); in bus_append_cgroup_property()
677 r = sd_bus_message_append(m, "(sv)", field, "a(st)", 1, path, u); in bus_append_cgroup_property()
686 if (streq(field, "IODeviceLatencyTargetSec")) { in bus_append_cgroup_property()
699 field, eq); in bus_append_cgroup_property()
706 … return log_error_errno(r, "Failed to parse %s value %s: %m", field, target); in bus_append_cgroup_property()
717 if (STR_IN_SET(field, "IPAddressAllow", in bus_append_cgroup_property()
724 r = sd_bus_message_append(m, "(sv)", field, "a(iayu)", 0); in bus_append_cgroup_property()
735 r = sd_bus_message_append_basic(m, SD_BUS_TYPE_STRING, field); in bus_append_cgroup_property()
811 … return log_error_errno(r, "Failed to parse %s: %s", field, eq); in bus_append_cgroup_property()
838 if (STR_IN_SET(field, "IPIngressFilterPath", in bus_append_cgroup_property()
841 r = sd_bus_message_append(m, "(sv)", field, "as", 0); in bus_append_cgroup_property()
843 r = sd_bus_message_append(m, "(sv)", field, "as", 1, eq); in bus_append_cgroup_property()
851 if (streq(field, "BPFProgram")) { in bus_append_cgroup_property()
853 r = sd_bus_message_append(m, "(sv)", field, "a(ss)", 0); in bus_append_cgroup_property()
861 return log_error_errno(r, "Failed to parse %s: %m", field); in bus_append_cgroup_property()
863 r = sd_bus_message_append(m, "(sv)", field, "a(ss)", 1, word, eq); in bus_append_cgroup_property()
871 if (STR_IN_SET(field, "SocketBindAllow", in bus_append_cgroup_property()
874 r = sd_bus_message_append(m, "(sv)", field, "a(iiqq)", 0); in bus_append_cgroup_property()
883 return log_error_errno(r, "Failed to parse %s", field); in bus_append_cgroup_property()
886 … m, "(sv)", field, "a(iiqq)", 1, family, ip_protocol, nr_ports, port_min); in bus_append_cgroup_property()
897 static int bus_append_automount_property(sd_bus_message *m, const char *field, const char *eq) { in bus_append_automount_property() argument
898 if (STR_IN_SET(field, "Where", in bus_append_automount_property()
900 return bus_append_string(m, field, eq); in bus_append_automount_property()
902 if (streq(field, "DirectoryMode")) in bus_append_automount_property()
903 return bus_append_parse_mode(m, field, eq); in bus_append_automount_property()
905 if (streq(field, "TimeoutIdleSec")) in bus_append_automount_property()
906 return bus_append_parse_sec_rename(m, field, eq); in bus_append_automount_property()
911 static int bus_append_execute_property(sd_bus_message *m, const char *field, const char *eq) { in bus_append_execute_property() argument
915 if (STR_IN_SET(field, "User", in bus_append_execute_property()
937 return bus_append_string(m, field, eq); in bus_append_execute_property()
939 if (STR_IN_SET(field, "IgnoreSIGPIPE", in bus_append_execute_property()
965 return bus_append_parse_boolean(m, field, eq); in bus_append_execute_property()
967 if (STR_IN_SET(field, "ReadWriteDirectories", in bus_append_execute_property()
980 return bus_append_strv(m, field, eq, EXTRACT_UNQUOTE); in bus_append_execute_property()
982 if (STR_IN_SET(field, "SyslogLevel", in bus_append_execute_property()
984 return bus_append_log_level_from_string(m, field, eq); in bus_append_execute_property()
986 if (streq(field, "SyslogFacility")) in bus_append_execute_property()
987 return bus_append_log_facility_unshifted_from_string(m, field, eq); in bus_append_execute_property()
989 if (streq(field, "SecureBits")) in bus_append_execute_property()
990 return bus_append_secure_bits_from_string(m, field, eq); in bus_append_execute_property()
992 if (streq(field, "CPUSchedulingPolicy")) in bus_append_execute_property()
993 return bus_append_sched_policy_from_string(m, field, eq); in bus_append_execute_property()
995 if (STR_IN_SET(field, "CPUSchedulingPriority", in bus_append_execute_property()
997 return bus_append_safe_atoi(m, field, eq); in bus_append_execute_property()
999 if (streq(field, "CoredumpFilter")) in bus_append_execute_property()
1000 return bus_append_coredump_filter_mask_from_string(m, field, eq); in bus_append_execute_property()
1002 if (streq(field, "Nice")) in bus_append_execute_property()
1003 return bus_append_parse_nice(m, field, eq); in bus_append_execute_property()
1005 if (streq(field, "SystemCallErrorNumber")) in bus_append_execute_property()
1006 return bus_append_seccomp_parse_errno_or_action(m, field, eq); in bus_append_execute_property()
1008 if (streq(field, "IOSchedulingClass")) in bus_append_execute_property()
1009 return bus_append_ioprio_class_from_string(m, field, eq); in bus_append_execute_property()
1011 if (streq(field, "IOSchedulingPriority")) in bus_append_execute_property()
1012 return bus_append_ioprio_parse_priority(m, field, eq); in bus_append_execute_property()
1014 if (STR_IN_SET(field, "RuntimeDirectoryMode", in bus_append_execute_property()
1020 return bus_append_parse_mode(m, field, eq); in bus_append_execute_property()
1022 if (streq(field, "TimerSlackNSec")) in bus_append_execute_property()
1023 return bus_append_parse_nsec(m, field, eq); in bus_append_execute_property()
1025 if (streq(field, "LogRateLimitIntervalSec")) in bus_append_execute_property()
1026 return bus_append_parse_sec_rename(m, field, eq); in bus_append_execute_property()
1028 if (STR_IN_SET(field, "LogRateLimitBurst", in bus_append_execute_property()
1031 return bus_append_safe_atou(m, field, eq); in bus_append_execute_property()
1033 if (streq(field, "MountFlags")) in bus_append_execute_property()
1034 return bus_append_mount_propagation_flags_from_string(m, field, eq); in bus_append_execute_property()
1036 if (STR_IN_SET(field, "Environment", in bus_append_execute_property()
1039 return bus_append_strv(m, field, eq, EXTRACT_UNQUOTE|EXTRACT_CUNESCAPE); in bus_append_execute_property()
1041 if (streq(field, "EnvironmentFile")) { in bus_append_execute_property()
1054 if (STR_IN_SET(field, "SetCredential", "SetCredentialEncrypted")) { in bus_append_execute_property()
1059 r = sd_bus_message_append_basic(m, 's', field); in bus_append_execute_property()
1077 … return log_error_errno(r, "Failed to parse %s= parameter: %s", field, eq); in bus_append_execute_property()
1079 … return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Missing argument to %s=.", field); in bus_append_execute_property()
1093 if (streq(field, "SetCredentialEncrypted")) { in bus_append_execute_property()
1108 … return log_error_errno(l, "Failed to unescape %s= value: %s", field, p); in bus_append_execute_property()
1135 if (STR_IN_SET(field, "LoadCredential", "LoadCredentialEncrypted")) { in bus_append_execute_property()
1140 r = sd_bus_message_append_basic(m, 's', field); in bus_append_execute_property()
1158 … return log_error_errno(r, "Failed to parse %s= parameter: %s", field, eq); in bus_append_execute_property()
1160 … return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Missing argument to %s=.", field); in bus_append_execute_property()
1181 if (streq(field, "LogExtraFields")) { in bus_append_execute_property()
1217 if (STR_IN_SET(field, "StandardInput", in bus_append_execute_property()
1223 appended = strjoina(field, "FileDescriptorName"); in bus_append_execute_property()
1226 appended = strjoina(field, "File"); in bus_append_execute_property()
1229 appended = strjoina(field, "FileToAppend"); in bus_append_execute_property()
1232 appended = strjoina(field, "FileToTruncate"); in bus_append_execute_property()
1235 r = sd_bus_message_append(m, "(sv)", field, "s", eq); in bus_append_execute_property()
1242 if (streq(field, "StandardInputText")) { in bus_append_execute_property()
1256 return bus_append_byte_array(m, field, unescaped, l + 1); in bus_append_execute_property()
1259 if (streq(field, "StandardInputData")) { in bus_append_execute_property()
1267 return bus_append_byte_array(m, field, decoded, sz); in bus_append_execute_property()
1270 if ((suffix = startswith(field, "Limit"))) { in bus_append_execute_property()
1282 r = sd_bus_message_append(m, "(sv)", field, "t", l.rlim_max); in bus_append_execute_property()
1286 sn = strjoina(field, "Soft"); in bus_append_execute_property()
1295 if (STR_IN_SET(field, "AppArmorProfile", in bus_append_execute_property()
1305 r = sd_bus_message_append(m, "(sv)", field, "(bs)", ignore, s); in bus_append_execute_property()
1312 if (STR_IN_SET(field, "CapabilityBoundingSet", in bus_append_execute_property()
1325 return log_error_errno(r, "Failed to parse %s value %s: %m", field, eq); in bus_append_execute_property()
1329 r = sd_bus_message_append(m, "(sv)", field, "t", sum); in bus_append_execute_property()
1336 if (streq(field, "CPUAffinity")) { in bus_append_execute_property()
1350 return log_error_errno(r, "Failed to parse %s value: %s", field, eq); in bus_append_execute_property()
1356 return bus_append_byte_array(m, field, array, allocated); in bus_append_execute_property()
1359 if (streq(field, "NUMAPolicy")) { in bus_append_execute_property()
1362 return log_error_errno(r, "Failed to parse %s value: %s", field, eq); in bus_append_execute_property()
1364 r = sd_bus_message_append(m, "(sv)", field, "i", (int32_t) r); in bus_append_execute_property()
1371 if (streq(field, "NUMAMask")) { in bus_append_execute_property()
1383 … return log_error_errno(r, "Failed to parse %s value: %s", field, eq); in bus_append_execute_property()
1390 return bus_append_byte_array(m, field, array, allocated); in bus_append_execute_property()
1393 if (STR_IN_SET(field, "RestrictAddressFamilies", in bus_append_execute_property()
1410 r = sd_bus_message_append_basic(m, SD_BUS_TYPE_STRING, field); in bus_append_execute_property()
1465 if (streq(field, "RestrictNamespaces")) { in bus_append_execute_property()
1482 … return log_error_errno(r, "Failed to parse %s value %s.", field, eq); in bus_append_execute_property()
1488 r = sd_bus_message_append(m, "(sv)", field, "t", (uint64_t) flags); in bus_append_execute_property()
1495 if (STR_IN_SET(field, "BindPaths", in bus_append_execute_property()
1503 r = sd_bus_message_append_basic(m, SD_BUS_TYPE_STRING, field); in bus_append_execute_property()
1583 if (streq(field, "TemporaryFileSystem")) { in bus_append_execute_property()
1590 r = sd_bus_message_append_basic(m, SD_BUS_TYPE_STRING, field); in bus_append_execute_property()
1641 if (streq(field, "RootHash")) { in bus_append_execute_property()
1656 return bus_append_byte_array(m, field, roothash_decoded, roothash_decoded_size); in bus_append_execute_property()
1659 if (streq(field, "RootHashSignature")) { in bus_append_execute_property()
1676 … return bus_append_byte_array(m, field, roothash_sig_decoded, roothash_sig_decoded_size); in bus_append_execute_property()
1679 if (streq(field, "RootImageOptions")) { in bus_append_execute_property()
1687 r = sd_bus_message_append_basic(m, SD_BUS_TYPE_STRING, field); in bus_append_execute_property()
1726 if (streq(field, "MountImages")) { in bus_append_execute_property()
1733 r = sd_bus_message_append_basic(m, SD_BUS_TYPE_STRING, field); in bus_append_execute_property()
1832 if (streq(field, "ExtensionImages")) { in bus_append_execute_property()
1839 r = sd_bus_message_append_basic(m, SD_BUS_TYPE_STRING, field); in bus_append_execute_property()
1933 … if (STR_IN_SET(field, "StateDirectory", "RuntimeDirectory", "CacheDirectory", "LogsDirectory")) { in bus_append_execute_property()
1975 r = sd_bus_message_append_basic(m, SD_BUS_TYPE_STRING, field); in bus_append_execute_property()
2006 if (streq(field, "StateDirectory")) in bus_append_execute_property()
2008 else if (streq(field, "RuntimeDirectory")) in bus_append_execute_property()
2010 else if (streq(field, "CacheDirectory")) in bus_append_execute_property()
2012 else if (streq(field, "LogsDirectory")) in bus_append_execute_property()
2054 static int bus_append_kill_property(sd_bus_message *m, const char *field, const char *eq) { in bus_append_kill_property() argument
2055 if (streq(field, "KillMode")) in bus_append_kill_property()
2056 return bus_append_string(m, field, eq); in bus_append_kill_property()
2058 if (STR_IN_SET(field, "SendSIGHUP", in bus_append_kill_property()
2060 return bus_append_parse_boolean(m, field, eq); in bus_append_kill_property()
2062 if (STR_IN_SET(field, "KillSignal", in bus_append_kill_property()
2066 return bus_append_signal_from_string(m, field, eq); in bus_append_kill_property()
2071 static int bus_append_mount_property(sd_bus_message *m, const char *field, const char *eq) { in bus_append_mount_property() argument
2073 if (STR_IN_SET(field, "What", in bus_append_mount_property()
2077 return bus_append_string(m, field, eq); in bus_append_mount_property()
2079 if (streq(field, "TimeoutSec")) in bus_append_mount_property()
2080 return bus_append_parse_sec_rename(m, field, eq); in bus_append_mount_property()
2082 if (streq(field, "DirectoryMode")) in bus_append_mount_property()
2083 return bus_append_parse_mode(m, field, eq); in bus_append_mount_property()
2085 if (STR_IN_SET(field, "SloppyOptions", in bus_append_mount_property()
2089 return bus_append_parse_boolean(m, field, eq); in bus_append_mount_property()
2094 static int bus_append_path_property(sd_bus_message *m, const char *field, const char *eq) { in bus_append_path_property() argument
2097 if (streq(field, "MakeDirectory")) in bus_append_path_property()
2098 return bus_append_parse_boolean(m, field, eq); in bus_append_path_property()
2100 if (streq(field, "DirectoryMode")) in bus_append_path_property()
2101 return bus_append_parse_mode(m, field, eq); in bus_append_path_property()
2103 if (STR_IN_SET(field, "PathExists", in bus_append_path_property()
2111 r = sd_bus_message_append(m, "(sv)", "Paths", "a(ss)", 1, field, eq); in bus_append_path_property()
2118 if (streq(field, "TriggerLimitBurst")) in bus_append_path_property()
2119 return bus_append_safe_atou(m, field, eq); in bus_append_path_property()
2121 if (streq(field, "TriggerLimitIntervalSec")) in bus_append_path_property()
2122 return bus_append_parse_sec_rename(m, field, eq); in bus_append_path_property()
2127 static int bus_append_scope_property(sd_bus_message *m, const char *field, const char *eq) { in bus_append_scope_property() argument
2128 if (streq(field, "RuntimeMaxSec")) in bus_append_scope_property()
2129 return bus_append_parse_sec_rename(m, field, eq); in bus_append_scope_property()
2131 if (streq(field, "RuntimeRandomizedExtraSec")) in bus_append_scope_property()
2132 return bus_append_parse_sec_rename(m, field, eq); in bus_append_scope_property()
2134 if (streq(field, "TimeoutStopSec")) in bus_append_scope_property()
2135 return bus_append_parse_sec_rename(m, field, eq); in bus_append_scope_property()
2140 static int bus_append_service_property(sd_bus_message *m, const char *field, const char *eq) { in bus_append_service_property() argument
2143 if (STR_IN_SET(field, "PIDFile", in bus_append_service_property()
2154 return bus_append_string(m, field, eq); in bus_append_service_property()
2156 if (STR_IN_SET(field, "PermissionsStartOnly", in bus_append_service_property()
2160 return bus_append_parse_boolean(m, field, eq); in bus_append_service_property()
2162 if (STR_IN_SET(field, "RestartSec", in bus_append_service_property()
2169 return bus_append_parse_sec_rename(m, field, eq); in bus_append_service_property()
2171 if (streq(field, "TimeoutSec")) { in bus_append_service_property()
2179 if (streq(field, "FileDescriptorStoreMax")) in bus_append_service_property()
2180 return bus_append_safe_atou(m, field, eq); in bus_append_service_property()
2182 if (STR_IN_SET(field, "ExecCondition", in bus_append_service_property()
2196 return bus_append_exec_command(m, field, eq); in bus_append_service_property()
2198 if (STR_IN_SET(field, "RestartPreventExitStatus", in bus_append_service_property()
2214 return log_error_errno(r, "Invalid syntax in %s: %s", field, eq); in bus_append_service_property()
2239 word, field); in bus_append_service_property()
2246 r = sd_bus_message_append_basic(m, SD_BUS_TYPE_STRING, field); in bus_append_service_property()
2284 static int bus_append_socket_property(sd_bus_message *m, const char *field, const char *eq) { in bus_append_socket_property() argument
2287 if (STR_IN_SET(field, "Accept", in bus_append_socket_property()
2301 return bus_append_parse_boolean(m, field, eq); in bus_append_socket_property()
2303 if (STR_IN_SET(field, "Priority", in bus_append_socket_property()
2306 return bus_append_safe_atoi(m, field, eq); in bus_append_socket_property()
2308 if (streq(field, "IPTOS")) in bus_append_socket_property()
2309 return bus_append_ip_tos_from_string(m, field, eq); in bus_append_socket_property()
2311 if (STR_IN_SET(field, "Backlog", in bus_append_socket_property()
2316 return bus_append_safe_atou(m, field, eq); in bus_append_socket_property()
2318 if (STR_IN_SET(field, "SocketMode", in bus_append_socket_property()
2320 return bus_append_parse_mode(m, field, eq); in bus_append_socket_property()
2322 if (STR_IN_SET(field, "MessageQueueMaxMessages", in bus_append_socket_property()
2324 return bus_append_safe_atoi64(m, field, eq); in bus_append_socket_property()
2326 if (STR_IN_SET(field, "TimeoutSec", in bus_append_socket_property()
2331 return bus_append_parse_sec_rename(m, field, eq); in bus_append_socket_property()
2333 if (STR_IN_SET(field, "ReceiveBuffer", in bus_append_socket_property()
2336 return bus_append_parse_size(m, field, eq, 1024); in bus_append_socket_property()
2338 if (STR_IN_SET(field, "ExecStartPre", in bus_append_socket_property()
2342 return bus_append_exec_command(m, field, eq); in bus_append_socket_property()
2344 if (STR_IN_SET(field, "SmackLabel", in bus_append_socket_property()
2354 return bus_append_string(m, field, eq); in bus_append_socket_property()
2356 if (streq(field, "Symlinks")) in bus_append_socket_property()
2357 return bus_append_strv(m, field, eq, EXTRACT_UNQUOTE); in bus_append_socket_property()
2359 if (streq(field, "SocketProtocol")) in bus_append_socket_property()
2360 return bus_append_parse_ip_protocol(m, field, eq); in bus_append_socket_property()
2362 if (STR_IN_SET(field, "ListenStream", in bus_append_socket_property()
2373 … r = sd_bus_message_append(m, "(sv)", "Listen", "a(ss)", 1, field + STRLEN("Listen"), eq); in bus_append_socket_property()
2382 static int bus_append_timer_property(sd_bus_message *m, const char *field, const char *eq) { in bus_append_timer_property() argument
2385 if (STR_IN_SET(field, "WakeSystem", in bus_append_timer_property()
2391 return bus_append_parse_boolean(m, field, eq); in bus_append_timer_property()
2393 if (STR_IN_SET(field, "AccuracySec", in bus_append_timer_property()
2395 return bus_append_parse_sec_rename(m, field, eq); in bus_append_timer_property()
2397 if (STR_IN_SET(field, "OnActiveSec", in bus_append_timer_property()
2408 return log_error_errno(r, "Failed to parse %s=%s: %m", field, eq); in bus_append_timer_property()
2410 … r = sd_bus_message_append(m, "(sv)", "TimersMonotonic", "a(st)", 1, field, t); in bus_append_timer_property()
2418 if (streq(field, "OnCalendar")) { in bus_append_timer_property()
2422 … r = sd_bus_message_append(m, "(sv)", "TimersCalendar", "a(ss)", 1, field, eq); in bus_append_timer_property()
2432 static int bus_append_unit_property(sd_bus_message *m, const char *field, const char *eq) { in bus_append_unit_property() argument
2437 if (STR_IN_SET(field, "Description", in bus_append_unit_property()
2447 return bus_append_string(m, field, eq); in bus_append_unit_property()
2449 if (STR_IN_SET(field, "StopWhenUnneeded", in bus_append_unit_property()
2455 return bus_append_parse_boolean(m, field, eq); in bus_append_unit_property()
2457 if (STR_IN_SET(field, "JobTimeoutSec", in bus_append_unit_property()
2460 return bus_append_parse_sec_rename(m, field, eq); in bus_append_unit_property()
2462 if (streq(field, "StartLimitBurst")) in bus_append_unit_property()
2463 return bus_append_safe_atou(m, field, eq); in bus_append_unit_property()
2465 if (STR_IN_SET(field, "SuccessActionExitStatus", in bus_append_unit_property()
2468 r = sd_bus_message_append(m, "(sv)", field, "i", -1); in bus_append_unit_property()
2474 return log_error_errno(r, "Failed to parse %s=%s", field, eq); in bus_append_unit_property()
2476 r = sd_bus_message_append(m, "(sv)", field, "i", (int) u); in bus_append_unit_property()
2484 if (unit_dependency_from_string(field) >= 0 || in bus_append_unit_property()
2485 STR_IN_SET(field, "Documentation", in bus_append_unit_property()
2488 return bus_append_strv(m, field, eq, EXTRACT_UNQUOTE); in bus_append_unit_property()
2490 t = condition_type_from_string(field); in bus_append_unit_property()
2494 t = assert_type_from_string(field); in bus_append_unit_property()
2511 field, trigger, negate, p); in bus_append_unit_property()
2523 const char *eq, *field; in bus_append_unit_property_assignment() local
2534 field = strndupa_safe(assignment, eq - assignment); in bus_append_unit_property_assignment()
2539 r = bus_append_cgroup_property(m, field, eq); in bus_append_unit_property_assignment()
2543 r = bus_append_execute_property(m, field, eq); in bus_append_unit_property_assignment()
2547 r = bus_append_kill_property(m, field, eq); in bus_append_unit_property_assignment()
2551 r = bus_append_service_property(m, field, eq); in bus_append_unit_property_assignment()
2557 r = bus_append_cgroup_property(m, field, eq); in bus_append_unit_property_assignment()
2561 r = bus_append_execute_property(m, field, eq); in bus_append_unit_property_assignment()
2565 r = bus_append_kill_property(m, field, eq); in bus_append_unit_property_assignment()
2569 r = bus_append_socket_property(m, field, eq); in bus_append_unit_property_assignment()
2575 r = bus_append_timer_property(m, field, eq); in bus_append_unit_property_assignment()
2581 r = bus_append_path_property(m, field, eq); in bus_append_unit_property_assignment()
2587 r = bus_append_cgroup_property(m, field, eq); in bus_append_unit_property_assignment()
2593 r = bus_append_cgroup_property(m, field, eq); in bus_append_unit_property_assignment()
2597 r = bus_append_kill_property(m, field, eq); in bus_append_unit_property_assignment()
2601 r = bus_append_scope_property(m, field, eq); in bus_append_unit_property_assignment()
2607 r = bus_append_cgroup_property(m, field, eq); in bus_append_unit_property_assignment()
2611 r = bus_append_execute_property(m, field, eq); in bus_append_unit_property_assignment()
2615 r = bus_append_kill_property(m, field, eq); in bus_append_unit_property_assignment()
2619 r = bus_append_mount_property(m, field, eq); in bus_append_unit_property_assignment()
2626 r = bus_append_automount_property(m, field, eq); in bus_append_unit_property_assignment()
2643 r = bus_append_unit_property(m, field, eq); in bus_append_unit_property_assignment()