[Devel] call_usermodehelper in containers
Oleg Nesterov
oleg at redhat.com
Mon Nov 18 10:02:59 PST 2013
On 11/18, Oleg Nesterov wrote:
>
> On 11/15, Eric W. Biederman wrote:
> >
> > I don't understand that one. Having a preforked thread with the proper
> > environment that can act like kthreadd in terms of spawning user mode
> > helpers works and is simple.
>
> Can't we ask ->child_reaper to create the non-daemonized kernel thread
> with the "right" ->nsproxy, ->fs, etc?
>
> IOW. Please the the "patch" below. It is obviously incomplete and wrong,
> and it can be more clear/clean. And probably we need another API. Just
> to explain what I mean.
Or, perhaps UMH_IN_MY_NS should only work if ->child_reaper explicitly
does, say, prctl(PR_SPAWN_UMH_IN_NS_HELPER) which forks the non-daemonized
kernel kthread_worker thread, I dunno.
Oleg.
More information about the Devel
mailing list