lkml.org 
[lkml]   [2018]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectQuestion: How to switch a process namespace by nsfs "device" and inode number directly?
Date
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

\
 
 \ /
  Last update: 2018-09-10 10:52    [W:0.086 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site