aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2013-08-30 11:07:30 -0400
committerDavid Howells <dhowells@redhat.com>2013-09-25 12:17:01 -0400
commitb56e5a17b6b9acd16997960504b9940d0d7984e7 (patch)
tree3041aadaf0eb3e79c0a5d1e7f9715489340f868a /init
parent0fbd39cf7ffe3b6a787b66b672d21b84e4675352 (diff)
KEYS: Separate the kernel signature checking keyring from module signing
Separate the kernel signature checking keyring from module signing so that it can be used by code other than the module-signing code. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig13
1 files changed, 13 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 3ecd8a1178f1..0ff5407a8378 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1668,6 +1668,18 @@ config BASE_SMALL
1668 default 0 if BASE_FULL 1668 default 0 if BASE_FULL
1669 default 1 if !BASE_FULL 1669 default 1 if !BASE_FULL
1670 1670
1671config SYSTEM_TRUSTED_KEYRING
1672 bool "Provide system-wide ring of trusted keys"
1673 depends on KEYS
1674 help
1675 Provide a system keyring to which trusted keys can be added. Keys in
1676 the keyring are considered to be trusted. Keys may be added at will
1677 by the kernel from compiled-in data and from hardware key stores, but
1678 userspace may only add extra keys if those keys can be verified by
1679 keys already in the keyring.
1680
1681 Keys in this keyring are used by module signature checking.
1682
1671menuconfig MODULES 1683menuconfig MODULES
1672 bool "Enable loadable module support" 1684 bool "Enable loadable module support"
1673 option modules 1685 option modules
@@ -1741,6 +1753,7 @@ config MODULE_SRCVERSION_ALL
1741config MODULE_SIG 1753config MODULE_SIG
1742 bool "Module signature verification" 1754 bool "Module signature verification"
1743 depends on MODULES 1755 depends on MODULES
1756 select SYSTEM_TRUSTED_KEYRING
1744 select KEYS 1757 select KEYS
1745 select CRYPTO 1758 select CRYPTO
1746 select ASYMMETRIC_KEY_TYPE 1759 select ASYMMETRIC_KEY_TYPE