summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAlexander Y. Fomichev <git.user@gmail.com>2014-08-25 16:26:45 +0400
committerDavid S. Miller <davem@davemloft.net>2014-08-25 15:17:43 -0700
commit4c75431ac3520631f1d9e74aa88407e6374dbbc4 (patch)
treef56e6a2cbb2622fbe24b1325f7800fd9d0b4305a /drivers
parenta45e92a599e77ee6a850eabdd0141633fde03915 (diff)
net: prevent of emerging cross-namespace symlinks
Code manipulating sysfs symlinks on adjacent net_devices(s) currently doesn't take into account that devices potentially belong to different namespaces. This patch trying to fix an issue as follows: - check for net_ns before creating / deleting symlink. for now only netdev_adjacent_rename_links and __netdev_adjacent_dev_remove are affected, afaics __netdev_adjacent_dev_insert implies both net_devs belong to the same namespace. - Drop all existing symlinks to / from all adj_devs before switching namespace and recreate them just after. Signed-off-by: Alexander Y. Fomichev <git.user@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions