History

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.

Richard Guy Briggs committed 8 years ago

Commit c0b0ae81 parent cdfb6b33 files · +11 −5Browse files

Showing the changes to kernel/fork.c (1 of 3 files). Show all

Unified · Split

kernel/fork.c+1−1
@@ -1713,7 +1713,7 @@ static __latent_entropy struct task_struct *copy_process( · 1712 unmodified lines
17131713 p->start_time = ktime_get_ns();
17141714 p->real_start_time = ktime_get_boot_ns();
17151715 p->io_context = NULL;
1716− p->audit_context = NULL;
1716+ audit_set_context(p, NULL);
17171717 cgroup_fork(p);
17181718 #ifdef CONFIG_NUMA
17191719 p->mempolicy = mpol_dup(p->mempolicy);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t