Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31d4b761 authored by Libo Chen's avatar Libo Chen Committed by Mimi Zohar
Browse files

ima: new helper: file_inode(file)



Replace "file->f_dentry->d_inode" with the new file_inode() helper
function.

Signed-off-by: default avatarLibo Chen <clbchenlibo.chen@huawei.com>
Signed-off-by: default avatarMimi Zohar <zohar@linux.vnet.ibm.com>
parent 864f32a5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -132,7 +132,7 @@ void ima_add_violation(struct file *file, const unsigned char *filename,
		       const char *op, const char *cause)
{
	struct ima_template_entry *entry;
	struct inode *inode = file->f_dentry->d_inode;
	struct inode *inode = file_inode(file);
	int violation = 1;
	int result;