IMA: open all files O_LARGEFILE
commitdacbd10990bae0b514a0d0164c6206452d777742
authorEric Paris <eparis@redhat.com>
Mon, 11 May 2009 17:59:22 +0000 (11 13:59 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 2 Jul 2009 23:49:37 +0000 (2 16:49 -0700)
treed53c7095e59d0433639cd94669edb2fcc53186c8
parentd7223f29a17d29152f79eb26196bc857735a6020
IMA: open all files O_LARGEFILE

commit 1a62e958fa4aaeeb752311b4f5e16b2a86737b23 upstream.

If IMA tried to measure a file which was larger than 4G dentry_open would fail
with -EOVERFLOW since IMA wasn't passing O_LARGEFILE.  This patch passes
O_LARGEFILE to all IMA opens to avoid this problem.

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