Re: [PATCH -mm 1/2] umh && creds: convert call_usermodehelper_keys() to use subprocess_info->init()

From: David Howells
Date: Fri Feb 26 2010 - 13:41:34 EST


Oleg Nesterov <oleg@xxxxxxxxxx> wrote:

> How? Without CLONE_THREAD copy_creds() always creates the new
> struct cred for the child?

Okay, that's a good point.

In which case, you should be calling install_session_keyring_to_cred(), just
so that the credentials installation is always done by the same piece of code.

David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/