mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Reviewed-by: Casey Schaufler <[email protected]>
This commit is contained in:
parent
7e611486d9
commit
14bd99c821
6 changed files with 17 additions and 4 deletions
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue