aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2019-08-19 17:17:57 -0700
committerJames Morris <jmorris@namei.org>2019-08-19 21:54:16 -0700
commit02e935bf5b34edcc4cb0dc532dd0e1a1bfb33b51 (patch)
treed1029d3f5dccd6dbba74b1d0b445fa2b5ee4ffb4 /include
parentx86/mmiotrace: Lock down the testmmiotrace module (diff)
downloadlinux-dev-02e935bf5b34edcc4cb0dc532dd0e1a1bfb33b51.tar.xz
linux-dev-02e935bf5b34edcc4cb0dc532dd0e1a1bfb33b51.zip
lockdown: Lock down /proc/kcore
Disallow access to /proc/kcore when the kernel is locked down to prevent access to cryptographic data. This is limited to lockdown confidentiality mode and is still permitted in integrity mode. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Matthew Garrett <mjg59@google.com> Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/security.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/security.h b/include/linux/security.h
index d8db7ea4c4bf..669e8de5299d 100644
--- a/include/linux/security.h
+++ b/include/linux/security.h
@@ -116,6 +116,7 @@ enum lockdown_reason {
LOCKDOWN_MODULE_PARAMETERS,
LOCKDOWN_MMIOTRACE,
LOCKDOWN_INTEGRITY_MAX,
+ LOCKDOWN_KCORE,
LOCKDOWN_CONFIDENTIALITY_MAX,
};