Project

General

Profile

Actions

Bug #7667

closed

libdladm/dlmgmtd should do a better link name validation

Added by Yuri Pankov about 5 years ago. Updated about 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 #1

Updated by Electric Monk about 5 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 50 to 100

git commit 3ee56226c4efe6840fa4df649fc5a30c659db943

commit  3ee56226c4efe6840fa4df649fc5a30c659db943
Author: Yuri Pankov <yuri.pankov@nexenta.com>
Date:   2016-12-21T05:25:18.000Z

    7667 libdladm/dlmgmtd should do a better link name validation
    Reviewed by: Roman Strashkin <roman.strashkin@nexenta.com>
    Reviewed by: Igor Kozhukhov <igor@dilos.org>
    Approved by: Robert Mustacchi <rm@joyent.com>

Actions #2

Updated by Yuri Pankov almost 5 years ago

  • Related to Bug #599: SIOCSLIFNAME Err#22 EINVAL added
Actions

Also available in: Atom PDF