CRED: Fix load_flat_shared_library() to initialise bprm correctly
authorDavid Howells <dhowells@redhat.com>
Thu, 28 Apr 2011 15:26:38 +0000 (16:26 +0100)
committerJames Morris <jmorris@namei.org>
Tue, 3 May 2011 00:10:51 +0000 (10:10 +1000)
commit3a852d3bd53e718206a18b015909c4b575952692
tree86a6f7a6a96f4b333cd65d883320a565b39b11a8
parentdb5ca356d8af8e43832c185ceec90850ff2ebb45
CRED: Fix load_flat_shared_library() to initialise bprm correctly

Fix binfmt_flag's load_flat_shared_library() to initialise bprm correctly.

Currently, prepare_binprm() is called with only .filename .file and .cred
fields set in bprm, but the .cred_prepared and .per_clear fields at least need
initialising.

Reported-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
fs/binfmt_flat.c