netdev-dpdk: Do not add vhost-user ports with '/' or '\' in name.
authorDaniele Di Proietto <diproiettod@vmware.com>
Wed, 3 Feb 2016 01:24:32 +0000 (17:24 -0800)
committerDaniele Di Proietto <diproiettod@vmware.com>
Wed, 24 Feb 2016 02:37:08 +0000 (18:37 -0800)
commitb39c209833d4f3c40e89c43cd83a86c6c669acbc
treeb249e209e4ae469a9efeb8a5404933955029b1b4
parent27723faa570868bf42403c5944f2481f597d1dcd
netdev-dpdk: Do not add vhost-user ports with '/' or '\' in name.

This check prevents an obvious way for a vhost-user socket to escape the
intended directory.

There might be other ways to escape the directory (none comes to mind at
the moment), but this is a problem that should be properly solved by
mandatory access control.

A similar check is done for a bridge name, since that name is used as
part of a socket as well.

Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
INSTALL.DPDK.md
lib/netdev-dpdk.c