lkml.org 
[lkml]   [2019]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH ghak105 V3] audit: remove audit_context when CONFIG_ AUDIT and not AUDITSYSCALL
On Fri, Feb 1, 2019 at 10:45 PM Richard Guy Briggs <rgb@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@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

\
 
 \ /
  Last update: 2019-02-03 23:54    [W:0.052 / U:1.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site