[CRIU] [PATCH] ip: set the close-on-exec flag for descriptors

Cyrill Gorcunov gorcunov at gmail.com
Mon Jun 3 18:08:45 EDT 2013


On Tue, Jun 04, 2013 at 02:05:46AM +0400, Andrey Vagin wrote:
> Otherwise a program executed by "ip netns exec" has two extra
> descriptors.
> 
> $ ip netns exec test /bin/bash
> $ lsof -p $$
> ...
> bash    817 root    0u   CHR  136,0       0t0          3 /dev/pts/0
> bash    817 root    1u   CHR  136,0       0t0          3 /dev/pts/0
> bash    817 root    2u   CHR  136,0       0t0          3 /dev/pts/0
> bash    817 root    3u  sock    0,6       0t0      13386 protocol: NETLINK
> bash    817 root    4r   REG    0,3         0 4026532155 net
> bash    817 root  255u   CHR  136,0       0t0          3 /dev/pts/0
> 
> Reported-by: Dilip Daya <dilip.daya at hp.com>
> Signed-off-by: Andrey Vagin <avagin at openvz.org>

Thanks a lot, Andrew!

Acked-by: Cyrill Gorcunov <gorcunov at openvz.org>


More information about the CRIU mailing list