Re: [PATCH] libnvdimm/security: Fix key lookup permissions

2020-07-07 Thread Dave Jiang
On 6/23/2020 9:35 PM, Dan Williams wrote: As of commit 8c0637e950d6 ("keys: Make the KEY_NEED_* perms an enum rather than a mask") lookup_user_key() needs an explicit declaration of what it wants to do with the key. Add KEY_NEED_SEARCH to fix a warning with the below signature, and fixes the

Re: [PATCH] libnvdimm/security: Fix key lookup permissions

2020-06-23 Thread Ira Weiny
On Tue, Jun 23, 2020 at 09:35:26PM -0700, Dan Williams wrote: > As of commit 8c0637e950d6 ("keys: Make the KEY_NEED_* perms an enum rather > than a mask") lookup_user_key() needs an explicit declaration of what it > wants to do with the key. Add KEY_NEED_SEARCH to fix a warning with the > below