projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
864f32a
)
ima: new helper: file_inode(file)
author
Libo Chen
<clbchenlibo.chen@huawei.com>
Wed, 11 Dec 2013 06:11:28 +0000
(14:11 +0800)
committer
Mimi Zohar
<zohar@linux.vnet.ibm.com>
Tue, 4 Mar 2014 21:53:03 +0000
(16:53 -0500)
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>
security/integrity/ima/ima_api.c
patch
|
blob
|
history
diff --git
a/security/integrity/ima/ima_api.c
b/security/integrity/ima/ima_api.c
index c38bbce8c6a629e246d8f6bef7557e224707d88b..6d76d4a015038a2f778e916545f0e3ee38051c2d 100644
(file)
--- 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;