]> git.baikalelectronics.ru Git - kernel.git/commit
LoadPin: Rename boot param "enabled" to "enforce"
authorKees Cook <keescook@chromium.org>
Mon, 24 Sep 2018 21:43:59 +0000 (14:43 -0700)
committerKees Cook <keescook@chromium.org>
Thu, 18 Oct 2018 22:29:44 +0000 (15:29 -0700)
commit745776820bc66be83c1cd9f15c72e2056595665e
treeeb769876befa1a7c81ed78748d9ccc0d3ec46501
parent9bb5feb7fa2b4b46f86682b8b422ca25a115f1e7
LoadPin: Rename boot param "enabled" to "enforce"

LoadPin's "enabled" setting is really about enforcement, not whether
or not the LSM is using LSM hooks. Instead, split this out so that LSM
enabling can be logically distinct from whether enforcement is happening
(for example, the pinning happens when the LSM is enabled, but the pin
is only checked when "enforce" is set). This allows LoadPin to continue
to operate sanely in test environments once LSM enable/disable is
centrally handled (i.e. we want LoadPin to be enabled separately from
its enforcement).

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-by: John Johansen <john.johansen@canonical.com>
security/loadpin/Kconfig
security/loadpin/loadpin.c