Project

General

Profile

Actions

Bug #7667

closed

libdladm/dlmgmtd should do a better link name validation

Added by Yuri Pankov over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2016-12-15
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

libdladm/dlmgmtd erroneously accepts link names like "aggr01" as valid. though ifconfig/ipadm are unable operate on them.

dladm(1M):

       link

           A datalink, identified by a name. In general, the name can use any
           alphanumeric characters (or the underscore, _), but must start with
           an alphabetic character and end with a number. A datalink name can
           be at most 31 characters, and the ending number must be between 0
           and 4294967294 (inclusive). The ending number must not begin with a
           zero. Datalink names between 3 and 8 characters are recommended.


Related issues

Related to illumos gate - Bug #599: SIOCSLIFNAME Err#22 EINVALResolved2011-01-03

Actions
Actions

Also available in: Atom PDF