lkml.org 
[lkml]   [2005]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3] Keys: Pass session keyring to call_usermodehelper()
David Howells <dhowells@redhat.com> wrote:
>
>
> Andrew Morton <akpm@osdl.org> wrote:
>
> > > The attached patch makes it possible to pass a session keyring through to
> > > the process spawned by call_usermodehelper().
> >
> > hm. Seems likely to attract angry emails due to breakage of out-of-tree
> > stuff. Did you consider
> >
> > static inline int
> > call_usermodehelper(char *path, char **argv, char **envp, int wait)
> > {
> > return call_usermodehelper_keys(path, argv, envp, NULL, wait);
> > }
>
> No. I can do that if you want. It seems a bit excessive though.
>

Well one question is "does it make sense to make a keyring session a part
of the call_usermodehelper() API?". As it appears that only one caller
will ever want to do that then I'd say no, and that it should be some
specialised thing private to the key code and the call_usermodehelper()
implementation.

So unless you think that a significant number of callers will appear who
are actually using the new capability then it would be better to keep the
existing call_usermodehelper() API.

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

\
 
 \ /
  Last update: 2005-04-06 13:30    [W:0.084 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site