RFC Cleanup code in and around audit_expand()
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest5 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | audit: only call audit_expand() once in audit_log_vformat()kernel/ | +3 | 0 replies | |
| 2/5 | audit: convert audit_expand() to operate in multiples of AUDIT_BUFSIZkernel/ | +22 | 0 replies | |
| 3/5 | audit: move from a size_t buffer length to an int buffer lengthinclude/ kernel/ | +29 | 0 replies | |
| 4/5 | audit: add a missing function definition when !CONFIG_AUDITinclude/ | +4 | 2 replies | |
| 5/5 | audit: drop BUG_ON() from audit_log_XXX()kernel/ | +3 | 0 replies |
Reviews trailers per patch
2 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Ricardo Robaina |
|---|---|
| 1/5 | |
| 2/5 | |
| 3/5 | |
| 4/5 | R-b |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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(-)