Can I move a kernel thread into a special mount namespace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux