diff options
| author | Daniel Borkmann <daniel@iogearbox.net> | 2026-08-28 19:52:18 +0200 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-08-29 18:17:50 -0700 |
| commit | abaa0835b4f381067cc04bfd58180679d813578b (patch) | |
| tree | 00c5429fee087ea63315998b8e35a6d2add97ab2 /tools/lib/python/kdoc/python_version.py | |
| parent | 264d8fd2794fabe76a89abd5d4f5f8c1ed5fad85 (diff) | |
bpf: Refuse caller-supplied keyrings when the bpf one is active
Nothing changes for systems that do not use the bpf keyring. Without
bpf.keyring_unsealed=1 a caller-supplied keyring behaves exactly as
before, which also lets it serve as the staging step for software
installed onto a running system whose signing key is not enrolled
anywhere yet.
Passing bpf.keyring_unsealed=1 states that the bpf keyring is the trust
anchor for this boot, so from the first program load onwards a caller-
supplied keyring is refused with -EPERM. Deriving this from the boot
flag rather than from the keyring's runtime state keeps the decision
immutable from userspace.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/r/20260828175227.1537793-3-daniel@iogearbox.net
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
