public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
* [PATCH 0/4] audit obj cleanups
@ 2007-02-13 19:13 Amy Griffis
  2007-02-13 19:14 ` [PATCH 1/4] initialize name osid Amy Griffis
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Amy Griffis @ 2007-02-13 19:13 UTC (permalink / raw)
  To: linux-audit

A few patches to clean up auditing for syscall objects.

    - stop logging bogus object labels
    - handle edge cases for xattr and mqueue calls
    - try harder to log only 1 PATH record per object

These patches are based on audit.b36. Thanks for reviewing.

Amy

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH 1/4] initialize name osid
  2007-03-19 20:42 ` [PATCH 0/4] audit obj cleanups Amy Griffis
@ 2007-03-19 20:43 Amy Griffis
  2007-03-19 20:42 ` [PATCH 0/4] audit obj cleanups Amy Griffis
  0 siblings, 1 reply; 9+ messages in thread
From: Amy Griffis @ 2007-03-19 20:43 UTC (permalink / raw)
  To: linux-audit

Audit contexts can be reused, so initialize a name's osid to the
default in audit_getname(). This ensures we don't log a bogus object
label when no inode data is collected for a name.

Signed-off-by: Amy Griffis <amy.griffis@hp.com>
---
 kernel/auditsc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/kernel/auditsc.c b/kernel/auditsc.c
index 628c7ac..863479c 100644
--- a/kernel/auditsc.c
+++ b/kernel/auditsc.c
@@ -1226,6 +1226,7 @@ void __audit_getname(const char *name)
 	context->names[context->name_count].name_len = AUDIT_NAME_FULL;
 	context->names[context->name_count].name_put = 1;
 	context->names[context->name_count].ino  = (unsigned long)-1;
+	context->names[context->name_count].osid = 0;
 	++context->name_count;
 	if (!context->pwd) {
 		read_lock(&current->fs->lock);
-- 
1.4.4.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-03-19 20:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-13 19:13 [PATCH 0/4] audit obj cleanups Amy Griffis
2007-02-13 19:14 ` [PATCH 1/4] initialize name osid Amy Griffis
2007-02-13 19:14 ` [PATCH 2/4] audit inode for all xattr syscalls Amy Griffis
2007-02-13 19:15 ` [PATCH 3/4] complete message queue auditing Amy Griffis
2007-02-13 19:15 ` [PATCH 4/4] match audit name data Amy Griffis
2007-02-14 18:08   ` Amy Griffis
2007-03-17 23:02     ` Steve Grubb
2007-03-19  7:24       ` Alexander Viro
  -- strict thread matches above, loose matches on Subject: below --
2007-03-19 20:43 [PATCH 1/4] initialize name osid Amy Griffis
2007-03-19 20:42 ` [PATCH 0/4] audit obj cleanups Amy Griffis
2007-03-19 20:43   ` [PATCH 2/4] audit inode for all xattr syscalls Amy Griffis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox