summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorLibo Chen <clbchenlibo.chen@huawei.com>2013-12-11 14:11:28 +0800
committerMimi Zohar <zohar@linux.vnet.ibm.com>2014-03-04 16:53:03 -0500
commit31d4b761896101660b3efe01816b63d9814755eb (patch)
tree2c4ddc9cfa5fcf1575c3893b64e7d658ea74b615 /security
parent864f32a52b53341c54a25953afb5b66ed79a7f76 (diff)
downloadlinux-31d4b761896101660b3efe01816b63d9814755eb.tar.gz
linux-31d4b761896101660b3efe01816b63d9814755eb.tar.bz2
linux-31d4b761896101660b3efe01816b63d9814755eb.zip
ima: new helper: file_inode(file)
Replace "file->f_dentry->d_inode" with the new file_inode() helper function. Signed-off-by: Libo Chen <clbchenlibo.chen@huawei.com> Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Diffstat (limited to 'security')
-rw-r--r--security/integrity/ima/ima_api.c2
1 files changed, 1 insertions, 1 deletions
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;