Re: [PATCH 1/3] Keys: Pass session keyring to call_usermodehelper()

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

 



David Howells <[email protected]> wrote:
>
> 
> Andrew Morton <[email protected]> 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux