Re: [PATCH] KEYS: The request_key() syscall should link an existingkey to the dest keyring

From: Andrew Morton
Date: Mon Apr 26 2010 - 19:10:16 EST


On Mon, 26 Apr 2010 16:44:41 +0100
David Howells <dhowells@xxxxxxxxxx> wrote:

> The request_key() system call and request_key_and_link() should make a link
> from an existing key to the destination keyring (if supplied), not just from a
> new key to the destination keyring.
>
> This can be tested by:
>
> ring=`keyctl newring fred @s`
> keyctl request2 user debug:a a
> keyctl request user debug:a $ring
> keyctl list $ring
>
> If it says:
>
> keyring is empty
>
> then it didn't work. If it shows something like:
>
> 1 key in keyring:
> 1070462727: --alswrv 0 0 user: debug:a
>
> then it did.
>

I don't think I understand that description. Are you saying that the
patch switches things from the first example output into the second case?

Is the fix needed in -stable?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/