diff options
Diffstat (limited to 'security/apparmor/audit.c')
-rw-r--r-- | security/apparmor/audit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/audit.c b/security/apparmor/audit.c index 96502b22b268..f3fafedd798a 100644 --- a/security/apparmor/audit.c +++ b/security/apparmor/audit.c | |||
@@ -133,7 +133,7 @@ static void audit_pre(struct audit_buffer *ab, void *ca) | |||
133 | struct aa_profile *profile = sa->aad.profile; | 133 | struct aa_profile *profile = sa->aad.profile; |
134 | pid_t pid; | 134 | pid_t pid; |
135 | rcu_read_lock(); | 135 | rcu_read_lock(); |
136 | pid = tsk->real_parent->pid; | 136 | pid = rcu_dereference(tsk->real_parent)->pid; |
137 | rcu_read_unlock(); | 137 | rcu_read_unlock(); |
138 | audit_log_format(ab, " parent=%d", pid); | 138 | audit_log_format(ab, " parent=%d", pid); |
139 | if (profile->ns != root_ns) { | 139 | if (profile->ns != root_ns) { |