]> git.baikalelectronics.ru Git - kernel.git/commit
LSM: Split LSM preparation from initialization
authorKees Cook <keescook@chromium.org>
Wed, 10 Oct 2018 22:45:22 +0000 (15:45 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 8 Jan 2019 21:18:43 +0000 (13:18 -0800)
commit1395e2ed85685b0913e19e3d6279040b1c3593c7
treed85b1e9410ba9e37a64eb22949f114fc0e87d166
parent39834cd1d97715937ed33076f73066e5e563249a
LSM: Split LSM preparation from initialization

Since we already have to do a pass through the LSMs to figure out if
exclusive LSMs should be disabled after the first one is seen as enabled,
this splits the logic up a bit more cleanly. Now we do a full "prepare"
pass through the LSMs (which also allows for later use by the blob-sharing
code), before starting the LSM initialization pass.

Signed-off-by: Kees Cook <keescook@chromium.org>
security/security.c