security: ima: new helper: file_inode(file)
Subsystems (3)
PATCH 1/1 security: ima: new helper: file_inode(file)
Signed-off-by Libo Chen <[email protected]>
--- security/integrity/ima/ima_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
security/integrity/ima/ima_api.c +1 -1
@@ -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;
Signature · 1 line
1.8.2.2
Quoted 1 line · Libo Chen
Signed-off-by Libo Chen <[email protected]>
Thanks!
Mimi
Quoted 17 lines
--- security/integrity/ima/ima_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)security/integrity/ima/ima_api.c +1
-1@@ -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;