]> git.baikalelectronics.ru Git - kernel.git/commit
CRED: Must initialise the new creds in prepare_kernel_cred()
authorDavid Howells <dhowells@redhat.com>
Fri, 9 Jan 2009 16:13:46 +0000 (16:13 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 9 Jan 2009 19:53:53 +0000 (11:53 -0800)
commit3931b592f1189c05459e48f8809caf10249e4581
tree4bcba354186ae52e84d57920012f94d47bf0f72b
parent17af53430c6fe49556f39ce5a1d42d7cc7219256
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 <steved@redhat.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Steve Dickson <steved@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cred.c