Add the ability to lock down access to the running kernel image
authorDavid Howells <dhowells@redhat.com>
Wed, 8 Nov 2017 15:11:31 +0000 (15:11 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 23 Nov 2018 19:15:55 +0000 (19:15 +0000)
commite4b5d9dda6939e5d8778cc866a6898b449d5d68b
treee873042f35795f5f85065d72a1aa9d6a2349f510
parentffbbf5dec03869b970a92aa55963b77ff7f1c5d9
Add the ability to lock down access to the running kernel image

Provide a single call to allow kernel code to determine whether the system
should be locked down, thereby disallowing various accesses that might
allow the running kernel image to be changed including the loading of
modules that aren't validly signed with a key we recognise, fiddling with
MSR registers and disallowing hibernation,

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: James Morris <james.l.morris@oracle.com>
Gbp-Pq: Topic features/all/lockdown
Gbp-Pq: Name 0001-Add-the-ability-to-lock-down-access-to-the-running-k.patch
include/linux/kernel.h
include/linux/security.h
security/Kconfig
security/Makefile
security/lock_down.c [new file with mode: 0644]