diff options
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r-- | kernel/auditsc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index f6bc31e7dca9..ea3fe2b748a8 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c | |||
@@ -180,7 +180,7 @@ static int audit_match_filetype(struct audit_context *ctx, int val) | |||
180 | return 0; | 180 | return 0; |
181 | 181 | ||
182 | list_for_each_entry(n, &ctx->names_list, list) { | 182 | list_for_each_entry(n, &ctx->names_list, list) { |
183 | if ((n->ino != -1) && | 183 | if ((n->ino != AUDIT_INO_UNSET) && |
184 | ((n->mode & S_IFMT) == mode)) | 184 | ((n->mode & S_IFMT) == mode)) |
185 | return 1; | 185 | return 1; |
186 | } | 186 | } |
@@ -1681,7 +1681,7 @@ static struct audit_names *audit_alloc_name(struct audit_context *context, | |||
1681 | aname->should_free = true; | 1681 | aname->should_free = true; |
1682 | } | 1682 | } |
1683 | 1683 | ||
1684 | aname->ino = (unsigned long)-1; | 1684 | aname->ino = AUDIT_INO_UNSET; |
1685 | aname->type = type; | 1685 | aname->type = type; |
1686 | list_add_tail(&aname->list, &context->names_list); | 1686 | list_add_tail(&aname->list, &context->names_list); |
1687 | 1687 | ||
@@ -1923,7 +1923,7 @@ void __audit_inode_child(const struct inode *parent, | |||
1923 | if (inode) | 1923 | if (inode) |
1924 | audit_copy_inode(found_child, dentry, inode); | 1924 | audit_copy_inode(found_child, dentry, inode); |
1925 | else | 1925 | else |
1926 | found_child->ino = (unsigned long)-1; | 1926 | found_child->ino = AUDIT_INO_UNSET; |
1927 | } | 1927 | } |
1928 | EXPORT_SYMBOL_GPL(__audit_inode_child); | 1928 | EXPORT_SYMBOL_GPL(__audit_inode_child); |
1929 | 1929 | ||