Skip to content

v255 batch #440

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

Merged
merged 18 commits into from
Sep 10, 2024
Merged

v255 batch #440

merged 18 commits into from
Sep 10, 2024

Conversation

bluca
Copy link
Member

@bluca bluca commented Sep 10, 2024

No description provided.

DaanDeMeyer and others added 18 commits September 10, 2024 17:28
(cherry picked from commit d098b8d)
(cherry picked from commit f6f96b0)
Unprivileged users often make themselves root by unsharing a user namespace
and then mapping their current user to root which does not require privileges.
Let's make sure our tests don't fail in such an environment by adding checks
where required to see if we're not running in a user namespace with only a
single user.

(cherry picked from commit ef31767)
(cherry picked from commit ec5cdf9)
(cherry picked from commit 4cf7a67)
(cherry picked from commit 2e52cf1)
(cherry picked from commit 7908e1d)
(cherry picked from commit 9375910)
Builds with kernels headers < 4.14 fail with:

../src/shared/loop-util.c: In function ‘loop_configure_fallback’:
../src/shared/loop-util.c:237:31: error: ‘LOOP_SET_BLOCK_SIZE’ undeclared (first use in this function); did you mean ‘LOOP_SET_DIRECT_IO’?
                 if (ioctl(fd, LOOP_SET_BLOCK_SIZE, (unsigned long) c->block_size) < 0)
                               ^~~~~~~~~~~~~~~~~~~
                               LOOP_SET_DIRECT_IO

Fixes: systemd/systemd#33341

Signed-off-by: Raphaël Mélotte <[email protected]>
(cherry picked from commit 56ab1c5)
(cherry picked from commit 0730ec4)
In apply_one_mount(), in the MOUNT_EXTENSION_DIRECTORY case,
char **extension_release was used as a return pointer twice but only
cleaned up once in the end. Fix it by removing duplicate code that
was causing this issue.

Fixes issue introduced in 55ea4ef.

(cherry picked from commit 010ea06)
(cherry picked from commit 83f3094)
arg_root defaults to null, so if --root isn't given, this would try reading
etc/machine-info from the current working directory, which is likely to fail.

Fixes: 77db9ef ("boot: Make sure we take --root into account everywhere.")
(cherry picked from commit 0452779)
(cherry picked from commit 8d7eef9)
When the bypass logic is invoked, such as for queries to the stub with
the DO bit set, be certain to clear the AD bit in the reply before
forwarding it if the answer is not known to be authentic.

(cherry picked from commit 13e15da)
(cherry picked from commit 3a2be65)
(cherry picked from commit 5121f7c)
(cherry picked from commit c355457)
Otherwise, when merging multiple directory trees, the output becomes
unreproducible as the directory timestamps will be changed to the current
time when copying identical directories from the second tree.

We introduce a new copy flag to achieve this behavior.

(cherry picked from commit d850a54)
(cherry picked from commit d5640c4)
(cherry picked from commit 190a095)
(cherry picked from commit c90ae08)
…rs= is specified

Also do not chown if a device node is bind-mounted.

Fixes #34243.

(cherry picked from commit efedb6b)
(cherry picked from commit a235918)
As the seed is used by context_load_partition_table() -> derive_uuid().

Fixes #34257.

(cherry picked from commit b8a8000)
(cherry picked from commit f85a4fb)
For issue #34257.

(cherry picked from commit 56d6ebd)
(cherry picked from commit 69282da)
(cherry picked from commit fe6049d)
(cherry picked from commit dda8cb4)
Fixes #34270.

(cherry picked from commit 623a8b1)
(cherry picked from commit 34881c9)
(cherry picked from commit 204529d)
(cherry picked from commit e80e9dc)
git restore -s origin/main hwdb.d/ test/hwdb.d

(cherry picked from commit f13e3a9)
@bluca bluca merged commit 799ecea into systemd:v255-stable Sep 10, 2024
37 of 43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

8 participants