linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Can I move a kernel thread into a special mount namespace
@ 2016-10-16 11:18 Mark
  2016-10-26 12:31 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Mark @ 2016-10-16 11:18 UTC (permalink / raw)
  To: linux-fsdevel

Hi,

Our requirement is, a user process sends a command to a kernel (3.10)
module, and the kernel module creates a kernel thread, which has to be
in same mount space with the user process since they have to access a
same path, which is not mounted in root namespace. But seems all kernel
threads have one parent "threadd", which is in root name space.

My question is, can I create a kernel thread with a special mount
space(e.g, same with "current"), or move it after it is created? I have
checked the setns syscall kernel source but still have no idea. I also
have posted this question in stackoverflow but got no answer:
 
http://stackoverflow.com/questions/39869545/can-i-move-a-kernel-thread-from-one-namespace-to-another

Thank you very much.



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

end of thread, other threads:[~2016-11-13  9:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-16 11:18 Can I move a kernel thread into a special mount namespace Mark
2016-10-26 12:31 ` Greg KH
2016-11-13  8:50   ` Mark
2016-11-13  9:43     ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).