diff options
| author | Alice Ryhl <[email protected]> | 2024-11-01 09:56:20 +0000 |
|---|---|---|
| committer | Paul Moore <[email protected]> | 2024-12-04 20:02:29 +0000 |
| commit | 9c76eaf784886603a010f0af7071c2b4d7f574c5 (patch) | |
| tree | 20ee87e96ce61b96a65d849edde1a9e053dba739 /rust/helpers/security.c | |
| parent | lsm: secctx provider check on release (diff) | |
| download | kernel-9c76eaf784886603a010f0af7071c2b4d7f574c5.tar.gz kernel-9c76eaf784886603a010f0af7071c2b4d7f574c5.zip | |
rust: replace lsm context+len with lsm_context
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/[email protected] [1]
Link: https://lore.kernel.org/r/[email protected] [2]
Reported-by: Linux Kernel Functional Testing <[email protected]>
Closes: https://lore.kernel.org/r/CA+G9fYv_Y2tzs+uYhMGtfUK9dSYV2mFr6WyKEzJazDsdk9o5zw@mail.gmail.com
Signed-off-by: Alice Ryhl <[email protected]>
[PM: subj line tweak]
Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'rust/helpers/security.c')
| -rw-r--r-- | rust/helpers/security.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/helpers/security.c b/rust/helpers/security.c index 239e5b4745fe..0c4c2065df28 100644 --- a/rust/helpers/security.c +++ b/rust/helpers/security.c @@ -8,13 +8,13 @@ void rust_helper_security_cred_getsecid(const struct cred *c, u32 *secid) security_cred_getsecid(c, secid); } -int rust_helper_security_secid_to_secctx(u32 secid, char **secdata, u32 *seclen) +int rust_helper_security_secid_to_secctx(u32 secid, struct lsm_context *cp) { - return security_secid_to_secctx(secid, secdata, seclen); + return security_secid_to_secctx(secid, cp); } -void rust_helper_security_release_secctx(char *secdata, u32 seclen) +void rust_helper_security_release_secctx(struct lsm_context *cp) { - security_release_secctx(secdata, seclen); + security_release_secctx(cp); } #endif |
