From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:56359 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S941868AbcJZMlw (ORCPT ); Wed, 26 Oct 2016 08:41:52 -0400 Date: Wed, 26 Oct 2016 14:31:32 +0200 From: Greg KH To: Mark Cc: linux-fsdevel@vger.kernel.org Subject: Re: Can I move a kernel thread into a special mount namespace Message-ID: <20161026123132.GA4721@kroah.com> References: <69ad7e46-26ae-2e7b-3eda-31a676203fac@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <69ad7e46-26ae-2e7b-3eda-31a676203fac@163.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Sun, Oct 16, 2016 at 07:18:43PM +0800, Mark wrote: > 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. Very odd requirement, do you have a pointer to your code anywhere? What exactly will that kernel thread do? And why use such an obsolete and old kernel version? thanks, greg k-h