CRED: Must initialise the new creds in prepare_kernel_cred()
authorDavid Howells <[email protected]>
Fri, 9 Jan 2009 16:13:46 +0000 (16:13 +0000)
committerLinus Torvalds <[email protected]>
Fri, 9 Jan 2009 19:53:53 +0000 (11:53 -0800)
commit43529c97122f2c851126447963eedcb8cba74fbe
tree4bcba354186ae52e84d57920012f94d47bf0f72b
parent0de336814107358bc8c4173bf9ce2d42445173fe
CRED: Must initialise the new creds in prepare_kernel_cred()

The newly allocated creds in prepare_kernel_cred() must be initialised
before get_uid() and get_group_info() can access them.  They should be
copied from the old credentials.

Reported-by: Steve Dickson <[email protected]>
Signed-off-by: David Howells <[email protected]>
Acked-by: Steve Dickson <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/cred.c