summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorSusant Sahani <susant@redhat.com>2017-01-25 00:07:52 +0530
committerSusant Sahani <susant@redhat.com>2017-01-25 00:07:52 +0530
commit7454aec7ff3797a346fc926aea2dc615fdb97990 (patch)
treee468f7f61bdfc345f6a3bd4b9692b902bd96d3a9 /src/network
parent7ed95830dcbb9c762399b66d926c9547aed291aa (diff)
networkd: Allow ':' in label
IFA_LABEL does not need much of a validation except the length that is IFNAMSIZ as seen from kernel code.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-address.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c
index 2b698d9531..ffd2e18a45 100644
--- a/src/network/networkd-address.c
+++ b/src/network/networkd-address.c
@@ -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;
}