]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/cachefiles/rdwr.c
CacheFiles: Update IMA counters when using dentry_open
[mv-sheeva.git] / fs / cachefiles / rdwr.c
index 1d8332563863ce5d858971a68f4a7463c72385c2..a6c8c6fe8df9ca5d54625a07496c8b2b42dd771f 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <linux/mount.h>
 #include <linux/file.h>
+#include <linux/ima.h>
 #include "internal.h"
 
 /*
@@ -922,6 +923,7 @@ int cachefiles_write_page(struct fscache_storage *op, struct page *page)
        if (IS_ERR(file)) {
                ret = PTR_ERR(file);
        } else {
+               ima_counts_get(file);
                ret = -EIO;
                if (file->f_op->write) {
                        pos = (loff_t) page->index << PAGE_SHIFT;