Re: Question: How to switch a process namespace by nsfs "device" and inode number directly?

2018-09-11 Thread Chengdong Li
those threads' pid, then we could use setns. If the first item is not doable, I would like to try the second one. Thanks, Chengdong 在 2018/9/11 上午12:02, Andi Kleen 写道: On Mon, Sep 10, 2018 at 04:50:42PM +0800, Chengdong Li wrote: Hi folks, I am getting stuck by the lack of approach to

Question: How to switch a process namespace by nsfs "device" and inode number directly?

2018-09-10 Thread Chengdong Li
Hi folks, I am getting stuck by the lack of approach to switch process namespace by nsfs "device" and inode number in user-space,  for example (mnt: 0xf000) From my best understanding, the normal way to do that is by setns system call. But setns only accept fd that refer to a opened name