X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=security%2Fkeys%2Frequest_key.c;h=43affcf10b22f2d0d4cc033a472b374596d4c578;hb=731c7d3a205ba89b475b2aa71b5f13dd6ae3de56;hp=a29e3554751e0862003b430ce116f52d182c27bb;hpb=26124f4b773078bce9d240be8c3f87217a90e80b;p=karo-tx-linux.git diff --git a/security/keys/request_key.c b/security/keys/request_key.c index a29e3554751e..43affcf10b22 100644 --- a/security/keys/request_key.c +++ b/security/keys/request_key.c @@ -442,7 +442,7 @@ static struct key *construct_key_and_link(struct keyring_search_context *ctx, if (ctx->index_key.type == &key_type_keyring) return ERR_PTR(-EPERM); - + user = key_user_lookup(current_fsuid()); if (!user) return ERR_PTR(-ENOMEM);