[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)
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>

No differences found