mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
[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 <amy.griffis@hp.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
e54dc2431d
commit
e41e8bde43
1 changed files with 1 additions and 0 deletions
|
@ -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_len = AUDIT_NAME_FULL;
|
||||||
context->names[context->name_count].name_put = 1;
|
context->names[context->name_count].name_put = 1;
|
||||||
context->names[context->name_count].ino = (unsigned long)-1;
|
context->names[context->name_count].ino = (unsigned long)-1;
|
||||||
|
context->names[context->name_count].osid = 0;
|
||||||
++context->name_count;
|
++context->name_count;
|
||||||
if (!context->pwd) {
|
if (!context->pwd) {
|
||||||
read_lock(¤t->fs->lock);
|
read_lock(¤t->fs->lock);
|
||||||
|
|
Loading…
Reference in a new issue