]> git.baikalelectronics.ru Git - kernel.git/commit
IMA: open new file for read
authorMimi Zohar <zohar@linux.vnet.ibm.com>
Wed, 2 Sep 2009 15:40:32 +0000 (11:40 -0400)
committerJames Morris <jmorris@namei.org>
Thu, 3 Sep 2009 02:06:12 +0000 (12:06 +1000)
commitd392a30907ad1260afb0eba0ec73e76451a6523f
treeae7229de1dc5582413e76f45ffdc04ae941e1daa
parentfaf71be17e110658af3e98e710fcc865f3c96423
IMA: open new file for read

When creating a new file, ima_path_check() assumed the new file
was being opened for write. Call ima_path_check() with the
appropriate acc_mode so that the read/write counters are
incremented correctly.

Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
fs/namei.c