From: Vitaly Chikunov <vt@altlinux.org>
To: ALT Linux kernel packages development <devel-kernel@lists.altlinux.org>
Subject: Re: [d-kernel] [PATCH 0/6] [7.0, 7.1] Lock down the kernel if booted in Secure Boot mode
Date: Sat, 9 May 2026 02:01:13 +0300
Message-ID: <af5lUMGeyOScTdDo@altlinux.org> (raw)
In-Reply-To: <20260506173722.1012394-1-egori@altlinux.org>
Egor,
On Wed, May 06, 2026 at 08:37:16PM +0300, Egor Ignatov wrote:
> Данный набор патчей включает механизм kernel lockdown при загрузке
> системы в режиме Secure Boot. При обнаружении активного Secure Boot
> ядро автоматически переводится в режим lockdown.
>
> В основу серии положен изначальный патчсет "security, efi: Add kernel
> lockdown" за авторством David Howells. Использованы более актуальные
> варианты соответствующих патчей, поддерживаемые в ядрах Fedora и Debian.
Большой патчсет, полагаю, было бы неплохо знать где находится апстрим этого
всего с "более актуальные варианты соответствующих патчей", на случай когда
возникновения merge conflicts.
А так же причина почему выбран конкретный пачт, ведь не во всех
указанных дистрибутивах они есть (плюс еще OpenSUSE).
Я поискал:
1. В Fedora патчи в kernel-ark без указания какие относятся как
необходимые для "Lock down the kernel if booted in Secure Boot".
2. https://github.com/SUSE/kernel-source/tree/master/patches.suse
У них больше патчей, но, полагаю, не все они нужны.
Из нашего списка там эти:
[PATCH 1/3] security: lockdown: expose a hook to lock the kernel down
[PATCH 2/3] efi: Add an EFI_SECURE_BOOT flag to indicate secure boot mode
[PATCH 3/3] efi: Lock down the kernel if booted in secure boot mode
[PATCH] lockdown: fix kernel lockdown enforcement issue when secure
Может стоит ограничиться этими изменениями?
3. https://salsa.debian.org/kernel-team/linux/-/tree/debian/latest/debian/patches/features/all/lockdown
arm64-add-kernel-config-option-to-lock-down-when.patch
efi-add-an-efi_secure_boot-flag-to-indicate-secure-b.patch
efi-lock-down-the-kernel-if-booted-in-secure-boot-mo.patch
mtd-disable-slram-and-phram-when-locked-down.patch
Может стоит выбрать минимальный набор патчей удовлетворяющий shim?
>
> Серия предназначена для веток 7.0 и 7.1.
>
> Ben Hutchings (1):
> mtd: phram,slram: Disable when the kernel is locked down
>
> David Howells (2):
> efi: Add an EFI_SECURE_BOOT flag to indicate secure boot mode
> efi: Lock down the kernel if booted in secure boot mode
>
> Egor Ignatov (1):
> config: Enable LOCK_DOWN_IN_EFI_SECURE_BOOT
>
> Jeremy Cline (1):
> security: lockdown: expose security_lock_kernel_down function
>
> Linn Crosetto (1):
> efi: determine and pass Secure Boot state via FDT
>
> arch/x86/kernel/setup.c | 16 ++----------
> config | 1 +
> drivers/firmware/efi/Makefile | 1 +
> drivers/firmware/efi/efi-init.c | 5 +++-
> drivers/firmware/efi/fdtparams.c | 12 ++++++++-
> drivers/firmware/efi/libstub/fdt.c | 6 +++++
> drivers/firmware/efi/secureboot.c | 42 ++++++++++++++++++++++++++++++
> drivers/mtd/devices/phram.c | 6 ++++-
> drivers/mtd/devices/slram.c | 9 ++++++-
> include/linux/efi.h | 22 ++++++++++------
> include/linux/security.h | 9 +++++++
> security/lockdown/Kconfig | 15 +++++++++++
> security/lockdown/lockdown.c | 11 ++++++++
> 13 files changed, 129 insertions(+), 26 deletions(-)
> create mode 100644 drivers/firmware/efi/secureboot.c
>
> --
> 2.50.1
>
> _______________________________________________
> devel-kernel mailing list
> devel-kernel@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/devel-kernel
prev parent reply other threads:[~2026-05-08 23:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-06 17:37 Egor Ignatov
2026-05-06 17:37 ` [d-kernel] [PATCH 1/6] mtd: phram, slram: Disable when the kernel is locked down Egor Ignatov
2026-05-08 23:43 ` Vitaly Chikunov
2026-05-06 17:37 ` [d-kernel] [PATCH 2/6] security: lockdown: expose security_lock_kernel_down function Egor Ignatov
2026-05-09 0:20 ` Vitaly Chikunov
2026-05-06 17:37 ` [d-kernel] [PATCH 3/6] efi: Add an EFI_SECURE_BOOT flag to indicate secure boot mode Egor Ignatov
2026-05-06 17:37 ` [d-kernel] [PATCH 4/6] efi: Lock down the kernel if booted in " Egor Ignatov
2026-05-09 0:24 ` Vitaly Chikunov
2026-05-06 17:37 ` [d-kernel] [PATCH 5/6] efi: determine and pass Secure Boot state via FDT Egor Ignatov
2026-05-09 0:28 ` Vitaly Chikunov
2026-05-06 17:37 ` [d-kernel] [PATCH 6/6] config: Enable LOCK_DOWN_IN_EFI_SECURE_BOOT Egor Ignatov
2026-05-09 0:34 ` Vitaly Chikunov
2026-05-08 23:01 ` Vitaly Chikunov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=af5lUMGeyOScTdDo@altlinux.org \
--to=vt@altlinux.org \
--cc=devel-kernel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux kernel packages development
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
public-inbox-index devel-kernel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git