IMA: use current_cred() instead of current->cred
commit37bcbf13d32e4e453e9def79ee72bd953b88302f
authorEric Paris <eparis@redhat.com>
Mon, 11 May 2009 17:59:10 +0000 (11 13:59 -0400)
committerJames Morris <jmorris@namei.org>
Tue, 12 May 2009 01:06:01 +0000 (12 11:06 +1000)
tree30f2dac25dc846b483558bf5ac9afec0d4ac4e5e
parent107db7c7dd137aeb7361b8c2606ac936c0be58ff
IMA: use current_cred() instead of current->cred

Proper invocation of the current credentials is to use current_cred() not
current->cred.  This patches makes IMA use the new method.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Mimi Zohar <zohar@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/integrity/ima/ima_audit.c
security/integrity/ima/ima_main.c