Re: [PATCH] rust: lsm: replace context+len with lsm_context
From: Paul Moore
Date: Fri Nov 01 2024 - 12:57:05 EST
On Fri, Nov 1, 2024 at 5:56 AM Alice Ryhl <aliceryhl@xxxxxxxxxx> wrote:
>
> This brings the Rust SecurityCtx abstraction [1] up to date with the new
> API where context+len is replaced with an lsm_context [2] struct.
>
> Link: https://lore.kernel.org/r/20240915-alice-file-v10-5-88484f7a3dcf@xxxxxxxxxx [1]
> Link: https://lore.kernel.org/r/20241023212158.18718-3-casey@xxxxxxxxxxxxxxxx [2]
> Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>
> Closes: https://lore.kernel.org/r/CA+G9fYv_Y2tzs+uYhMGtfUK9dSYV2mFr6WyKEzJazDsdk9o5zw@xxxxxxxxxxxxxx
> Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> ---
> rust/helpers/security.c | 8 ++++----
> rust/kernel/security.rs | 38 +++++++++++++++++---------------------
> 2 files changed, 21 insertions(+), 25 deletions(-)
Thanks Alice. Would you like me to pull this in via the LSM tree with
the associated LSM changes, or would you prefer to do this some other
way?
I'm going to merge this into lsm/dev for now so that we fix the issue
in linux-next, but I'm happy to drop it or do something else, let me
know.
--
paul-moore.com