Commit e7487fba authored by Casey Schaufler's avatar Casey Schaufler Committed by Zhong Jinghua
Browse files

LSM: Infrastructure management of the superblock

mainline inclusion
from mainline-v5.13-rc1
commit 1aea7808
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I6DJU0
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1aea7808372eee4ad01f98e064c88c57f1e94855



--------------------------------

Move management of the superblock->sb_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.

Cc: John Johansen <john.johansen@canonical.com>
Signed-off-by: default avatarCasey Schaufler <casey@schaufler-ca.com>
Signed-off-by: default avatarMickaël Salaün <mic@linux.microsoft.com>
Reviewed-by: default avatarStephen Smalley <stephen.smalley.work@gmail.com>
Acked-by: default avatarSerge Hallyn <serge@hallyn.com>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210422154123.13086-6-mic@digikod.net


Signed-off-by: default avatarJames Morris <jamorris@linux.microsoft.com>

conflicts:
	security/selinux/hooks.c
	security/selinux/ss/services.c

Signed-off-by: default avatarYi Yang <yiyang13@huawei.com>
parent 30ae5442
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment