mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
networkd: Allow ':' in label
IFA_LABEL does not need much of a validation except the length that is IFNAMSIZ as seen from kernel code.
This commit is contained in:
@@ -809,8 +809,8 @@ int config_parse_label(
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
if (!ifname_valid(rvalue)) {
|
||||
log_syntax(unit, LOG_ERR, filename, line, 0, "Interface label is not valid or too long, ignoring assignment: %s", rvalue);
|
||||
if (strlen(rvalue) >= IFNAMSIZ) {
|
||||
log_syntax(unit, LOG_ERR, filename, line, 0, "Interface label is too long, ignoring assignment: %s", rvalue);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user