Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e41e8bde43026d5d2e41464e6105a50b31e34102 Commit: e41e8bde43026d5d2e41464e6105a50b31e34102 Parent: e54dc2431d740a79a6bd013babade99d71b1714f Author: Amy Griffis <[EMAIL PROTECTED]> AuthorDate: Tue Feb 13 14:14:09 2007 -0500 Committer: Al Viro <[EMAIL PROTECTED]> CommitDate: Fri May 11 05:38:25 2007 -0400
[PATCH] initialize name osid 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 <[EMAIL PROTECTED]> Signed-off-by: Al Viro <[EMAIL PROTECTED]> --- kernel/auditsc.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 6aff0df..41d129a 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c @@ -1289,6 +1289,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(¤t->fs->lock); - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html