Lines Matching refs:mask_field
1388 } mask_field[] = { in user_group_record_mangle() local
1399 JsonVariant *array[ELEMENTSOF(mask_field) * 2]; in user_group_record_mangle()
1425 for (size_t i = 0; i < ELEMENTSOF(mask_field); i++) { in user_group_record_mangle()
1428 if (FLAGS_SET(USER_RECORD_STRIP_MASK(load_flags), mask_field[i].mask)) { in user_group_record_mangle()
1432 r = json_variant_filter(&w, STRV_MAKE(mask_field[i].name)); in user_group_record_mangle()
1439 e = json_variant_by_key_full(v, mask_field[i].name, &k); in user_group_record_mangle()
1441 if (!FLAGS_SET(USER_RECORD_ALLOW_MASK(load_flags), mask_field[i].mask)) in user_group_record_mangle()
1442 …SYNTHETIC_ERRNO(EBADMSG), "Record contains '%s' field, which is not allowed.", mask_field[i].name); in user_group_record_mangle()
1449 m |= mask_field[i].mask; in user_group_record_mangle()
1451 if (FLAGS_SET(USER_RECORD_REQUIRE_MASK(load_flags), mask_field[i].mask)) in user_group_record_mangle()
1452 …lags, SYNTHETIC_ERRNO(EBADMSG), "Record lacks '%s' field, which is required.", mask_field[i].name); in user_group_record_mangle()
1472 for (size_t j = 0; j < ELEMENTSOF(mask_field); j++) in user_group_record_mangle()
1473 … if (streq(f, mask_field[j].name)) { /* already covered in the loop above */ in user_group_record_mangle()