Commit Graph

15161 Commits

Author SHA1 Message Date
Andreas Rammhold
64556974b6
systemd: 247.6 -> 249.4
This updates systemd to version v249.4 from version v247.6.

Besides the many new features that can be found in the upstream
repository they also introduced a bunch of cleanup which ended up
requiring a few more patches on our side.

a) 0022-core-Handle-lookup-paths-being-symlinks.patch:
  The way symlinked units were handled was changed in such that the last
  name of a unit file within one of the unit directories
  (/run/systemd/system, /etc/systemd/system, ...) is used as the name
  for the unit. Unfortunately that code didn't take into account that
  the unit directories themselves could already be symlinks and thus
  caused all our units to be recognized slightly different.

  There is an upstream PR for this new patch:
    https://github.com/systemd/systemd/pull/20479

b) The way the APIVFS is setup has been changed in such a way that we
   now always have /run. This required a few changes to the
   confinement tests which did assert that they didn't exist. Instead of
   adding another patch we can just adopt the upstream behavior. An
   empty /run doesn't seem harmful.

   As part of this work I refactored the confinement test just a little
   bit to allow better debugging of test failures. Previously it would
   just fail at some point and it wasn't obvious which of the many
   commands failed or what the unexpected string was. This should now be
   more obvious.

c) Again related to the confinement tests the way a file was tested for
   being accessible was optimized. Previously systemd would in some
   situations open a file twice during that check. This was reduced to
   one operation but required the procfs to be mounted in a units
   namespace.

   An upstream bug was filed and fixed. We are now carrying the
   essential patch to fix that issue until it is backported to a new
   release (likely only version 250). The good part about this story is
   that upstream systemd now has a test case that looks very similar to
   one of our confinement tests. Hopefully that will lead to less
   friction in the long run.

   https://github.com/systemd/systemd/issues/20514
   https://github.com/systemd/systemd/pull/20515

d) Previously we could grep for dlopen( somewhat reliably but now
   upstream started using a wrapper around dlopen that is most of the
   time used with linebreaks. This makes using grep not ergonomic
   anymore.

   With this bump we are grepping for anything that looks like a
   dynamic library name (in contrast to a dlopen(3) call) and replace
   those instead. That seems more robust. Time will tell if this holds.

   I tried using coccinelle to patch all those call sites using its
   tooling but unfornately it does stumble upon the _cleanup_
   annotations that are very common in the systemd code.

e) We now have some machinery for libbpf support in our systemd build.
   That being said it doesn't actually work as generating some skeletons
   doesn't work just yet. It fails with the below error message and is
   disabled by default (in both minimal and the regular build).

   > FAILED: src/core/bpf/socket_bind/socket-bind.skel.h
   > /build/source/tools/build-bpf-skel.py --clang_exec /nix/store/x1bi2mkapk1m0zq2g02nr018qyjkdn7a-clang-wrapper-12.0.1/bin/clang --llvm_strip_exec /nix/store/zm0kqan9qc77x219yihmmisi9g3sg8ns-llvm-12.0.1/bin/llvm-strip --bpftool_exec /nix/store/l6dg8jlbh8qnqa58mshh3d8r6999dk0p-bpftools-5.13.11/bin/bpftool --arch x86_64 ../src/core/bpf/socket_bind/socket-bind.bpf.c src/core/bpf/socket_bind/socket-bind.skel.h
   > libbpf: elf: socket_bind_bpf is not a valid eBPF object file
   > Error: failed to open BPF object file: BPF object format invalid
   > Traceback (most recent call last):
   >   File "/build/source/tools/build-bpf-skel.py", line 128, in <module>
   >     bpf_build(args)
   >   File "/build/source/tools/build-bpf-skel.py", line 92, in bpf_build
   >     gen_bpf_skeleton(bpftool_exec=args.bpftool_exec,
   >   File "/build/source/tools/build-bpf-skel.py", line 63, in gen_bpf_skeleton
   >     skel = subprocess.check_output(bpftool_args, universal_newlines=True)
   >   File "/nix/store/81lwy2hfqj4c1943b1x8a0qsivjhdhw9-python3-3.9.6/lib/python3.9/subprocess.py", line 424, in check_output
   >     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
   >   File "/nix/store/81lwy2hfqj4c1943b1x8a0qsivjhdhw9-python3-3.9.6/lib/python3.9/subprocess.py", line 528, in run
   >     raise CalledProcessError(retcode, process.args,
   > subprocess.CalledProcessError: Command '['/nix/store/l6dg8jlbh8qnqa58mshh3d8r6999dk0p-bpftools-5.13.11/bin/bpftool', 'g', 's', '../src/core/bpf/socket_bind/socket-bind.bpf.o']' returned non-zero exit status 255.
   > [102/1457] Compiling C object src/journal/libjournal-core.a.p/journald-server.c.oapture output)put)ut)
   > ninja: build stopped: subcommand failed.

  f) We do now have support for TPM2 based disk encryption in our
     systemd build. The actual bits and pieces to make use of that are
     missing but there are various ongoing efforts in that direction.
     There is also the story about systemd in our initrd to enable this
     being used for root volumes. None of this will yet work out of the
     box but we can start improving on that front.

  g) FIDO2 support was added systemd and consequently we can now use
     that. Just with TPM2 there hasn't been any integration work with
     NixOS and instead this just adds that capability to work on that.

