Interface names have no limitations on the allowed character set, only
a length restriction.
Widen the allowed character set for interface names to include any
printable character.
PR: 290916
Differential D53865
examples/jails: Allow any character in interface names Authored by jlduran on Fri, Nov 21, 7:41 PM. Tags None Referenced Files
Details
Diff Detail
Event TimelineComment Actions Using tabs, spaces or newlines in interface names is just asking for trouble. A lot of the rc.d shell code is not properly written to deal with such intentional stupidity. Comment Actions Right, I agree, I believe isprint(3) does not include those... Comment Actions Interesting. BastilleBSD has code to automatically sed ‘s/-/_/‘ for the /etc/rc.conf part when jail names contain a hyphen. I would at least consider allowing (.) as they are very common when using vlan with interfaces. |