Commit cb84fb87 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'integrity-v6.6-fix' of...

Merge tag 'integrity-v6.6-fix' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity

Pull integrity fixes from Mimi Zohar:
 "Two additional patches to fix the removal of the deprecated
  IMA_TRUSTED_KEYRING Kconfig"

* tag 'integrity-v6.6-fix' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity:
  ima: rework CONFIG_IMA dependency block
  ima: Finish deprecation of IMA_TRUSTED_KEYRING Kconfig
parents e90822d7 91e32656
...@@ -29,9 +29,11 @@ config IMA ...@@ -29,9 +29,11 @@ config IMA
to learn more about IMA. to learn more about IMA.
If unsure, say N. If unsure, say N.
if IMA
config IMA_KEXEC config IMA_KEXEC
bool "Enable carrying the IMA measurement list across a soft boot" bool "Enable carrying the IMA measurement list across a soft boot"
depends on IMA && TCG_TPM && HAVE_IMA_KEXEC depends on TCG_TPM && HAVE_IMA_KEXEC
default n default n
help help
TPM PCRs are only reset on a hard reboot. In order to validate TPM PCRs are only reset on a hard reboot. In order to validate
...@@ -43,7 +45,6 @@ config IMA_KEXEC ...@@ -43,7 +45,6 @@ config IMA_KEXEC
config IMA_MEASURE_PCR_IDX config IMA_MEASURE_PCR_IDX
int int
depends on IMA
range 8 14 range 8 14
default 10 default 10
help help
...@@ -53,7 +54,7 @@ config IMA_MEASURE_PCR_IDX ...@@ -53,7 +54,7 @@ config IMA_MEASURE_PCR_IDX
config IMA_LSM_RULES config IMA_LSM_RULES
bool bool
depends on IMA && AUDIT && (SECURITY_SELINUX || SECURITY_SMACK || SECURITY_APPARMOR) depends on AUDIT && (SECURITY_SELINUX || SECURITY_SMACK || SECURITY_APPARMOR)
default y default y
help help
Disabling this option will disregard LSM based policy rules. Disabling this option will disregard LSM based policy rules.
...@@ -61,7 +62,6 @@ config IMA_LSM_RULES ...@@ -61,7 +62,6 @@ config IMA_LSM_RULES
choice choice
prompt "Default template" prompt "Default template"
default IMA_NG_TEMPLATE default IMA_NG_TEMPLATE
depends on IMA
help help
Select the default IMA measurement template. Select the default IMA measurement template.
...@@ -80,14 +80,12 @@ endchoice ...@@ -80,14 +80,12 @@ endchoice
config IMA_DEFAULT_TEMPLATE config IMA_DEFAULT_TEMPLATE
string string
depends on IMA
default "ima-ng" if IMA_NG_TEMPLATE default "ima-ng" if IMA_NG_TEMPLATE
default "ima-sig" if IMA_SIG_TEMPLATE default "ima-sig" if IMA_SIG_TEMPLATE
choice choice
prompt "Default integrity hash algorithm" prompt "Default integrity hash algorithm"
default IMA_DEFAULT_HASH_SHA1 default IMA_DEFAULT_HASH_SHA1
depends on IMA
help help
Select the default hash algorithm used for the measurement Select the default hash algorithm used for the measurement
list, integrity appraisal and audit log. The compiled default list, integrity appraisal and audit log. The compiled default
...@@ -117,7 +115,6 @@ endchoice ...@@ -117,7 +115,6 @@ endchoice
config IMA_DEFAULT_HASH config IMA_DEFAULT_HASH
string string
depends on IMA
default "sha1" if IMA_DEFAULT_HASH_SHA1 default "sha1" if IMA_DEFAULT_HASH_SHA1
default "sha256" if IMA_DEFAULT_HASH_SHA256 default "sha256" if IMA_DEFAULT_HASH_SHA256
default "sha512" if IMA_DEFAULT_HASH_SHA512 default "sha512" if IMA_DEFAULT_HASH_SHA512
...@@ -126,7 +123,6 @@ config IMA_DEFAULT_HASH ...@@ -126,7 +123,6 @@ config IMA_DEFAULT_HASH
config IMA_WRITE_POLICY config IMA_WRITE_POLICY
bool "Enable multiple writes to the IMA policy" bool "Enable multiple writes to the IMA policy"
depends on IMA
default n default n
help help
IMA policy can now be updated multiple times. The new rules get IMA policy can now be updated multiple times. The new rules get
...@@ -137,7 +133,6 @@ config IMA_WRITE_POLICY ...@@ -137,7 +133,6 @@ config IMA_WRITE_POLICY
config IMA_READ_POLICY config IMA_READ_POLICY
bool "Enable reading back the current IMA policy" bool "Enable reading back the current IMA policy"
depends on IMA
default y if IMA_WRITE_POLICY default y if IMA_WRITE_POLICY
default n if !IMA_WRITE_POLICY default n if !IMA_WRITE_POLICY
help help
...@@ -147,7 +142,6 @@ config IMA_READ_POLICY ...@@ -147,7 +142,6 @@ config IMA_READ_POLICY
config IMA_APPRAISE config IMA_APPRAISE
bool "Appraise integrity measurements" bool "Appraise integrity measurements"
depends on IMA
default n default n
help help
This option enables local measurement integrity appraisal. This option enables local measurement integrity appraisal.
...@@ -269,7 +263,7 @@ config IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY ...@@ -269,7 +263,7 @@ config IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY
config IMA_BLACKLIST_KEYRING config IMA_BLACKLIST_KEYRING
bool "Create IMA machine owner blacklist keyrings (EXPERIMENTAL)" bool "Create IMA machine owner blacklist keyrings (EXPERIMENTAL)"
depends on SYSTEM_TRUSTED_KEYRING depends on SYSTEM_TRUSTED_KEYRING
depends on IMA_TRUSTED_KEYRING depends on INTEGRITY_TRUSTED_KEYRING
default n default n
help help
This option creates an IMA blacklist keyring, which contains all This option creates an IMA blacklist keyring, which contains all
...@@ -279,7 +273,7 @@ config IMA_BLACKLIST_KEYRING ...@@ -279,7 +273,7 @@ config IMA_BLACKLIST_KEYRING
config IMA_LOAD_X509 config IMA_LOAD_X509
bool "Load X509 certificate onto the '.ima' trusted keyring" bool "Load X509 certificate onto the '.ima' trusted keyring"
depends on IMA_TRUSTED_KEYRING depends on INTEGRITY_TRUSTED_KEYRING
default n default n
help help
File signature verification is based on the public keys File signature verification is based on the public keys
...@@ -304,7 +298,6 @@ config IMA_APPRAISE_SIGNED_INIT ...@@ -304,7 +298,6 @@ config IMA_APPRAISE_SIGNED_INIT
config IMA_MEASURE_ASYMMETRIC_KEYS config IMA_MEASURE_ASYMMETRIC_KEYS
bool bool
depends on IMA
depends on ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y depends on ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y
default y default y
...@@ -323,7 +316,8 @@ config IMA_SECURE_AND_OR_TRUSTED_BOOT ...@@ -323,7 +316,8 @@ config IMA_SECURE_AND_OR_TRUSTED_BOOT
config IMA_DISABLE_HTABLE config IMA_DISABLE_HTABLE
bool "Disable htable to allow measurement of duplicate records" bool "Disable htable to allow measurement of duplicate records"
depends on IMA
default n default n
help help
This option disables htable to allow measurement of duplicate records. This option disables htable to allow measurement of duplicate records.
endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment