Re: [PATCH ghak81 RFC V2 4/5] audit: use inline function to set audit context

From: Paul Moore
Date: Mon May 14 2018 - 17:51:39 EST


On Sat, May 12, 2018 at 9:58 PM, Richard Guy Briggs <rgb@xxxxxxxxxx> wrote:
> 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@xxxxxxxxxx>
> ---
> include/linux/audit.h | 6 ++++++
> kernel/auditsc.c | 7 +++----
> kernel/fork.c | 2 +-
> 3 files changed, 10 insertions(+), 5 deletions(-)

Merged with some minor fuzz.

--
paul moore
www.paul-moore.com