Lines Matching refs:field

2125 static int drop_from_identity(const char *field) {  in drop_from_identity()  argument
2128 assert(field); in drop_from_identity()
2132 r = strv_extend(&arg_identity_filter, field); in drop_from_identity()
2137 r = json_variant_filter(&arg_identity_extra, STRV_MAKE(field)); in drop_from_identity()
2141 r = json_variant_filter(&arg_identity_extra_this_machine, STRV_MAKE(field)); in drop_from_identity()
2145 r = json_variant_filter(&arg_identity_extra_privileged, STRV_MAKE(field)); in drop_from_identity()
2604 const char *field = in parse_argv() local
2614 assert(field); in parse_argv()
2617 r = drop_from_identity(field); in parse_argv()
2624 r = json_variant_set_field_string(&arg_identity_extra, field, optarg); in parse_argv()
2626 return log_error_errno(r, "Failed to set %s field: %m", field); in parse_argv()
2689 _cleanup_free_ char *field = NULL, *t = NULL; in parse_argv() local
2710 field = strndup(optarg, eq - optarg); in parse_argv()
2711 if (!field) in parse_argv()
2714 l = rlimit_from_string_harder(field); in parse_argv()
2716 return log_error_errno(l, "Unknown resource limit type: %s", field); in parse_argv()
2725 … r = json_variant_filter(&arg_identity_extra_rlimits, STRV_MAKE(field)); in parse_argv()
2793 const char *field = c == 'k' ? "skeletonDirectory" : "imagePath"; in parse_argv() local
2797 r = drop_from_identity(field); in parse_argv()
2808 … r = json_variant_set_field_string(&arg_identity_extra_this_machine, field, v); in parse_argv()
2918 const char *field = in parse_argv() local
2929 assert(field); in parse_argv()
2932 r = drop_from_identity(field); in parse_argv()
2941 return log_error_errno(r, "Failed to parse %s boolean: %m", field); in parse_argv()
2943 r = json_variant_set_field_boolean(&arg_identity_extra, field, r > 0); in parse_argv()
2945 return log_error_errno(r, "Failed to set %s field: %m", field); in parse_argv()
3069 const char *field = in parse_argv() local
3075 assert(field); in parse_argv()
3078 r = drop_from_identity(field); in parse_argv()
3085 … return log_error_errno(r, "Failed to parse %s parameter: %s", field, optarg); in parse_argv()
3087 r = json_variant_set_field_unsigned(&arg_identity_extra, field, n); in parse_argv()
3089 return log_error_errno(r, "Failed to set %s field: %m", field); in parse_argv()
3197 const char *field; in parse_argv() local
3200 field = c == ARG_NOT_BEFORE ? "notBeforeUSec" : in parse_argv()
3203 assert(field); in parse_argv()
3206 r = drop_from_identity(field); in parse_argv()
3219 … return log_error_errno(r, "Failed to parse %s parameter: %m", field); in parse_argv()
3221 r = json_variant_set_field_unsigned(&arg_identity_extra, field, n); in parse_argv()
3223 return log_error_errno(r, "Failed to set %s field: %m", field); in parse_argv()
3231 const char *field; in parse_argv() local
3234 field = c == ARG_PASSWORD_CHANGE_MIN ? "passwordChangeMinUSec" : in parse_argv()
3240 assert(field); in parse_argv()
3243 r = drop_from_identity(field); in parse_argv()
3252 … return log_error_errno(r, "Failed to parse %s parameter: %m", field); in parse_argv()
3254 r = json_variant_set_field_unsigned(&arg_identity_extra, field, n); in parse_argv()
3256 return log_error_errno(r, "Failed to set %s field: %m", field); in parse_argv()
3267 const char *field = in parse_argv() local
3275 assert(field); in parse_argv()
3278 r = drop_from_identity(field); in parse_argv()
3286 …rn log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Parameter for %s field not valid: %s", field, optarg); in parse_argv()
3291 &arg_identity_extra, field, optarg); in parse_argv()
3293 return log_error_errno(r, "Failed to set %s field: %m", field); in parse_argv()
3301 const char *field = in parse_argv() local
3308 assert(field); in parse_argv()
3311 r = drop_from_identity(field); in parse_argv()
3320 … return log_error_errno(r, "Failed to parse %s field: %s", field, optarg); in parse_argv()
3322 r = json_variant_set_field_unsigned(&arg_identity_extra, field, t); in parse_argv()
3324 return log_error_errno(r, "Failed to set %s field: %m", field); in parse_argv()
3404 const char *field = in parse_argv() local
3411 assert(field); in parse_argv()
3414 r = drop_from_identity(field); in parse_argv()
3422 … return log_error_errno(r, "Failed to parse %s parameter: %s", field, optarg); in parse_argv()
3424 … r = json_variant_set_field_unsigned(&arg_identity_extra_this_machine, field, u); in parse_argv()
3426 return log_error_errno(r, "Failed to set %s field: %m", field); in parse_argv()
3433 const char *field = c == ARG_CPU_WEIGHT ? "cpuWeight" : in parse_argv() local
3437 assert(field); in parse_argv()
3440 r = drop_from_identity(field); in parse_argv()
3453 r = json_variant_set_field_unsigned(&arg_identity_extra, field, u); in parse_argv()
3455 return log_error_errno(r, "Failed to set %s field: %m", field); in parse_argv()