!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

707 Members
For people hacking on Nix: https://github.com/NixOS/nix Nix maintainers can be reached here.155 Servers

Load older messages


SenderMessageTime
10 Sep 2024
@emilazy:matrix.orgemilyhi there, the backports for the macOS Sequoia UID installer fix PR have not been merged/released17:36:15
@emilazy:matrix.orgemilymacOS Sequoia is going to release on Monday17:36:20
@emilazy:matrix.orgemilycurrently nobody upgrading to Sequoia can install anything but the latest version of Nix, which e.g. breaks nix-darwin's tests since we test against the default version of Nix used by Nixpkgs, which remains 2.18 on both the 24.05 and unstable 24.11 channels17:37:04
@emilazy:matrix.orgemilyI think we can manually work around this by setting environment variables, but it's going to be very painful for users. is there an ETA to get those backports merged and released, especially for 2.18?17:37:55
@0x4d0n1s:matrix.org0x4d0n1s joined the room.18:56:34
@artturin:matrix.orgArtturin

Anybody else noticed that the dir produced by --keep-failed is now only readable by root? (700)

$ ls -ld /comp-temp/nix-build-openssh-static-x86_64-unknown-linux-musl-9.8p1.drv-0
drwx------ root root 60 B Tue Sep 10 23:04:21 2024  /comp-temp/nix-build-openssh-static-x86_64-unknown-linux-musl-9.8p1.drv-0/

Reverting https://github.com/NixOS/nix/commit/ede95b1fc133bd1d8eabc862f2e3e03c024cb755 or https://github.com/nixos/nix/commit/76e4adfaac3083056e79b518ccc197a7645a0f2d does not fix it

I use the lazy-trees branch though

21:10:15
@dolcetriade:matrix.orgDolceTriade joined the room.21:10:45
@toonn:matrix.orgtoonn Artturin: I think you need to go into the build(?) subdir now. It was due to a sandbox escaping vulnerability or something? 21:11:18
@emilazy:matrix.orgemily
In reply to @artturin:matrix.org

Anybody else noticed that the dir produced by --keep-failed is now only readable by root? (700)

$ ls -ld /comp-temp/nix-build-openssh-static-x86_64-unknown-linux-musl-9.8p1.drv-0
drwx------ root root 60 B Tue Sep 10 23:04:21 2024  /comp-temp/nix-build-openssh-static-x86_64-unknown-linux-musl-9.8p1.drv-0/

Reverting https://github.com/NixOS/nix/commit/ede95b1fc133bd1d8eabc862f2e3e03c024cb755 or https://github.com/nixos/nix/commit/76e4adfaac3083056e79b518ccc197a7645a0f2d does not fix it

I use the lazy-trees branch though

IIRC there's logic to try and chmod it on failure but it doesn't work
21:12:46
@artturin:matrix.orgArtturin
$ sudo ls -l /comp-temp/nix-build-openssh-static-x86_64-unknown-linux-musl-9.8p1.drv-5/
drwxr-xr-x nixbld1 nixbld 80 B Wed Sep 11 00:09:58 2024  build/
21:12:54
@emilazy:matrix.orgemilyit's part of defence-in-depth against the sandboxing bug yeah21:12:54
@emilazy:matrix.orgemilyif you look for my PR that fixed it on Darwin you can see where it tries to chmod I believe21:13:08
@emilazy:matrix.orgemily(I would be grateful if you manage to patch it since it's very annoying on the community builders)21:13:23
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nix/blob/b9d3cdfbd2b873cf34600b262247d77109dfd905/src/libstore/unix/build/local-derivation-goal.cc#L300021:13:29
@emilazy:matrix.orgemilyright21:13:46
@emilazy:matrix.orgemily you need to chmod topTmpDir too 21:13:53
@emilazy:matrix.orgemilymaybe I should have fixed that at the same time 🫠21:14:01
@emilazy:matrix.orgemilybut I didn't want to risk breaking anything about the mitigation21:14:10
@artturin:matrix.orgArtturin
In reply to @emilazy:matrix.org
you need to chmod topTmpDir too
https://github.com/NixOS/nix/pull/11473
21:22:51
@emilazy:matrix.orgemilysometimes the wrapper directories fail to be removed too21:24:34
@emilazy:matrix.orgemily(maybe especially on Darwin?)21:24:36
@emilazy:matrix.orgemilyhaven't yet figured out why21:24:39
@emilazy:matrix.orgemilyor well, just the directories I guess since Darwin doesn't even use the wrappers any more21:24:52
@joerg:thalheim.ioMic92
In reply to @emilazy:matrix.org
hi there, the backports for the macOS Sequoia UID installer fix PR have not been merged/released
You mean this one? https://github.com/NixOS/nix/pull/11415
21:45:09
@emilazy:matrix.orgemilyyeah21:45:55
@emilazy:matrix.orgemilya few backports have been merged now but some are still conflicted21:46:00
@emilazy:matrix.orgemilyI think because https://github.com/NixOS/nix/pull/9639 also needs backporting21:46:03
@joerg:thalheim.ioMic92looks like it created a merge conflict?21:46:08
@emilazy:matrix.orgemily(and no releases other than 2.24 yet)21:46:11
@kamillaova:matrix.orgKamilla 'ovahow to tell lazy-trees nix to generate lock file with .zip's instead of .tar.gz's?22:03:38

Show newer messages


Back to Room ListRoom Version: 6