We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e93d00 commit 89068c5Copy full SHA for 89068c5
fs/file_table.c
@@ -253,6 +253,7 @@ void __fput(struct file *file)
253
if (file->f_op && file->f_op->release)
254
file->f_op->release(inode, file);
255
security_file_free(file);
256
+ ima_file_free(file);
257
if (unlikely(S_ISCHR(inode->i_mode) && inode->i_cdev != NULL))
258
cdev_put(inode->i_cdev);
259
fops_put(file->f_op);
security/security.c
@@ -666,8 +666,6 @@ int security_file_alloc(struct file *file)
666
void security_file_free(struct file *file)
667
{
668
security_ops->file_free_security(file);
669
- if (file->f_dentry)
670
- ima_file_free(file);
671
}
672
673
int security_file_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
0 commit comments