summaryrefslogtreecommitdiffstats
path: root/security/integrity/ima/ima_api.c
diff options
context:
space:
mode:
authorLibo Chen <clbchenlibo.chen@huawei.com>2013-12-11 07:11:28 +0100
committerMimi Zohar <zohar@linux.vnet.ibm.com>2014-03-04 22:53:03 +0100
commit31d4b761896101660b3efe01816b63d9814755eb (patch)
tree2c4ddc9cfa5fcf1575c3893b64e7d658ea74b615 /security/integrity/ima/ima_api.c
parentkernel: Mark function as static in kernel/seccomp.c (diff)
downloadlinux-31d4b761896101660b3efe01816b63d9814755eb.tar.xz
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/integrity/ima/ima_api.c')
-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;