Commit Graph
286855 Commits
Author SHA1 Message Date
Niklas Hambüchen 0dc08b4138 wireguard module: generatePrivateKeyFile: Fix chmod security race. Fixes #121288
Until now, the `touch + chmod 600 + write` approach made it possible for
an unprivileged local user read the private key file, by opening
the file after the touch, before the read permissions are restricted.

This was only the case if `generatePrivateKeyFile = true` and the parent
directory of `privateKeyFile` already existed and was readable.

This commit fixes it by using `umask`, which ensures kernel-side that
the `touch` creates the file with the correct permissions atomically.

This commit also:

* Removes `mkdir --mode 0644 -p "${dirOf values.privateKeyFile}"`
  because setting permissions `drw-r--r--` ("nobody can enter that dir")
  is awkward. `drwx------` would perhaps make sense, like for `.ssh`.
  However, setting the permissions on the private key file is enough,
  and likely better, because `privateKeyFile` is about that file
  specifically and no docs suggest that there's something special
  about its parent dir.
* Removes the `chmod 0400 "${values.privateKeyFile}"`
  because there isn't really a point in removing write access from
  the owner of the private key.
2021-04-30 18:55:38 +02:00
Martin Weinelt 506bc7ba02 nixos/nginx: update hardening settings
- Set an explicit umask that allows u+rwx and g+r.
- Adds `ProtectControlGroups` and `ProtectKernelLogs`, there should be
  no need to access either.
- Adds `ProtectClock` to prevent write-access to the system clock.
- `ProtectProc` hides processes from other users within the /proc
  filesystem and `ProcSubSet` hides all files/directories unrelated to
  the process management of the units process.
- Sets `RemoveIPC`, as there is no SysV or POSIX IPC within nginx that I
  know of.
- Restricts the creation of arbitrary namespaces
- Adds a reasonable `SystemCallFilter` preventing calls to @privileged,
  @obsolete and others.

