Repository navigation
[staging-next] nixos/systemd: patch to avoid update-utmp failure with audit 4.2 - #547195
Merged
ElvishJerricco merged 1 commit intoJul 30, 2026
Merged
Conversation
audit 4.2 rejects overlong values (max 15 bytes) for the kernel comm. systemd attempts to send the full 19 bytes of "systemd-update-utmp", and the systemd-update-utmp service fails to start. this was changed to truncate instead of reject in audit 4.2.1, but until we can take the mass rebuild on staging, we fetch the systemd patch which shortens "systemd-update-utmp" to "update-utmp". this is in the nixos module as `apply` instead of part of the systemd package as that would be a larger rebuild and would delay other fixes making their way to master.
whispersofthedawn
force-pushed
the
p/systemd/audit-patch
branch
from
July 29, 2026 21:25
6b2f96b to
693e3bc
Compare
Contributor
|
I just wrote a nixos test for utmp, and can confirm both this failure and the fix. |
Contributor
|
#547227 now has a utmp nixos test, which starts working with this PR (and hopefully also starts working with the audit update, i did not yet build that far to tell) |
6 of 13 tasks
Member
|
Somehow this commit/merge broke |
3 of 13 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
see discussion in #staging:nixos.org starting at https://matrix.to/#/!UNVBThoJtlIiVwiDjU:nixos.org/$nUMH0ULEV7kMmSOMrOiCZI3rb2yGvXDGn_yY-wNYmDU?via=nixos.org&via=matrix.org&via=tchncs.de for much more context.
audit 4.2 rejects overlong values (max 15 bytes) for the kernel comm. systemd attempts to send the full 19 bytes of "systemd-update-utmp", and the systemd-update-utmp service fails to start. this was changed to truncate instead of reject in audit 4.2.1, but until we can take the mass rebuild on staging, we fetch the systemd patch which shortens "systemd-update-utmp" to "update-utmp". this is in the nixos module as
applyinstead of part of the systemd package as that would be a larger rebuild and would delay other fixes making their way to master.original commit: linux-audit/audit-userspace@d7ea982
switch to truncate: linux-audit/audit-userspace@d7ea982
systemd pr: systemd/systemd#43144
tested:
nixosTests.loginhad logs of utmp failing to start before, and no longer does with this. also tested on my laptop running staging-next.Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.