Re: [RFC 1/8] key: add l_key_search
Denis Kenzior <[email protected]> Tue, 22 Nov 2022 11:09:20 -0600
| Newsgroups | dev.linux.lists.ell |
|---|---|
| Message-ID | <[email protected]> |
Hi James, >>> +LIB_EXPORT int32_t l_key_search(enum l_key_type type, const char >>> *keyring, >> >> How likely are we to search some custom keyring? Wouldn't we >> generally be >> searching a user/default user session keyrings? > > I was just leaning on the side of flexibility. I don't really care > either way but figured an extra argument was fine even if we end up > calling it with "user". So this function would perform some sort of !strcmp conversion between "user" and KEY_SPEC_USER_KEYRING? That's fine I suppose. Alternatively you can ignore that for now and if you really need to search keyrings that are not "standard", then one can introduce l_keyring_search() or something later. Regards, -Denis