Skip to content

RFC Cleanup code in and around audit_expand()

Paul Moore audit 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5audit: only call audit_expand() once in audit_log_vformat()kernel/audit.c+3 -80 replies
2/5audit: convert audit_expand() to operate in multiples of AUDIT_BUFSIZkernel/audit.c+22 -180 replies
3/5audit: move from a size_t buffer length to an int buffer lengthinclude/linux/audit.h kernel/audit.c+29 -260 replies
4/5audit: add a missing function definition when !CONFIG_AUDITinclude/linux/audit.h+4 -02 replies
5/5audit: drop BUG_ON() from audit_log_XXX()kernel/audit.c+3 -60 replies

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchRicardo Robaina
1/5
2/5
3/5
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/5] Cleanup code in and around audit_expand()

The recent audit match overflow patches caused me to take a closer look at audit_expand() and how it is used, which unsurprisingly revealed a number of things that we could do a bit better. This patchset is the result of that and aims to cleanup some of the ugliness while also making the code a bit more robust.

Currently a RFC pending some closer self-review, but the patchset compiles, boots, and passes the audit-testsuite and selinux-testsuite cleanly.

--
Paul Moore (5):
audit: only call audit_expand() once in audit_log_vformat()
audit: convert audit_expand() to operate in multiples of
AUDIT_BUFSIZ
audit: move from a size_t buffer length to an int buffer length
audit: add a missing function definition when !CONFIG_AUDIT
audit: drop BUG_ON() from audit_log_XXX()

 include/linux/audit.h |   22 +++++-----
 kernel/audit.c        |   89 +++++++++++++++++++++---------------------
 2 files changed, 57 insertions(+), 54 deletions(-)