提交 31d4b761 编写于 作者: L Libo Chen 提交者: Mimi Zohar

ima: new helper: file_inode(file)

Replace "file->f_dentry->d_inode" with the new file_inode() helper
function.
Signed-off-by: NLibo Chen <clbchenlibo.chen@huawei.com>
Signed-off-by: NMimi Zohar <zohar@linux.vnet.ibm.com>
上级 864f32a5
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册