diff options
author | Amy Griffis <amy.griffis@hp.com> | 2007-02-13 14:15:01 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2007-05-11 05:38:26 -0400 |
commit | 4fc03b9beb2314f3adb9e72b7935a80c577954d1 (patch) | |
tree | 81e04534c582923fcdc8212497d1487ddae412a8 /kernel/auditsc.c | |
parent | 510f4006e7a82b37b53c17bbe64ec20f3a59302b (diff) | |
download | op-kernel-dev-4fc03b9beb2314f3adb9e72b7935a80c577954d1.zip op-kernel-dev-4fc03b9beb2314f3adb9e72b7935a80c577954d1.tar.gz |
[PATCH] complete message queue auditing
Handle the edge cases for POSIX message queue auditing. Collect inode
info when opening an existing mq, and for send/receive operations. Remove
audit_inode_update() as it has really evolved into the equivalent of
audit_inode().
Signed-off-by: Amy Griffis <amy.griffis@hp.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r-- | kernel/auditsc.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 41d129a..25d890e 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c @@ -1476,33 +1476,6 @@ update_context: } /** - * audit_inode_update - update inode info for last collected name - * @inode: inode being audited - * - * When open() is called on an existing object with the O_CREAT flag, the inode - * data audit initially collects is incorrect. This additional hook ensures - * audit has the inode data for the actual object to be opened. - */ -void __audit_inode_update(const struct inode *inode) -{ - struct audit_context *context = current->audit_context; - int idx; - - if (!context->in_syscall || !inode) - return; - - if (context->name_count == 0) { - context->name_count++; -#if AUDIT_DEBUG - context->ino_count++; -#endif - } - idx = context->name_count - 1; - - audit_copy_inode(&context->names[idx], inode); -} - -/** * auditsc_get_stamp - get local copies of audit_context values * @ctx: audit_context for the task * @t: timespec to store time recorded in the audit_context |