LSM: Separate idea of "major" LSM from "exclusive" LSM

In order to both support old "security=" Legacy Major LSM selection, and
handling real exclusivity, this creates LSM_FLAG_EXCLUSIVE and updates
the selection logic to handle them.

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Casey Schaufler <casey@schaufler-ca.com>
此提交包含在:
Kees Cook
2018-09-19 19:57:06 -07:00
父節點 7e611486d9
當前提交 14bd99c821
共有 6 個檔案被更改,包括 17 行新增4 行删除

查看文件

@@ -550,6 +550,6 @@ static int __init tomoyo_init(void)
DEFINE_LSM(tomoyo) = {
.name = "tomoyo",
.flags = LSM_FLAG_LEGACY_MAJOR,
.flags = LSM_FLAG_LEGACY_MAJOR | LSM_FLAG_EXCLUSIVE,
.init = tomoyo_init,
};