]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit3e2efce067cec0099f99ae59f28feda99b02b498
tree94577cb6cb7f223319bb89a805b2d6945d42632e
parent46f5960fdbf359f0c75989854bbaebc1de7a1eb4
[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