Co-Authored-By: Jörg Thalheim <joerg@thalheim.io>
2021-09-12 23:45:49 +02:00
Andreas Rammhold
1bfa488b1c
libbpf: 0.1.1 -> 0.4.0 2021-09-12 23:44:14 +02:00
github-actions[bot]
7267016c66
Merge staging-next into staging 2021-09-12 12:01:42 +00:00
github-actions[bot]
acd45cb351
Merge master into staging-next 2021-09-12 12:01:10 +00:00
Jörg Thalheim
6fb71e46ca sysdig: fix linking against libabseil 2021-09-12 10:49:38 +02:00
github-actions[bot]
8bc930ca39
Merge staging-next into staging 2021-09-12 00:02:23 +00:00
github-actions[bot]
3f2255106a
Merge master into staging-next 2021-09-12 00:01:45 +00:00
ajs124
e8f9aa9302
Merge pull request #137281 from NeQuissimus/kernels
Kernels 2021-09-10
2021-09-11 22:30:04 +02:00
github-actions[bot]
ff5297bcd3
Merge staging-next into staging 2021-09-11 12:01:45 +00:00
Alyssa Ross
56314db098
Merge remote-tracking branch 'nixpkgs/master' into staging-next
Conflicts:
	pkgs/development/compilers/ghc/8.10.7.nix
	pkgs/development/compilers/ghc/8.8.4.nix

