[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1386769650.22397.27.camel@dhcp-9-2-203-236.watson.ibm.com>
Date: Wed, 11 Dec 2013 08:47:30 -0500
From: Mimi Zohar <zohar@...ux.vnet.ibm.com>
To: Libo Chen <clbchenlibo.chen@...wei.com>
Cc: zohar@...ibm.com, d.kasatkin@...sung.com,
james.l.morris@...cle.com, roberto.sassu@...ito.it,
linux-security-module@...r.kernel.org,
LKML <linux-kernel@...r.kernel.org>,
Li Zefan <lizefan@...wei.com>
Subject: Re: [PATCH] security: ima: new helper: file_inode(file)
On Wed, 2013-12-11 at 14:11 +0800, Libo Chen wrote:
> Signed-off-by: Libo Chen <clbchenlibo.chen@...wei.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;
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists