From: Libo Chen Date: Wed, 11 Dec 2013 06:11:28 +0000 (+0800) Subject: ima: new helper: file_inode(file) X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=31d4b761896101660b3efe01816b63d9814755eb;p=linux-beck.git ima: new helper: file_inode(file) Replace "file->f_dentry->d_inode" with the new file_inode() helper function. Signed-off-by: Libo Chen Signed-off-by: Mimi Zohar --- diff --git a/security/integrity/ima/ima_api.c b/security/integrity/ima/ima_api.c index c38bbce8c6a6..6d76d4a01503 100644 --- a/security/integrity/ima/ima_api.c +++ b/security/integrity/ima/ima_api.c @@ -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;