I've removed the isWindows check from useLdGold in ghc, since that should
be covered by the new hasGold check.
2021-09-11 10:49:13 +00:00
Bernardo Meurer
98018cce2c
linuxPackages.bbswitch: use kernel's make flags
We should be using whatever makeflags were used to build the kernel
itself, otherwise clang-built kernels cannot use the module.
2021-09-10 14:42:17 -07:00
github-actions[bot]
fa42e187e1
Merge staging-next into staging 2021-09-10 18:01:52 +00:00
Martin Weinelt
d9341eafa2
Merge branch 'master' into staging-next 2021-09-10 15:04:01 +02:00
Tim Steinbach
6a50498b6d linux: 5.14.1 -> 5.14.2 2021-09-10 08:01:01 -04:00
Tim Steinbach
332100e6e1 linux: 5.13.14 -> 5.13.15 2021-09-10 08:01:01 -04:00
Tim Steinbach
6c41ccc972 linux: 5.10.62 -> 5.10.63 2021-09-10 08:01:01 -04:00
Tim Steinbach
820d68d2dc
linux/hardened/patches/5.14: init at 5.14.2-hardened1 2021-09-10 05:20:10 -04:00
Tim Steinbach
02b5c3b291
linux/hardened/patches/5.13: 5.13.14-hardened1 -> 5.13.15-hardened1 2021-09-10 05:20:09 -04:00
Tim Steinbach
3fe64b3728
linux/hardened/patches/5.10: 5.10.62-hardened1 -> 5.10.63-hardened1 2021-09-10 05:20:08 -04:00
github-actions[bot]
43f3e1bcc6
Merge staging-next into staging 2021-09-10 00:02:06 +00:00
github-actions[bot]
912b8082df
Merge master into staging-next 2021-09-10 00:01:31 +00:00
Timothy DeHerrera
6dbeb3190d
Merge pull request #126544 from jonringer/nixos-rebuild-use-substitutes
nixos-rebuild: add --use-substitutes option
2021-09-09 13:53:37 -06:00
Jörg Thalheim
1f4b1d941e
Merge pull request #135939 from Atemu/update/linux_lqx
linux_lqx: 5.13.9 -> 5.13.15
2021-09-09 20:26:49 +01:00
Atemu
2938a58f2d linux_lqx: 5.13.9 -> 5.13.15 2021-09-09 17:50:50 +02:00
github-actions[bot]
b56a4e5e6e
Merge staging-next into staging 2021-09-09 00:02:15 +00:00
github-actions[bot]
8cd1da2362
Merge master into staging-next 2021-09-09 00:01:35 +00:00
Pavol Rusnak
9ceefd7e37
Merge pull request #137088 from bricewge/master
maintainers: remove bricewge
2021-09-08 20:15:52 +02:00
github-actions[bot]
a84ab6724a
Merge staging-next into staging 2021-09-08 18:01:37 +00:00
github-actions[bot]
31efc58eb0
Merge master into staging-next 2021-09-08 18:01:03 +00:00
Alyssa Ross
1fb4400c91 linuxPackages.perf-tools: clarify license 2021-09-08 17:17:39 +00:00
Alyssa Ross
5c14c688d2 linuxPackages.bbswitch: add license 2021-09-08 17:17:27 +00:00
github-actions[bot]
888f8e8ac0
Merge staging-next into staging 2021-09-08 12:02:02 +00:00
github-actions[bot]
5ed67a849a
Merge master into staging-next 2021-09-08 12:01:27 +00:00
Brice Waegeneire
a49177e0ce maintainers: remove bricewge
So long, and thanks for all the fish!
2021-09-08 11:56:00 +02:00
Fabian Affolter
6adfc5114d
Merge pull request #136982 from ymatsiuk/upower
upower: 0.99.11 -> 0.99.13
2021-09-08 11:53:18 +02:00
github-actions[bot]
350e236585
Merge staging-next into staging 2021-09-08 06:01:57 +00:00
github-actions[bot]
ad1de317ad
Merge master into staging-next 2021-09-08 06:01:19 +00:00
Tim Steinbach
6a6ff4d0d8 linux_latest-libre: 18298 -> 18314 2021-09-07 20:15:06 -04:00
github-actions[bot]
23d1f1e2cf
Merge staging-next into staging 2021-09-08 00:02:21 +00:00
github-actions[bot]
58f8f1f058
Merge master into staging-next 2021-09-08 00:01:42 +00:00
ajs124
73204fed4b
Merge pull request #136944 from lovesegfault/hardened-update
linux_{4_14,4_19,5_4,5_10,5_13}_hardened: update patches
2021-09-07 22:56:36 +02:00
Bernardo Meurer
abfa8098ac
linux_5_13_hardened: 5.13.13 -> 5.13.14 2021-09-07 11:30:36 -07:00
Bernardo Meurer
1aba1d891f
linux_5_10_hardened: 5.10.61 -> 5.10.62 2021-09-07 11:30:35 -07:00
Bernardo Meurer
8169d9283e
linux_5_4_hardened: 5.4.143 -> 5.4.144 2021-09-07 11:30:34 -07:00
Bernardo Meurer
1c0e5d13a9
linux_4_19_hardened: 4.19.205 -> 4.19.206 2021-09-07 11:29:21 -07:00
Bernardo Meurer
17681be1d3
linux_4_14_hardened: 4.14.245 -> 4.14.246 2021-09-07 11:28:38 -07:00
Luke Granger-Brown
39ddedbc0b Merge remote-tracking branch 'upstream/staging' into staging-fix 2021-09-07 16:27:16 +00:00
Luke Granger-Brown
9094826af8 Merge remote-tracking branch 'upstream/staging-next' into staging-fix 2021-09-07 16:23:11 +00:00
Luke Granger-Brown
9501e5d2fd Merge commit '5b6c2380adb4c4ddb0f87152cef0016333ea5a4d' into staging-fix 2021-09-07 16:21:36 +00:00
Yurii Matsiuk
ea0f9ce763
upower: 0.99.11 -> 0.99.13 2021-09-07 14:40:12 +02:00