Skip to content

libstore: fix Unix sockets in the build directory on sandboxed macOS#13468

Merged
edolstra merged 1 commit intoNixOS:masterfrom
xokdvium:darwin-sandbox-sockets
Jul 14, 2025
Merged

libstore: fix Unix sockets in the build directory on sandboxed macOS#13468
edolstra merged 1 commit intoNixOS:masterfrom
xokdvium:darwin-sandbox-sockets

Conversation

@xokdvium
Copy link
Contributor

@xokdvium xokdvium commented Jul 13, 2025

Motivation

We’re already allowing /tmp anyway, so this should be harmless, and it fixes a regression in the default configuration caused by moving the build directories out of temp-dir. (For instance, that broke the Lix guessOrInventPath.sockets test.)

Note that removing /tmp breaks quite a few builds, so although it may be a good idea in general it would require work on the Nixpkgs side.

Context

(This is a cherry-pick of commit d1db3e5)

Lix patch: https://gerrit.lix.systems/c/lix/+/3500


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

We’re already allowing `/tmp` anyway, so this should be harmless,
and it fixes a regression in the default configuration caused by
moving the build directories out of `temp-dir`. (For instance, that
broke the Lix `guessOrInventPath.sockets` test.)

Note that removing `/tmp` breaks quite a few builds, so although it may
be a good idea in general it would require work on the Nixpkgs side.

Fixes: 749afbb
Change-Id: I6a6a69645f429bc50d4cb24283feda3d3091f534

(This is a cherry-pick of commit d1db3e5)

Lix patch: https://gerrit.lix.systems/c/lix/+/3500
@xokdvium xokdvium requested a review from Ericson2314 as a code owner July 13, 2025 17:09
@xokdvium
Copy link
Contributor Author

Tested by dogfooding the nix master in our CI: https://github.com/xokdvium/nix/actions/runs/16251441092/job/45881663855

@xokdvium xokdvium mentioned this pull request Jul 13, 2025
@edolstra edolstra added the backport 2.30-maintenance Automatically creates a PR against the branch label Jul 14, 2025
@edolstra edolstra merged commit 03bf582 into NixOS:master Jul 14, 2025
13 checks passed
edolstra added a commit that referenced this pull request Jul 14, 2025
…3468

libstore: fix Unix sockets in the build directory on sandboxed macOS (backport #13468)
@xokdvium xokdvium deleted the darwin-sandbox-sockets branch October 12, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 2.30-maintenance Automatically creates a PR against the branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants