[PATCH] strndup_user: convert keyctl
authorDavi Arnaut <davi.arnaut@gmail.com>
Fri, 24 Mar 2006 11:18:43 +0000 (03:18 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 24 Mar 2006 15:33:31 +0000 (07:33 -0800)
commit0cb409d98e351e6817e0bc37fe6815fc14b2c036
tree2d3636949d65d5e4911bc9106ddfdf75872c2380
parent24277dda3a54aa5e6265487e1a3091e27f3c0c45
[PATCH] strndup_user: convert keyctl

Copies user-space string with strndup_user() and moves the type string
duplication code to a function (thus fixing a wrong check on the length of the
type.)

Signed-off-by: Davi Arnaut <davi.arnaut@gmail.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
security/keys/keyctl.c