Re: [PATCH v3 4/5] Audit: multiple subject lsm values for netlabel
From: Paul Moore
Date: Thu Apr 24 2025 - 18:19:05 EST
On Mar 19, 2025 Casey Schaufler <casey@xxxxxxxxxxxxxxxx> wrote:
>
> Refactor audit_log_task_context(), creating a new audit_log_subj_ctx().
> This is used in netlabel auditing to provide multiple subject security
> contexts as necessary.
>
> Signed-off-by: Casey Schaufler <casey@xxxxxxxxxxxxxxxx>
> ---
> include/linux/audit.h | 7 +++++++
> kernel/audit.c | 28 +++++++++++++++++++++-------
> net/netlabel/netlabel_user.c | 9 +--------
> 3 files changed, 29 insertions(+), 15 deletions(-)
Other than moving to the subject count supplied by the LSM
initialization patchset previously mentioned, this looks fine to me.
--
paul-moore.com