]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Keys: Fix permissions check for update vs add
authorDavid Howells <dhowells@redhat.com>
Thu, 1 Dec 2005 08:51:18 +0000 (00:51 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 1 Dec 2005 23:48:56 +0000 (15:48 -0800)
commit50592e0098de3eefe4516828b20a48a54308bcfb
treeabdc78339b1c1bd4e37cb496c68424d9d7d98592
parent0cd825d626497f1b6ab9d92ec99ca7eb7559e1cc
[PATCH] Keys: Fix permissions check for update vs add

Permit add_key() to once again update a matching key rather than adding a
new one if a matching key already exists in the target keyring.

This bug causes add_key() to always add a new key, displacing the old from
the target keyring.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
security/keys/keyring.c