Take ima_file_free() to proper place.

Hooks: Just Say No.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 89068c57 1e93d005

+1 -2
+1
fs/file_table.c
··· 253 253 if (file->f_op && file->f_op->release) 254 254 file->f_op->release(inode, file); 255 255 security_file_free(file); 256 + ima_file_free(file); 256 257 if (unlikely(S_ISCHR(inode->i_mode) && inode->i_cdev != NULL)) 257 258 cdev_put(inode->i_cdev); 258 259 fops_put(file->f_op);
-2
security/security.c
··· 666 666 void security_file_free(struct file *file) 667 667 { 668 668 security_ops->file_free_security(file); 669 - if (file->f_dentry) 670 - ima_file_free(file); 671 669 } 672 670 673 671 int security_file_ioctl(struct file *file, unsigned int cmd, unsigned long arg)