Skip to content

Commit 7ef84e6

Browse files
Dmitry KasatkinMimi Zohar
authored andcommitted
integrity: base integrity subsystem kconfig options on integrity
The integrity subsystem has lots of options and takes more than half of the security menu. This patch consolidates the options under "integrity", which are hidden if not enabled. This change does not affect existing configurations. Re-configuration is not needed. Changes v4: - no need to change "integrity subsystem" to menuconfig as options are hidden, when not enabled. (Mimi) - add INTEGRITY Kconfig help description Changes v3: - dependency to INTEGRITY removed when behind 'if INTEGRITY' Changes v2: - previous patch moved integrity out of the 'security' menu. This version keeps integrity as a security option (Mimi). Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com> Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
1 parent 1ae8f41 commit 7ef84e6

3 files changed

Lines changed: 18 additions & 14 deletions

File tree

‎security/integrity/Kconfig‎

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
#
22
config INTEGRITY
3-
def_bool y
4-
depends on IMA || EVM
3+
bool "Integrity subsystem"
4+
depends on SECURITY
5+
default y
6+
help
7+
This option enables the integrity subsystem, which is comprised
8+
of a number of different components including the Integrity
9+
Measurement Architecture (IMA), Extended Verification Module
10+
(EVM), IMA-appraisal extension, digital signature verification
11+
extension and audit measurement log support.
12+
13+
Each of these components can be enabled/disabled separately.
14+
Refer to the individual components for additional details.
15+
16+
if INTEGRITY
517

618
config INTEGRITY_SIGNATURE
719
boolean "Digital signature verification using multiple keyrings"
8-
depends on INTEGRITY && KEYS
20+
depends on KEYS
921
default n
1022
select SIGNATURE
1123
help
@@ -31,7 +43,7 @@ config INTEGRITY_ASYMMETRIC_KEYS
3143

3244
config INTEGRITY_AUDIT
3345
bool "Enables integrity auditing support "
34-
depends on INTEGRITY && AUDIT
46+
depends on AUDIT
3547
default y
3648
help
3749
In addition to enabling integrity auditing support, this
@@ -46,3 +58,5 @@ config INTEGRITY_AUDIT
4658

4759
source security/integrity/ima/Kconfig
4860
source security/integrity/evm/Kconfig
61+
62+
endif # if INTEGRITY

‎security/integrity/evm/Kconfig‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
config EVM
22
boolean "EVM support"
3-
depends on SECURITY
43
select KEYS
54
select ENCRYPTED_KEYS
65
select CRYPTO_HMAC
@@ -12,10 +11,6 @@ config EVM
1211

1312
If you are unsure how to answer this question, answer N.
1413

15-
if EVM
16-
17-
menu "EVM options"
18-
1914
config EVM_ATTR_FSUUID
2015
bool "FSUUID (version 2)"
2116
default y
@@ -47,6 +42,3 @@ config EVM_EXTRA_SMACK_XATTRS
4742
additional info to the calculation, requires existing EVM
4843
labeled file systems to be relabeled.
4944

50-
endmenu
51-
52-
endif

‎security/integrity/ima/Kconfig‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#
33
config IMA
44
bool "Integrity Measurement Architecture(IMA)"
5-
depends on SECURITY
6-
select INTEGRITY
75
select SECURITYFS
86
select CRYPTO
97
select CRYPTO_HMAC

0 commit comments

Comments
 (0)