mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Question: How to switch a process namespace by nsfs "device" and inode number directly?
@ 2018-09-10  8:50 Chengdong Li
  2018-09-10 16:02 ` Andi Kleen
  0 siblings, 1 reply; 4+ messages in thread
From: Chengdong Li @ 2018-09-10  8:50 UTC (permalink / raw)
  To: ebiederm, peterz, kjlx
  Cc: hbathini, brendan.d.gregg, ak, linux-kernel, chengdong.licd

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: 
0xf0000000)

 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 namespace, 
sometimes we couldn't get it.

For example:  After perf record, perf report couldn't work well once the 
process that runs inside a container has exited, as the /proc/pid/ns 
doesn't exist anymore after process exit.

Any comments are welcome!


Thanks,

Chengdong


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-09-12 16:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-10  8:50 Question: How to switch a process namespace by nsfs "device" and inode number directly? Chengdong Li
2018-09-10 16:02 ` Andi Kleen
2018-09-12  2:05   ` Chengdong Li
2018-09-12 16:51     ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome