commit | 3e2efce067cec0099f99ae59f28feda99b02b498 | [log] [tgz] |
---|---|---|
author | Amy Griffis <amy.griffis@hp.com> | Thu Jul 13 13:16:02 2006 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Thu Aug 03 10:50:21 2006 -0400 |
tree | 94577cb6cb7f223319bb89a805b2d6945d42632e | |
parent | 46f5960fdbf359f0c75989854bbaebc1de7a1eb4 [diff] |
[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>