From 7454aec7ff3797a346fc926aea2dc615fdb97990 Mon Sep 17 00:00:00 2001 From: Susant Sahani Date: Wed, 25 Jan 2017 00:07:52 +0530 Subject: [PATCH] networkd: Allow ':' in label IFA_LABEL does not need much of a validation except the length that is IFNAMSIZ as seen from kernel code. --- src/network/networkd-address.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c index 2b698d9..ffd2e18 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; } -- 2.7.4