Re: [PATCH ghak104 V1] audit: move loginuid and sessionid from CONFIG_ AUDITSYSCALL to AUDIT

From: Paul Moore
Date: Fri Jan 25 2019 - 13:27:24 EST


On Tue, Jan 22, 2019 at 5:07 PM Richard Guy Briggs <rgb@xxxxxxxxxx> wrote:
> loginuid and sessionid (and audit_log_session_info) should be part of
> CONFIG_AUDIT scope and not CONFIG_AUDITSYSCALL since it is used in
> CONFIG_CHANGE, ANOM_LINK, FEATURE_CHANGE (and INTEGRITY_RULE), none of
> which are otherwise dependent on AUDITSYSCALL.
>
> Please see github issue
> https://github.com/linux-audit/audit-kernel/issues/104
>
> Signed-off-by: Richard Guy Briggs <rgb@xxxxxxxxxx>
> ---
> fs/proc/base.c | 6 ++--
> include/linux/audit.h | 42 +++++++++++++------------
> include/linux/sched.h | 2 +-
> init/init_task.c | 2 +-
> kernel/audit.c | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++
> kernel/auditsc.c | 84 --------------------------------------------------
> 6 files changed, 113 insertions(+), 108 deletions(-)

Looks good, merged.

--
paul moore
www.paul-moore.com