VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Al Viro <viro@zeniv.linux.org.uk> 2009-12-16 04:53:03 -0500 committer: Al Viro <viro@zeniv.linux.org.uk> 2009-12-16 12:16:47 -0500 commit: 0552f879d45cecc35d8e372a591fc5ed863bca58 parent: 7715b521222b6ebb6e927fa261ed91ed687fe454
Commit Summary:
Untangling ima mess, part 1: alloc_file()
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/fs/file_table.c b/fs/file_table.c
index 361d76be8295..17a55b81be2d 100644
--- a/fs/file_table.c
+++ b/fs/file_table.c
@@ -21,6 +21,7 @@
 #include <linux/fsnotify.h>
 #include <linux/sysctl.h>
 #include <linux/percpu_counter.h>
+#include <linux/ima.h>
 
 #include <asm/atomic.h>
 
@@ -190,6 +191,7 @@ struct file *alloc_file(struct path *path, fmode_t mode,
 		error = mnt_clone_write(path->mnt);
 		WARN_ON(error);
 	}
+	ima_counts_get(file);
 	return file;
 }