History

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

Linus Torvalds committed 3 years ago

Commit cb84fb82 parents e90822d 91e32651 file · +8 −14Browse files

Unified · Split

security/integrity/ima/Kconfig+8−14
@@ -29,9 +29,11 @@ config IMA · 28 unmodified lines
29 to learn more about IMA.29 to learn more about IMA.
30 If unsure, say N.30 If unsure, say N.
31 31
32if IMA
33
32config IMA_KEXEC34config IMA_KEXEC
33 bool "Enable carrying the IMA measurement list across a soft boot"35 bool "Enable carrying the IMA measurement list across a soft boot"
34 depends on IMA && TCG_TPM && HAVE_IMA_KEXEC36 depends on TCG_TPM && HAVE_IMA_KEXEC
35 default n37 default n
36 help38 help
37 TPM PCRs are only reset on a hard reboot. In order to validate39 TPM PCRs are only reset on a hard reboot. In order to validate
@@ -43,7 +45,6 @@ config IMA_KEXEC · 5 unmodified lines
43 45
44config IMA_MEASURE_PCR_IDX46config IMA_MEASURE_PCR_IDX
45 int47 int
46 depends on IMA
47 range 8 1448 range 8 14
48 default 1049 default 10
49 help50 help
@@ -53,7 +54,7 @@ config IMA_MEASURE_PCR_IDX · 3 unmodified lines
53 54
54config IMA_LSM_RULES55config IMA_LSM_RULES
55 bool56 bool
56 depends on IMA && AUDIT && (SECURITY_SELINUX || SECURITY_SMACK || SECURITY_APPARMOR)57 depends on AUDIT && (SECURITY_SELINUX || SECURITY_SMACK || SECURITY_APPARMOR)
57 default y58 default y
58 help59 help
59 Disabling this option will disregard LSM based policy rules.60 Disabling this option will disregard LSM based policy rules.
@@ -61,7 +62,6 @@ config IMA_LSM_RULES · 1 unmodified line
61choice62choice
62 prompt "Default template"63 prompt "Default template"
63 default IMA_NG_TEMPLATE64 default IMA_NG_TEMPLATE
64 depends on IMA
65 help65 help
66 Select the default IMA measurement template.66 Select the default IMA measurement template.
67 67
@@ -80,14 +80,12 @@ endchoice · 12 unmodified lines
80 80
81config IMA_DEFAULT_TEMPLATE81config IMA_DEFAULT_TEMPLATE
82 string82 string
83 depends on IMA
84 default "ima-ng" if IMA_NG_TEMPLATE83 default "ima-ng" if IMA_NG_TEMPLATE
85 default "ima-sig" if IMA_SIG_TEMPLATE84 default "ima-sig" if IMA_SIG_TEMPLATE
86 85
87choice86choice
88 prompt "Default integrity hash algorithm"87 prompt "Default integrity hash algorithm"
89 default IMA_DEFAULT_HASH_SHA188 default IMA_DEFAULT_HASH_SHA1
90 depends on IMA
91 help89 help
92 Select the default hash algorithm used for the measurement90 Select the default hash algorithm used for the measurement
93 list, integrity appraisal and audit log. The compiled default91 list, integrity appraisal and audit log. The compiled default
@@ -117,7 +115,6 @@ endchoice · 23 unmodified lines
117 115
118config IMA_DEFAULT_HASH116config IMA_DEFAULT_HASH
119 string117 string
120 depends on IMA
121 default "sha1" if IMA_DEFAULT_HASH_SHA1118 default "sha1" if IMA_DEFAULT_HASH_SHA1
122 default "sha256" if IMA_DEFAULT_HASH_SHA256119 default "sha256" if IMA_DEFAULT_HASH_SHA256
123 default "sha512" if IMA_DEFAULT_HASH_SHA512120 default "sha512" if IMA_DEFAULT_HASH_SHA512
@@ -126,7 +123,6 @@ config IMA_DEFAULT_HASH · 2 unmodified lines
126 123
127config IMA_WRITE_POLICY124config IMA_WRITE_POLICY
128 bool "Enable multiple writes to the IMA policy"125 bool "Enable multiple writes to the IMA policy"
129 depends on IMA
130 default n126 default n
131 help127 help
132 IMA policy can now be updated multiple times. The new rules get128 IMA policy can now be updated multiple times. The new rules get
@@ -137,7 +133,6 @@ config IMA_WRITE_POLICY · 4 unmodified lines
137 133
138config IMA_READ_POLICY134config IMA_READ_POLICY
139 bool "Enable reading back the current IMA policy"135 bool "Enable reading back the current IMA policy"
140 depends on IMA
141 default y if IMA_WRITE_POLICY136 default y if IMA_WRITE_POLICY
142 default n if !IMA_WRITE_POLICY137 default n if !IMA_WRITE_POLICY
143 help138 help
@@ -147,7 +142,6 @@ config IMA_READ_POLICY · 3 unmodified lines
147 142
148config IMA_APPRAISE143config IMA_APPRAISE
149 bool "Appraise integrity measurements"144 bool "Appraise integrity measurements"
150 depends on IMA
151 default n145 default n
152 help146 help
153 This option enables local measurement integrity appraisal.147 This option enables local measurement integrity appraisal.
@@ -269,7 +263,7 @@ config IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY · 115 unmodified lines
269config IMA_BLACKLIST_KEYRING263config IMA_BLACKLIST_KEYRING
270 bool "Create IMA machine owner blacklist keyrings (EXPERIMENTAL)"264 bool "Create IMA machine owner blacklist keyrings (EXPERIMENTAL)"
271 depends on SYSTEM_TRUSTED_KEYRING265 depends on SYSTEM_TRUSTED_KEYRING
272 depends on IMA_TRUSTED_KEYRING266 depends on INTEGRITY_TRUSTED_KEYRING
273 default n267 default n
274 help268 help
275 This option creates an IMA blacklist keyring, which contains all269 This option creates an IMA blacklist keyring, which contains all
@@ -279,7 +273,7 @@ config IMA_BLACKLIST_KEYRING · 3 unmodified lines
279 273
280config IMA_LOAD_X509274config IMA_LOAD_X509
281 bool "Load X509 certificate onto the '.ima' trusted keyring"275 bool "Load X509 certificate onto the '.ima' trusted keyring"
282 depends on IMA_TRUSTED_KEYRING276 depends on INTEGRITY_TRUSTED_KEYRING
283 default n277 default n
284 help278 help
285 File signature verification is based on the public keys279 File signature verification is based on the public keys
@@ -304,7 +298,6 @@ config IMA_APPRAISE_SIGNED_INIT · 18 unmodified lines
304 298
305config IMA_MEASURE_ASYMMETRIC_KEYS299config IMA_MEASURE_ASYMMETRIC_KEYS
306 bool300 bool
307 depends on IMA
308 depends on ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y301 depends on ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y
309 default y302 default y
310 303
@@ -323,7 +316,8 @@ config IMA_SECURE_AND_OR_TRUSTED_BOOT · 12 unmodified lines
323 316
324config IMA_DISABLE_HTABLE317config IMA_DISABLE_HTABLE
325 bool "Disable htable to allow measurement of duplicate records"318 bool "Disable htable to allow measurement of duplicate records"
326 depends on IMA
327 default n319 default n
328 help320 help
329 This option disables htable to allow measurement of duplicate records.321 This option disables htable to allow measurement of duplicate records.
322
323endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t