On 2019-01-31 23:15, Paul Moore wrote:
On Thu, Jan 31, 2019 at 11:52 AM Richard Guy Briggs
<rgb(a)redhat.com> wrote:
>
> The audit_rule_match() struct audit_context *actx parameter is not used
> by any in-tree consumers (selinux, apparmour, integrity, smack).
>
> The audit context is an internal audit structure that should only be
> accessed by audit accessor functions.
>
> It was part of commit 03d37d25e0f9 ("LSM/Audit: Introduce > generic
> Audit LSM hooks") but appears to have never been used.
Merged into audit/next, but a heads-up that you added a ">" into the
referenced commit title. I'm not sure if that was a cut-n-paste
problem, or something else, but just a note to be a bit more careful
in the future about those things.
Ok, yes, that must have been a cut/paste error. Pardon.
> Remove it.
>
> Please see the github issue
>
https://github.com/linux-audit/audit-kernel/issues/107
>
> Signed-off-by: Richard Guy Briggs <rgb(a)redhat.com>
> ---
> Passes audit-testsuite.
>
> include/linux/lsm_hooks.h | 4 +---
> include/linux/security.h | 5 ++---
> kernel/auditfilter.c | 2 +-
> kernel/auditsc.c | 21 ++++++++++++---------
> security/apparmor/audit.c | 3 +--
> security/apparmor/include/audit.h | 3 +--
> security/integrity/ima/ima.h | 3 +--
> security/integrity/ima/ima_policy.c | 6 ++----
> security/security.c | 6 ++----
> security/selinux/include/audit.h | 4 +---
> security/selinux/ss/services.c | 3 +--
> security/smack/smack_lsm.c | 4 +---
> 12 files changed, 26 insertions(+), 38 deletions(-)
--
paul moore
www.paul-moore.com
--
Linux-audit mailing list
Linux-audit(a)redhat.com
https://www.redhat.com/mailman/listinfo/linux-audit
- RGB
--
Richard Guy Briggs <rgb(a)redhat.com>
Sr. S/W Engineer, Kernel Security, Base Operating Systems
Remote, Ottawa, Red Hat Canada
IRC: rgb, SunRaycer
Voice: +1.647.777.2635, Internal: (81) 32635