diff options
author | Libo Chen <clbchenlibo.chen@huawei.com> | 2013-12-11 07:11:28 +0100 |
---|---|---|
committer | Mimi Zohar <zohar@linux.vnet.ibm.com> | 2014-03-04 22:53:03 +0100 |
commit | 31d4b761896101660b3efe01816b63d9814755eb (patch) | |
tree | 2c4ddc9cfa5fcf1575c3893b64e7d658ea74b615 /security | |
parent | kernel: Mark function as static in kernel/seccomp.c (diff) | |
download | linux-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')
-rw-r--r-- | security/integrity/ima/ima_api.c | 2 |
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; |