Skip to content
Commit 9b9d8dda authored by Matthew Garrett's avatar Matthew Garrett Committed by James Morris
Browse files

lockdown: Restrict /dev/{mem,kmem,port} when the kernel is locked down



Allowing users to read and write to core kernel memory makes it possible
for the kernel to be subverted, avoiding module loading restrictions, and
also to steal cryptographic information.

Disallow /dev/mem and /dev/kmem from being opened this when the kernel has
been locked down to prevent this.

Also disallow /dev/port from being opened to prevent raw ioport access and
thus DMA from being used to accomplish the same thing.

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarMatthew Garrett <mjg59@google.com>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Cc: x86@kernel.org
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent 49fcf732
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment