lkml.org 
[lkml]   [2013]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] security: ima: new helper: file_inode(file)
From
Date
On Wed, 2013-12-11 at 14:11 +0800, Libo Chen wrote: 
> Signed-off-by: Libo Chen <clbchenlibo.chen@huawei.com>

Thanks!

Mimi

> ---
> security/integrity/ima/ima_api.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/security/integrity/ima/ima_api.c b/security/integrity/ima/ima_api.c
> index c38bbce..6d76d4a 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;
>




\
 
 \ /
  Last update: 2013-12-11 15:01    [W:1.183 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site