]> 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)
commit6fb1377fe09263c084a91377dcb4ecbf11736c89
treeeb769876befa1a7c81ed78748d9ccc0d3ec46501
parent76906de35b134692e8242987ee7c658411579e5a
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