]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] fix faulty inode data collection for open() with O_CREAT
authorAmy Griffis <amy.griffis@hp.com>
Thu, 13 Jul 2006 17:16:02 +0000 (13:16 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 3 Aug 2006 14:50:21 +0000 (10:50 -0400)
commit96edb12ca2b694819501207f841a149273195a19
tree94577cb6cb7f223319bb89a805b2d6945d42632e
parent9c0c7408a5001bffa44605a7d3a3ad6f19c05d45
[PATCH] fix faulty inode data collection for open() with O_CREAT

When the specified path is an existing file or when it is a symlink, audit
collects the wrong inode number, which causes it to miss the open() event.
Adding a second hook to the open() path fixes this.

Also add audit_copy_inode() to consolidate some code.

Signed-off-by: Amy Griffis <amy.griffis@hp.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c
include/linux/audit.h
kernel/auditsc.c