diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2018-05-13 03:58:21 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2018-05-14 23:45:21 +0200 |
commit | c0b0ae8a871bc2ebbe1ff9c9871efcf88994ffec (patch) | |
tree | 6f3c9f546f71dc837d22b4c5a9167e1d7c33414e /kernel/fork.c | |
parent | audit: use inline function to get audit context (diff) | |
download | linux-c0b0ae8a871bc2ebbe1ff9c9871efcf88994ffec.tar.xz linux-c0b0ae8a871bc2ebbe1ff9c9871efcf88994ffec.zip |
audit: use inline function to set audit context
Recognizing that the audit context is an internal audit value, use an
access function to set the audit context pointer for the task
rather than reaching directly into the task struct to set it.
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
[PM: merge fuzz in audit.h]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 242c8c93d285..cd18448b025a 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -1713,7 +1713,7 @@ static __latent_entropy struct task_struct *copy_process( p->start_time = ktime_get_ns(); p->real_start_time = ktime_get_boot_ns(); p->io_context = NULL; - p->audit_context = NULL; + audit_set_context(p, NULL); cgroup_fork(p); #ifdef CONFIG_NUMA p->mempolicy = mpol_dup(p->mempolicy); |