-
Notifications
You must be signed in to change notification settings - Fork 76
Signed built-in sysexts #3162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
danzatt
wants to merge
6
commits into
main
Choose a base branch
from
danzatt/sign-sysexts
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+387
−14
Open
Signed built-in sysexts #3162
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1c18058
overlay profiles: Enable cryptsetup in SDK systemd
danzatt 86e05b5
virtual/zlib: Add from Gentoo
danzatt 5c13795
dev-libs/xxhash,sys-fs/erofs-utils: Add from Gentoo
danzatt df660bf
sysext: Sign built-in sysexts
danzatt c3f83ed
app-crypt/azure-keyvault-pkcs11: Bump snapshot to 20250905
danzatt 177e87c
changelog: Add entry for signed built-in sysexts
danzatt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| - Built-in system extensions (e.g., docker-flatcar, containerd-flatcar) are now cryptographically signed using dm-verity roothash signatures. This enables stricter sysext policies via systemd-sysext and provides a foundation for verifying user-provided extensions in future releases. The format changed from squashfs to erofs-based Discoverable Disk Images (DDI). ([scripts#3162](https://github.com/flatcar/scripts/pull/3162)) | ||
2 changes: 1 addition & 1 deletion
2
sdk_container/src/third_party/coreos-overlay/app-crypt/azure-keyvault-pkcs11/Manifest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| DIST azure-keyvault-pkcs11-0_p20250526.tar.gz 22829 BLAKE2B 59df337d32c1931577cd6538a53032fc9f5a43ce67192d114b23b84adfb36c234e091c9cbf2183efc080d093a6c17b7596abd3e7789ffbbd0634912d16d92693 SHA512 410f3f4e446aa1c1307769bc021f39ec9dd01cd08c2a3089889ad382f2b1948bd03eb065970901982a014a31f4bef4cd102a14a39286a7518736b59b4d0ee03f | ||
| DIST azure-keyvault-pkcs11-0_p20250905.tar.gz 22855 BLAKE2B e380d091ef486b988cc3720ae16f00082af69eb8f2dab4f1ee9729e3f18ea3ec06c39cf774aed6a887fba14190431592e7bfc5cb161f3b1a2cc82a050a1d4758 SHA512 902ec4a31e52f3d480dac485c12569813c108fed69b968b42a0262b3d94bcbe6b79ac54c801dec3f44141dcb387d04873ddccd99bf06ed46c93bc2fb919374f7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...tainer/src/third_party/coreos-overlay/profiles/coreos/targets/sdk/package.accept_keywords
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| # Temporarily put the SDK version ahead for sd-json support in Dracut. | ||
|
|
||
| # Needed for building signed sysexts with systemd-repart | ||
| dev-libs/xxhash | ||
| sys-fs/erofs-utils |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
sdk_container/src/third_party/portage-stable/dev-libs/xxhash/Manifest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| DIST xxhash-0.8.2.tar.gz 1141188 BLAKE2B 735408256240760778fa516e01bed428f04837eb4e059c512e924f13e4a96db6cacbbefb04dea65a37b0f25b52cf13c4927a6e7870dc8c0d45b1b955d4ba3da1 SHA512 3e3eef21432fe88bc4dd9940ccad0308fdea3537b06fa5ac0e74c1bde53413dff29c8b3fc617a8a42b9ce88fcf213311d338a31b1ce73b3729342c9e68f06c78 | ||
| DIST xxhash-0.8.3.tar.gz 1147630 BLAKE2B 75923c7c5df3490062791fa02ccddfb7281b3646e2b3e4b4a0c0d611c339e07c8d9cb656777fd0fcec9cda484f7b33edf080116bb011f70d6b8299cda63afa4e SHA512 8b5c8b9aad4e869f28310b12cc314037feda81d92f26c23eaecdb35dc65042ca2e65f2e9606033e62a31bcc737a9a950500ffcbdb8677d6ab20e820ea14f2b79 |
12 changes: 12 additions & 0 deletions
12
sdk_container/src/third_party/portage-stable/dev-libs/xxhash/metadata.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> | ||
| <pkgmetadata> | ||
| <maintainer type="person"> | ||
| <email>amadio@gentoo.org</email> | ||
| <name>Guilherme Amadio</name> | ||
| </maintainer> | ||
| <upstream> | ||
| <remote-id type="github">Cyan4973/xxHash</remote-id> | ||
| <bugs-to>https://github.com/Cyan4973/xxHash/issues</bugs-to> | ||
| </upstream> | ||
| </pkgmetadata> |
43 changes: 43 additions & 0 deletions
43
sdk_container/src/third_party/portage-stable/dev-libs/xxhash/xxhash-0.8.2.ebuild
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| # Copyright 1999-2025 Gentoo Authors | ||
| # Distributed under the terms of the GNU General Public License v2 | ||
|
|
||
| EAPI=8 | ||
|
|
||
| inherit multilib-minimal toolchain-funcs | ||
|
|
||
| DESCRIPTION="Extremely fast non-cryptographic hash algorithm" | ||
| HOMEPAGE="https://xxhash.com/" | ||
| SRC_URI="https://github.com/Cyan4973/xxHash/archive/v${PV}.tar.gz -> ${P}.tar.gz" | ||
| S=${WORKDIR}/xxHash-${PV} | ||
|
|
||
| LICENSE="BSD-2 GPL-2+" | ||
| # https://abi-laboratory.pro/tracker/timeline/xxhash | ||
| SLOT="0" | ||
| KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos" | ||
|
|
||
| src_prepare() { | ||
| default | ||
|
|
||
| multilib_copy_sources | ||
| } | ||
|
|
||
| multilib_src_compile() { | ||
| emake AR="$(tc-getAR)" CC="$(tc-getCC)" | ||
| } | ||
|
|
||
| multilib_src_test() { | ||
| emake CC="$(tc-getCC)" check | ||
| } | ||
|
|
||
| multilib_src_install() { | ||
| local emakeargs=( | ||
| DESTDIR="${D}" | ||
| PREFIX="${EPREFIX}"/usr | ||
| LIBDIR="${EPREFIX}"/usr/$(get_libdir) | ||
| ) | ||
|
|
||
| emake "${emakeargs[@]}" install | ||
| einstalldocs | ||
|
|
||
| rm "${ED}"/usr/$(get_libdir)/libxxhash.a || die | ||
| } |
57 changes: 57 additions & 0 deletions
57
sdk_container/src/third_party/portage-stable/dev-libs/xxhash/xxhash-0.8.3.ebuild
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| # Copyright 1999-2025 Gentoo Authors | ||
| # Distributed under the terms of the GNU General Public License v2 | ||
|
|
||
| EAPI=8 | ||
|
|
||
| inherit flag-o-matic multilib-minimal toolchain-funcs | ||
|
|
||
| DESCRIPTION="Extremely fast non-cryptographic hash algorithm" | ||
| HOMEPAGE="https://xxhash.com/" | ||
| SRC_URI="https://github.com/Cyan4973/xxHash/archive/v${PV}.tar.gz -> ${P}.tar.gz" | ||
| S=${WORKDIR}/xxHash-${PV} | ||
|
|
||
| LICENSE="BSD-2 GPL-2+" | ||
| SLOT="0" | ||
| KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos" | ||
|
|
||
| src_prepare() { | ||
| default | ||
|
|
||
| multilib_copy_sources | ||
| } | ||
|
|
||
| src_configure() { | ||
| # Needed for -Og to be buildable, otherwise fails a/ always_inline (bug #961093) | ||
| # https://github.com/Cyan4973/xxHash?tab=readme-ov-file#binary-size-control | ||
| is-flagq '-Og' && append-cppflags -DXXH_NO_INLINE_HINTS | ||
| multilib-minimal_src_configure | ||
| } | ||
|
|
||
| myemake() { | ||
| emake \ | ||
| AR="$(tc-getAR)" \ | ||
| CC="$(tc-getCC)" \ | ||
| "${@}" | ||
| } | ||
|
|
||
| multilib_src_compile() { | ||
| myemake | ||
| } | ||
|
|
||
| multilib_src_test() { | ||
| # Injecting CPPFLAGS into CFLAGS is needed for test_sanity | ||
| myemake CFLAGS="${CPPFLAGS} ${CFLAGS}" check | ||
| } | ||
|
|
||
| multilib_src_install() { | ||
| local emakeargs=( | ||
| DESTDIR="${D}" | ||
| PREFIX="${EPREFIX}"/usr | ||
| LIBDIR="${EPREFIX}"/usr/$(get_libdir) | ||
| ) | ||
|
|
||
| myemake "${emakeargs[@]}" install | ||
| einstalldocs | ||
|
|
||
| rm "${ED}"/usr/$(get_libdir)/libxxhash.a || die | ||
| } |
2 changes: 2 additions & 0 deletions
2
sdk_container/src/third_party/portage-stable/sys-fs/erofs-utils/Manifest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| DIST erofs-utils-1.8.10.tar.gz 201240 BLAKE2B 9575258115192dc0ef7999dd1fa44f619f9f62c93cfe28e3e65fd5d9a601b09acdce293552c90f51c2f7b557d8830e856d6706af6ccd98fc157b05f819d136b4 SHA512 8c7afd3db55fd4c4f7aa9fbd7ed40fa40de0bfffcee601a3f5dce823d406a32b5e939e24cd6dc336e3033e940fb16ee93f8821f627f90b10e6137113949933dd | ||
| DIST erofs-utils-1.8.4.tar.gz 187276 BLAKE2B da0d80abbfd9b2d547c30bad7647165a3500f20e5de0b5db4c54efb27ec895fd069be983193b06d35728f5a8e1490e6cd255207c76135d8978d86e1512430755 SHA512 c941b0a2ab6c650a9aa4c9cadeb277ebc87007dc51354ff013c7cb763e6e8c9d44ed9e4791730ed05088faaba8c612198b924e70f5e52019382cfdf6d2e6b677 |
63 changes: 63 additions & 0 deletions
63
sdk_container/src/third_party/portage-stable/sys-fs/erofs-utils/erofs-utils-1.8.10.ebuild
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| # Copyright 2021-2025 Gentoo Authors | ||
| # Distributed under the terms of the GNU General Public License v2 | ||
|
|
||
| EAPI=8 | ||
|
|
||
| inherit autotools | ||
|
|
||
| DESCRIPTION="Userspace tools for EROFS" | ||
| HOMEPAGE="https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git" | ||
|
|
||
| SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/xiang/${PN}.git/snapshot/${P}.tar.gz" | ||
|
|
||
| LICENSE="GPL-2+" | ||
| SLOT="0" | ||
| KEYWORDS="~amd64 ~arm64 ~loong" | ||
|
|
||
| IUSE="fuse libdeflate +lz4 +lzma selinux static-libs +threads +uuid +zlib +zstd" | ||
|
|
||
| RDEPEND=" | ||
| dev-libs/xxhash:0= | ||
| fuse? ( sys-fs/fuse:0 ) | ||
| lz4? ( app-arch/lz4:0= ) | ||
| lzma? ( >=app-arch/xz-utils-5.4.0:0= ) | ||
| selinux? ( sys-libs/libselinux:0= ) | ||
| uuid? ( sys-apps/util-linux ) | ||
| zlib? ( | ||
| libdeflate? ( app-arch/libdeflate:0= ) | ||
| !libdeflate? ( virtual/zlib:= ) | ||
| ) | ||
| zstd? ( app-arch/zstd:0= ) | ||
| " | ||
| DEPEND="${RDEPEND}" | ||
| BDEPEND="virtual/pkgconfig" | ||
|
|
||
| PATCHES=( | ||
| ) | ||
|
|
||
| src_prepare() { | ||
| default | ||
| eautoreconf | ||
| } | ||
|
|
||
| src_configure() { | ||
| local myeconfargs=( | ||
| --disable-werror | ||
| $(use_enable fuse) | ||
| $(use_with libdeflate) | ||
| $(use_enable lz4) | ||
| $(use_enable lzma) | ||
| $(use_with selinux) | ||
| $(use_enable static-libs static-fuse) | ||
| $(use_enable threads multithreading) | ||
| $(use_with uuid) | ||
| $(use_with zlib) | ||
| $(use_with zstd libzstd) | ||
| --without-qpl # not packaged | ||
| # do not use bundled xxhash; also upstream says "expected to be | ||
| # faster than the internal one" | ||
| --with-xxhash | ||
| ) | ||
|
|
||
| econf "${myeconfargs[@]}" | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the Flatcar extensions such as podman, python, zfs also covered?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the PR also says
All OS-dependent sysextswhich would include podman and so on but the PR title is built-in as well, so the wording needs to be fixed to state what is covered and what not.