aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/keyctl.h
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-05-29 14:01:52 -0700
committerDavid Howells <dhowells@redhat.com>2019-05-30 22:54:43 +0100
commit47546208657f28007f41574c2d27a3fe760f987d (patch)
treed6186a25fdd0cc9ee0c9a8249221a5806dc2fbd9 /include/uapi/linux/keyctl.h
parentkeys: Grant Link permission to possessers of request_key auth keys (diff)
downloadlinux-dev-47546208657f28007f41574c2d27a3fe760f987d.tar.xz
linux-dev-47546208657f28007f41574c2d27a3fe760f987d.zip
keys: Reuse keyring_index_key::desc_len in lookup_user_key()
When lookup_user_key() checks whether the key is possessed, it should use the key's existing index_key including the 'desc_len' field, rather than recomputing the 'desc_len'. This doesn't change the behavior; this way is just simpler and faster. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-by: James Morris <jamorris@linux.microsoft.com>
Diffstat (limited to 'include/uapi/linux/keyctl.h')
0 files changed, 0 insertions, 0 deletions