lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150311074020.GA26477@angus-think.wlc.globallogic.com>
Date:	Wed, 11 Mar 2015 09:40:20 +0200
From:	Vadim Kochan <vadim4j@...il.com>
To:	netdev@...r.kernel.org
Subject: iproute2: ip netns: Do not delete netns if there any process use it


Hi,

There might be case when it is possible to loose device which was
moved to netns if there is process which is running is that netns:

    $ ip netns add net
    $ ip link set dev eth0 netns net0
    $ ip netns exec net0 SOME_PROCESS_IN_BACKGROUND
    $ ip netns del net0

so eth0 will not appear in the default netns until SOME_PROCESS_IN_BACKGROUND will exit or
will ne killed. So to avoid such case it might be better to do not
delete netns if there are process in it ? I meant add such validation
for 'ip netns del' command.

What do you think ?

Thanks,
Vadim Kochan
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