And finally applies some sorting based on the order these options appear
in systemd.exec(5).
2021-04-30 18:49:43 +02:00
Travis A. Everett 5fb284dda6 yadm: add release note for 3.x 2021-04-30 11:07:35 -05:00
R. RyanTM 3ceb0e9cfa krapslog: 0.1.2 -> 0.1.3 2021-04-30 15:55:57 +00:00
Milan Pässler 903e23ad36 firefox-esr: use latest Rust
Firefox ESR 78.x used to have a problem with Rust >= 1.46, but it works
with latest Rust now!
2021-04-30 17:50:01 +02:00
Robert Schütz c8dff328e5 Merge pull request #120447 from AluisioASG/aasg/dyndnsc-0.6.1
dyndnsc: 0.5.1 -> 0.6.1
2021-04-30 17:35:33 +02:00
Robert Schütz 93507828b2 passExtensions.pass-import: fix tests 2021-04-30 17:16:28 +02:00
Kim Lindberger fdd6ca8fce Merge pull request #118898 from talyz/gitlab-memory-bloat
nixos/gitlab: Add options to tame GitLab's memory usage somewhat
2021-04-30 16:58:30 +02:00
Aaron Andersen dd454b37a0 musikcube: 0.96.5 -> 0.96.7 2021-04-30 10:56:57 -04:00
Robert Schütz 93edfffab6 pythonPackages.pykeepass: run tests 2021-04-30 16:53:36 +02:00
Aaron Andersen ddf04bd3f1 musikcube: update from ffmpeg_3 to ffmpeg 2021-04-30 10:50:01 -04:00
Aaron Andersen 445c114b49 Merge pull request #121162 from r-ryantm/auto-update/kodi-inputstream-adaptive
kodiPackages.inputstream-adaptive: 2.6.13 -> 2.6.14
2021-04-30 10:45:18 -04:00
Aluísio Augusto Silva Gonçalves 093ab98c80 dyndnsc: 0.5.1 -> 0.6.1 2021-04-30 11:40:29 -03:00
Aluísio Augusto Silva Gonçalves 932ec5518e python3Packages.pytest-console-scripts: init at 1.2.0
Thanks to @kvas-it for cutting a release with the patches needed to make
tests work.
2021-04-30 11:40:29 -03:00
Aluísio Augusto Silva Gonçalves 0463f91e04 python3Packages.sanic-auth: fix tests (#121279)
After #120881, packages using Sanic's `app.test_client` or
`app.asgi_client` need to depend on `sanic-testing` as well.
2021-04-30 16:40:24 +02:00
Aaron Andersen bddecd3510 redmine: 4.2.0 -> 4.2.1 2021-04-30 10:33:25 -04:00
Aluísio Augusto Silva Gonçalves 98822ee896 python3Packages.json-logging: init at 1.3.0 2021-04-30 11:33:04 -03:00
Michael Weiss 774550baf5 Merge pull request #119615 from Synthetica9/cage-0.1.3
cage: 0.1.2.1 -> 0.1.3
2021-04-30 16:27:11 +02:00
Guillaume Girol 0c9ed22e64 Merge pull request #119562 from symphorien/fusermountsetuid
fuse: fix mount.fuse -o setuid=...
2021-04-30 14:26:39 +00:00
Michael Weiss 28b8cff301 nixos/tests/cage: Fix the test with wlroots 0.13
See #119615 for more details. The aarch64-linux test failed with
"qemu-system-aarch64: Virtio VGA not available" so I've restricted the
test to x86_64-linux (the virtio paravirtualized 3D graphics driver is
likely only available on very few platforms).
2021-04-30 15:57:04 +02:00
Joe Hermaszewski c87152d97c ecpdap: 0.1.5 -> 0.1.6
Also put the new udev rules in /etc/udev/rules.d
2021-04-30 21:53:43 +08:00
Diogo Xavier 4d773bddeb frugal: init at 3.14.2 2021-04-30 14:53:37 +01:00
Diogo Xavier b876437295 maintainers: add diogox 2021-04-30 14:53:31 +01:00
Michael Weiss c89bf45195 Merge pull request #121267 from samuelgrf/fix-google-chrome-dev
google-chrome-dev: fix error on startup
2021-04-30 15:52:14 +02:00
Pawel Kruszewski 013e245188 timeular: 3.4.1 -> 3.9.1 2021-04-30 15:46:36 +02:00
pennae 317a2c9f26 nixos/nix-containers: add tests for early/no-machined container stop 2021-04-30 15:43:27 +02:00
Patrick Hilhorst 4263479d3e cage: 0.1.2.1 -> 0.1.3 2021-04-30 15:38:12 +02:00
Yurii Matsiuk e7835da83f zoom-us: 5.6.16775.0418 -> 5.6.16888.0424 2021-04-30 15:27:43 +02:00
Robert Schütz dc68eb58bb Merge pull request #120881 from AluisioASG/aasg/sanic-routing
python3Packages.sanic: 21.3.2 -> 21.3.4; fix tests
2021-04-30 15:20:49 +02:00
Samuel Gräfenstein 10b96a639c libfaketime: add meta.mainProgram 2021-04-30 15:18:21 +02:00
Sandro e68f542c32 Merge pull request #121260 from Mic92/cutter 2021-04-30 15:13:26 +02:00
ajs124 cd349a4a62 Merge pull request #121019 from r-ryantm/auto-update/gitlab-pages
gitlab-pages: 1.35.0 -> 1.38.0
2021-04-30 15:12:10 +02:00
Sandro c9c351c5ef Merge pull request #121166 from timothyklim/master
nvidia-x11: 460.27.04 -> 465.27
2021-04-30 15:08:53 +02:00
Sandro bcfd1b2f2c Merge pull request #121038 from sikmir/josm
josm: 17702 → 17833
2021-04-30 15:02:36 +02:00
Henri Menke c9f1544978 sof-firmware: 1.6 -> 1.7 (#121181) 2021-04-30 15:02:09 +02:00
Sandro 9a80c030b6 Merge pull request #120754 from netcrns/netcrns/movine 2021-04-30 15:01:44 +02:00
Sandro 09fb96f975 Merge pull request #120763 from vale981/master 2021-04-30 15:00:55 +02:00
Jonathan Wilkins a690b4e123 zsh-z: init at unstable-2021-02-15 2021-04-30 14:00:41 +01:00
Aluísio Augusto Silva Gonçalves bd815d2121 python3Packages.sanic: 21.3.2 -> 21.3.4
While we're at it, revise the dependencies lists; there's been a couple
of break-ups with 21.3.0.
2021-04-30 09:56:09 -03:00
Aluísio Augusto Silva Gonçalves 192b28a75f python3Packages.sanic-testing: init at 0.3.1 2021-04-30 09:56:09 -03:00
Aluísio Augusto Silva Gonçalves 550bb02269 python3Packages.sanic-routing: init at 0.6.2 2021-04-30 09:56:09 -03:00
Aluísio Augusto Silva Gonçalves 5b971598f0 python3Packages.pytest-sanic: mark as broken with sanic >= 21.3.0
pytest-sanic is incompatible with the current version of Sanic, see
sanic-org/sanic#2095 and yunstanford/pytest-sanic#50.  While it is
broken, we also need it to run Sanic's tests (for which case it works
just fine).
2021-04-30 09:56:09 -03:00
Samuel Gräfenstein c9d89c2f55 google-chrome-dev: fix error on startup
Fix `[..]/crashpad_handler: No such file or directory`.
2021-04-30 14:54:55 +02:00
Sandro dd829d287a Merge pull request #121205 from r-ryantm/auto-update/libgpiod
libgpiod: 1.6.2 -> 1.6.3
2021-04-30 14:53:19 +02:00
Sandro 87769f35d4 Merge pull request #121199 from r-ryantm/auto-update/helm
kubernetes-helm: 3.5.3 -> 3.5.4
2021-04-30 14:51:13 +02:00
Sandro 039d5a2d1a Merge pull request #120707 from onsails/ffsend
ffsend: fix build on darwin
2021-04-30 14:47:55 +02:00
Timothy Klim ebb59d3b11 nvidia-x11: 460.27.04 -> 465.27 2021-04-30 19:45:48 +07:00
Sandro 536ae468d2 Merge pull request #120018 from blargg/yadm
yadm: 2.5.0 -> 3.1.0
2021-04-30 14:45:44 +02:00
Sandro 217ee74d64 Merge pull request #121013 from eduardosm/pyface
pythonPackages.pyface: fix build
2021-04-30 14:36:41 +02:00
Daniël de Kok 2e27fa876d Merge pull request #121010 from Flakebi/amdvlk
amdvlk: 2021.Q1.6 -> 2021.Q2.2
2021-04-30 14:31:55 +02:00