]> www.infradead.org Git - users/jedix/linux-maple.git/commit
lsm: infrastructure management of the perf_event security blob
authorCasey Schaufler <casey@schaufler-ca.com>
Wed, 10 Jul 2024 21:32:30 +0000 (14:32 -0700)
committerPaul Moore <paul@paul-moore.com>
Mon, 29 Jul 2024 20:54:52 +0000 (16:54 -0400)
commit61a1dcdceb44d79e5ab511295791b88ea178c045
tree6b00649321c65c2cc224e843b52415a96944519a
parent66de33a0bbb59ef3909d2c65dbbb7fc503d573bd
lsm: infrastructure management of the perf_event security blob

Move management of the perf_event->security blob out of the individual
security modules and into the security infrastructure. Instead of
allocating the blobs from within the modules the modules tell the
infrastructure how much space is required, and the space is allocated
there.  There are no longer any modules that require the perf_event_free()
hook.  The hook definition has been removed.

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>
include/linux/lsm_hook_defs.h
include/linux/lsm_hooks.h
security/security.c
security/selinux/hooks.c
security/selinux/include/objsec.h