Skip to content

Commit 8be70a8

Browse files
rddunlapjarkkojs
authored andcommitted
security: keys: use menuconfig for KEYS symbol
Give the KEYS kconfig symbol and its associated symbols a separate menu space under Security options by using "menuconfig" instead of "config". This also makes it easier to find the security and LSM options. Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
1 parent 9b8d24a commit 8be70a8

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

security/keys/Kconfig

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Key management configuration
44
#
55

6-
config KEYS
6+
menuconfig KEYS
77
bool "Enable access key retention support"
88
select ASSOCIATIVE_ARRAY
99
help
@@ -21,9 +21,10 @@ config KEYS
2121

2222
If you are unsure as to whether this is required, answer N.
2323

24+
if KEYS
25+
2426
config KEYS_REQUEST_CACHE
2527
bool "Enable temporary caching of the last request_key() result"
26-
depends on KEYS
2728
help
2829
This option causes the result of the last successful request_key()
2930
call that didn't upcall to the kernel to be cached temporarily in the
@@ -41,7 +42,6 @@ config KEYS_REQUEST_CACHE
4142

4243
config PERSISTENT_KEYRINGS
4344
bool "Enable register of persistent per-UID keyrings"
44-
depends on KEYS
4545
help
4646
This option provides a register of persistent per-UID keyrings,
4747
primarily aimed at Kerberos key storage. The keyrings are persistent
@@ -58,7 +58,6 @@ config PERSISTENT_KEYRINGS
5858

5959
config BIG_KEYS
6060
bool "Large payload keys"
61-
depends on KEYS
6261
depends on TMPFS
6362
select CRYPTO_LIB_CHACHA20POLY1305
6463
help
@@ -70,7 +69,6 @@ config BIG_KEYS
7069

7170
config TRUSTED_KEYS
7271
tristate "TRUSTED KEYS"
73-
depends on KEYS
7472
help
7573
This option provides support for creating, sealing, and unsealing
7674
keys in the kernel. Trusted keys are random number symmetric keys,
@@ -85,7 +83,6 @@ endif
8583

8684
config ENCRYPTED_KEYS
8785
tristate "ENCRYPTED KEYS"
88-
depends on KEYS
8986
select CRYPTO
9087
select CRYPTO_AES
9188
select CRYPTO_CBC
@@ -113,7 +110,6 @@ config USER_DECRYPTED_DATA
113110

114111
config KEY_DH_OPERATIONS
115112
bool "Diffie-Hellman operations on retained keys"
116-
depends on KEYS
117113
select CRYPTO
118114
select CRYPTO_KDF800108_CTR
119115
select CRYPTO_DH
@@ -126,9 +122,11 @@ config KEY_DH_OPERATIONS
126122

127123
config KEY_NOTIFICATIONS
128124
bool "Provide key/keyring change notifications"
129-
depends on KEYS && WATCH_QUEUE
125+
depends on WATCH_QUEUE
130126
help
131127
This option provides support for getting change notifications
132128
on keys and keyrings on which the caller has View permission.
133129
This makes use of pipes to handle the notification buffer and
134130
provides KEYCTL_WATCH_KEY to enable/disable watches.
131+
132+
endif # KEYS

0 commit comments

Comments
 (0)