[PATCH ghak105 V3] audit: remove audit_context when CONFIG_ AUDIT and not AUDITSYSCALL

Paul Moore paul at paul-moore.com
Sun Feb 3 22:53:28 UTC 2019


On Fri, Feb 1, 2019 at 10:45 PM Richard Guy Briggs <rgb at redhat.com> wrote:
>
> Remove audit_context from struct task_struct and struct audit_buffer
> when CONFIG_AUDIT is enabled but CONFIG_AUDITSYSCALL is not.
>
> Also, audit_log_name() (and supporting inode and fcaps functions) should
> have been put back in auditsc.c when soft and hard link logging was
> normalized since it is only used by syscall auditing.
>
> See github issue https://github.com/linux-audit/audit-kernel/issues/105
>
> Signed-off-by: Richard Guy Briggs <rgb at redhat.com>
> ---
> Tested with CONFIG_AUDITSYSCALL automatically set "y" and manually set
> "n".  Passes all audit-testsuite with the former and the expected subset
> that don't depend on syscall auditing for the latter.
>
> changelog v2:
> - guard audit_context by CONFIG_AUDITSYSCALL in task_struct
> - rebase/resolve merge conflicts on upstreamed ghak103 v1.1/1
>
> changelog v3:
> - re-instate audit_context in audit_buffer (though not needed)
> - rebase/resolve merge conflicts on upstreamed ghak100 v2.2/2
>
>  include/linux/sched.h |   4 +-
>  kernel/audit.c        | 157 -------------------------------------------------
>  kernel/audit.h        |   9 ---
>  kernel/auditsc.c      | 158 ++++++++++++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 161 insertions(+), 167 deletions(-)

Merged into audit/next, thanks.

-- 
paul moore
www.paul-moore.com




More information about the Linux-audit mailing list