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

Move management of the dev_tun security blob out of the individual
security modules and into the LSM infrastructure.  The security modules
tell the infrastructure how much space they require at initialization.
There are no longer any modules that require the dev_tun_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, selinux style fixes]
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