]> 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)
commit238341a2526efd5fd08bd0d74f260c0f2f96dac2
treed85b1e9410ba9e37a64eb22949f114fc0e87d166
parentcc2d2d9e98effa1948557ad5a97f99e6366573ba
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