]> git.ipfire.org Git - thirdparty/iproute2.git/commit
netns: more input validation
authorMatteo Croce <mcroce@redhat.com>
Tue, 25 Jul 2017 13:30:31 +0000 (15:30 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 27 Jul 2017 18:25:20 +0000 (11:25 -0700)
commitd3f0b091976b73842f2dbfcecaba341fd204c635
treef8488321d530e9be796064fa1cd1aab301af8bfa
parentc2a85c3bcd83ca0272bb4805cb5a315f282c4534
netns: more input validation

ip netns accepts invalid input as namespace name like an empty string or a
string longer than the maximum file name length.
Check that the netns name is not empty and less than or equal to NAME_MAX.

Signed-off-by: Matteo Croce <mcroce@redhat.com>
ip/ipnetns.c