]> www.infradead.org Git - users/jedix/linux-maple.git/commit
lsm: add helper for blob allocations
authorCasey Schaufler <casey@schaufler-ca.com>
Wed, 10 Jul 2024 21:32:27 +0000 (14:32 -0700)
committerPaul Moore <paul@paul-moore.com>
Mon, 29 Jul 2024 20:54:51 +0000 (16:54 -0400)
commit09001284eebfc1b684e81d1db0f006787d35f3e1
tree6cd87b50ab6b7e30ba6e3299a264055bbdb89ff3
parent5f8d28f6d7d568dbbc8c5bce94894474c07afd4f
lsm: add helper for blob allocations

Create a helper function lsm_blob_alloc() for general use in the hook
specific functions that allocate LSM blobs. Change the hook specific
functions to use this helper. This reduces the code size by a small
amount and will make adding new instances of infrastructure managed
security blobs easier.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-by: John Johansen <john.johansen@canonical.com>
[PM: subject tweak]
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/security.c