commit | 6c1488fd581a447ec87c4b59f0d33f95f0aa441b | [log] [tgz] |
---|---|---|
author | Mimi Zohar <zohar@linux.vnet.ibm.com> | Wed Sep 02 11:40:32 2009 -0400 |
committer | James Morris <jmorris@namei.org> | Thu Sep 03 12:06:12 2009 +1000 |
tree | ae7229de1dc5582413e76f45ffdc04ae941e1daa | |
parent | ee18d64c1f632043a02e6f5ba5e045bb26a5465f [diff] |
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>