LSM: Infrastructure management of the file security
authorCasey Schaufler <casey@schaufler-ca.com>
Mon, 12 Nov 2018 20:02:49 +0000 (12:02 -0800)
committerKees Cook <keescook@chromium.org>
Tue, 8 Jan 2019 21:18:44 +0000 (13:18 -0800)
commit33bf60cabcc7687b194a689b068b65e9ecd556be
treef8bbf4c27ce73e33ab5f1efa7e99448ab9755373
parentf28952ac900822a189fc383a5b73631e72c69356
LSM: Infrastructure management of the file security

Move management of the file->f_security blob out of the
individual security modules and into the infrastructure.
The modules no longer allocate or free the data, instead
they tell the infrastructure how much space they require.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
[kees: adjusted for ordered init series]
Signed-off-by: Kees Cook <keescook@chromium.org>
include/linux/lsm_hooks.h
security/apparmor/include/file.h
security/apparmor/lsm.c
security/security.c
security/selinux/hooks.c
security/selinux/include/objsec.h
security/smack/smack.h
security/smack/smack_lsm.c