[PATCH] rust: lsm: replace context+len with lsm_context

Paul Moore paul at paul-moore.com
Wed Nov 27 04:17:18 UTC 2024


On Fri, Nov 1, 2024 at 1:02 PM Paul Moore <paul at paul-moore.com> wrote:
> On Fri, Nov 1, 2024 at 12:56 PM Paul Moore <paul at paul-moore.com> wrote:
> > On Fri, Nov 1, 2024 at 5:56 AM Alice Ryhl <aliceryhl at google.com> 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@google.com [1]
> > > Link: https://lore.kernel.org/r/20241023212158.18718-3-casey@schaufler-ca.com [2]
> > > Reported-by: Linux Kernel Functional Testing <lkft at linaro.org>
> > > Closes: https://lore.kernel.org/r/CA+G9fYv_Y2tzs+uYhMGtfUK9dSYV2mFr6WyKEzJazDsdk9o5zw@mail.gmail.com
> > > Signed-off-by: Alice Ryhl <aliceryhl at google.com>
> > > ---
> > >  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.
>
> Nevermind, no I'm not, as I don't have the LSM/security rust helpers
> in the LSM tree as it looks like those aren't in Linus' tree yet.

With all of the dependencies now in Linus' tree, I'm going to merge
this into lsm/dev-staging so we can get some crude testing done.
Thanks again :)

-- 
paul-moore.com



More information about the Linux-security-module-archive mailing list