diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/auditfilter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c index 74cc0fc6bb81..ce61f423542c 100644 --- a/kernel/auditfilter.c +++ b/kernel/auditfilter.c | |||
@@ -947,7 +947,7 @@ static void audit_update_watch(struct audit_parent *parent, | |||
947 | 947 | ||
948 | /* If the update involves invalidating rules, do the inode-based | 948 | /* If the update involves invalidating rules, do the inode-based |
949 | * filtering now, so we don't omit records. */ | 949 | * filtering now, so we don't omit records. */ |
950 | if (invalidating && | 950 | if (invalidating && current->audit_context && |
951 | audit_filter_inodes(current, current->audit_context) == AUDIT_RECORD_CONTEXT) | 951 | audit_filter_inodes(current, current->audit_context) == AUDIT_RECORD_CONTEXT) |
952 | audit_set_auditable(current->audit_context); | 952 | audit_set_auditable(current->audit_context); |
953 | 953 | ||