* [PATCH] security: ima: new helper: file_inode(file)
@ 2013-12-11 6:11 Libo Chen
2013-12-11 13:47 ` Mimi Zohar
0 siblings, 1 reply; 2+ messages in thread
From: Libo Chen @ 2013-12-11 6:11 UTC (permalink / raw)
To: zohar, d.kasatkin, james.l.morris, zohar, roberto.sassu
Cc: linux-security-module, LKML, Li Zefan
Signed-off-by: Libo Chen <clbchenlibo.chen@huawei.com>
---
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;
--
1.8.2.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] security: ima: new helper: file_inode(file)
2013-12-11 6:11 [PATCH] security: ima: new helper: file_inode(file) Libo Chen
@ 2013-12-11 13:47 ` Mimi Zohar
0 siblings, 0 replies; 2+ messages in thread
From: Mimi Zohar @ 2013-12-11 13:47 UTC (permalink / raw)
To: Libo Chen
Cc: zohar, d.kasatkin, james.l.morris, roberto.sassu,
linux-security-module, LKML, Li Zefan
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;
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-11 13:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-11 6:11 [PATCH] security: ima: new helper: file_inode(file) Libo Chen
2013-12-11 13:47 ` Mimi Zohar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox