RFC Signed kexec support
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest16 patches 25 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | mm: vm_brk(), align the length to page boundarymm/ | +4 | 0 replies | |
| 2/16 | integrity: Add a function to determine digital signature lengthsecurity/ security/ security/ +1 more | +34 | 0 replies | |
| 3/16 | ima: Allow adding more memory locking metadata after digital signature v2include/ security/ | +42 | 0 replies | |
| 4/16 | integrity: Allow digital signature verification with a given keyring ptrsecurity/ security/ | +25 | 1 reply | |
| 5/16 | integrity: Export a function to retrieve hash algo used in digital signaturesecurity/ security/ | +33 | 0 replies | |
| 6/16 | ima: export new IMA functions for signature verificationinclude/ include/ security/ +2 more | +168 | 0 replies | |
| 7/16 | mm: Define a task flag MMF_VM_LOCKED for memlocked tasks and don't allow munlockinclude/ mm/ | +8 | 0 replies | |
| 8/16 | binfmt_elf: Elf executable signature verificationfs/ fs/ include/ +1 more | +76 | 0 replies | |
| 9/16 | ima: define functions to appraise memory buffer contentsinclude/ security/ | +133 | 0 replies | |
| 10/16 | keyctl: Introduce a new operation KEYCTL_VERIFY_SIGNATUREinclude/ security/ security/ +1 more | +125 | 0 replies | |
| 11/16 | ptrace: Do not allow ptrace() from unsigned process to signed onefs/ security/ | +58 | 0 replies | |
| 12/16 | binfmt_elf: Do not mark process signed if binary has elf interpreterfs/ | +9 | 0 replies | |
| 13/16 | kexec: Allow only signed processes to call sys_kexec() in secureboot modekernel/ | +29 | 0 replies | |
| 14/16 | kexec: Export sysfs attributes for secureboot and secure modules to user spacekernel/ | +25 | 4 replies | |
| 15/16 | bootparam: Pass acpi_rsdp pointer in bootparamarch/ arch/ drivers/ +1 more | +18 | 12 replies | |
| 16/16 | mount: Add a flag to not follow symlink at the end of mount pointfs/ include/ | +6 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/16] [RFC PATCH] Signed kexec support
Hi,
Matthew has been posting patches to lock down kernel either due to secureboot requirements or because of signed modules with signing enforced. In kernel lock down mode, kexec will be disabled and that means kdump will not work either.
These patches sign /sbin/kexec and kernel verifies the signature and allows loading a kernel if signature verification is successful. IOW, trust is extended to validly signed user space.
Currently it works only for statically linked applications.
I have generated these patches on top of keys-devel branch of david howell's linux-fs tree (as I required his system_kerying and trusted keyring patches to build upon).
git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git keys-devel
These patches assume that matthew's patches to lockdown kernel will go in some form (secure modules or secure levels or something else). Right now I have hardcoded few things and will remove those once matthew's patches are in.
Some more details about design I have written here.
http://people.redhat.com/vgoyal/kdump-secureboot/kdump-secureboot-summary.txt
Any comments/feedback is appreciated.
Thanks
Vivek
Vivek Goyal (16):
mm: vm_brk(), align the length to page boundary
integrity: Add a function to determine digital signature length
ima: Allow adding more memory locking metadata after digital signature
v2
integrity: Allow digital signature verification with a given keyring
ptr
integrity: Export a function to retrieve hash algo used in digital
signature
ima: export new IMA functions for signature verification
mm: Define a task flag MMF_VM_LOCKED for memlocked tasks and don't
allow munlock
binfmt_elf: Elf executable signature verification
ima: define functions to appraise memory buffer contents
keyctl: Introduce a new operation KEYCTL_VERIFY_SIGNATURE
ptrace: Do not allow ptrace() from unsigned process to signed one
binfmt_elf: Do not mark process signed if binary has elf interpreter
kexec: Allow only signed processes to call sys_kexec() in secureboot
mode
kexec: Export sysfs attributes for secureboot and secure modules to
user space
bootparam: Pass acpi_rsdp pointer in bootparam
mount: Add a flag to not follow symlink at the end of mount point
arch/x86/include/uapi/asm/bootparam.h | 3 +- arch/x86/kernel/acpi/boot.c | 5 + drivers/acpi/osl.c | 10 ++ fs/Kconfig.binfmt | 10 ++ fs/binfmt_elf.c | 116 ++++++++++++++++++++- fs/namespace.c | 6 +- include/linux/acpi.h | 1 + include/linux/cred.h | 2 + include/linux/ima.h | 27 +++++ include/linux/integrity.h | 25 ++++- include/linux/sched.h | 2 + include/uapi/linux/fs.h | 1 + include/uapi/linux/keyctl.h | 16 +++ kernel/cred.c | 2 + kernel/kexec.c | 29 ++++++ kernel/ksysfs.c | 25 +++++ mm/mlock.c | 6 ++ mm/mmap.c | 8 +- security/commoncap.c | 11 ++ security/integrity/digsig.c | 180 +++++++++++++++++++++++++++++++-- security/integrity/digsig_asymmetric.c | 11 -- security/integrity/ima/ima_api.c | 51 ++++++++++ security/integrity/ima/ima_appraise.c | 132 +++++++++++++++++++++++- security/integrity/integrity.h | 36 +++++-- security/keys/compat.c | 28 +++++ security/keys/internal.h | 2 + security/keys/keyctl.c | 79 +++++++++++++++ 27 files changed, 788 insertions(+), 36 deletions(-)
Signature · 7 lines
1.8.3.1 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec