diff options
author | Casey Schaufler <casey@schaufler-ca.com> | 2024-07-11 00:32:30 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2024-07-29 23:54:52 +0300 |
commit | 61a1dcdceb44d79e5ab511295791b88ea178c045 (patch) | |
tree | 6b00649321c65c2cc224e843b52415a96944519a /security/selinux/include | |
parent | 66de33a0bbb59ef3909d2c65dbbb7fc503d573bd (diff) | |
download | linux-61a1dcdceb44d79e5ab511295791b88ea178c045.tar.xz |
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>
Diffstat (limited to 'security/selinux/include')
-rw-r--r-- | security/selinux/include/objsec.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/security/selinux/include/objsec.h b/security/selinux/include/objsec.h index ed9e37f3c9b5..c88cae81ee4c 100644 --- a/security/selinux/include/objsec.h +++ b/security/selinux/include/objsec.h @@ -217,4 +217,10 @@ static inline struct ib_security_struct *selinux_ib(void *ib_sec) return ib_sec + selinux_blob_sizes.lbs_ib; } +static inline struct perf_event_security_struct * +selinux_perf_event(void *perf_event) +{ + return perf_event + selinux_blob_sizes.lbs_perf_event; +} + #endif /* _SELINUX_OBJSEC_H_ */ |