Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix making the build directory kept by keep-failed readable #11473

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

Artturin
Copy link
Member

@Artturin Artturin commented Sep 10, 2024

Caused by 1d3696f

Without this fix the kept build directory is readable only by root

$ sudo ls -ld /comp-temp/nix-build-openssh-static-x86_64-unknown-linux-musl-9.8p1.drv-5
drwx------ root root 60 B Wed Sep 11 00:09:48 2024  /comp-temp/nix-build-openssh-static-x86_64-unknown-linux-musl-9.8p1.drv-5/

$ sudo ls -ld /comp-temp/nix-build-openssh-static-x86_64-unknown-linux-musl-9.8p1.drv-5/build
drwxr-xr-x nixbld1 nixbld 80 B Wed Sep 11 00:09:58 2024  /comp-temp/nix-build-openssh-static-x86_64-unknown-linux-musl-9.8p1.drv-5/build/

Motivation

Context

Priorities and Process

Add 👍 to pull requests you find important.

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

Caused by 1d3696f

Without this fix the kept build directory is readable only by root

```
$ sudo ls -ld /comp-temp/nix-build-openssh-static-x86_64-unknown-linux-musl-9.8p1.drv-5
drwx------ root root 60 B Wed Sep 11 00:09:48 2024  /comp-temp/nix-build-openssh-static-x86_64-unknown-linux-musl-9.8p1.drv-5/

$ sudo ls -ld /comp-temp/nix-build-openssh-static-x86_64-unknown-linux-musl-9.8p1.drv-5/build
drwxr-xr-x nixbld1 nixbld 80 B Wed Sep 11 00:09:58 2024  /comp-temp/nix-build-openssh-static-x86_64-unknown-linux-musl-9.8p1.drv-5/build/
```
@emilazy
Copy link
Member

emilazy commented Sep 10, 2024

This should probably be backported down to 2.18, as the sandbox changes that caused this regression were backported too.

@Artturin Artturin added backport 2.18-maintenance Automatically creates a PR against the branch backport 2.19-maintenance Automatically creates a PR against the branch backport 2.20-maintenance Automatically creates a PR against the branch backport 2.21-maintenance Automatically creates a PR against the branch backport 2.22-maintenance Automatically creates a PR against the branch backport 2.23-maintenance Automatically creates a PR against the branch backport 2.24-maintenance Automatically creates a PR against the branch labels Sep 11, 2024
@edolstra edolstra merged commit 9a7c0d8 into NixOS:master Sep 11, 2024
12 checks passed
roberth added a commit that referenced this pull request Sep 16, 2024
…1473

Fix making the build directory kept by `keep-failed` readable (backport #11473)
roberth added a commit that referenced this pull request Sep 16, 2024
…1473

Fix making the build directory kept by `keep-failed` readable (backport #11473)
roberth added a commit that referenced this pull request Sep 16, 2024
…1473

Fix making the build directory kept by `keep-failed` readable (backport #11473)
roberth added a commit that referenced this pull request Sep 16, 2024
…1473

Fix making the build directory kept by `keep-failed` readable (backport #11473)
roberth added a commit that referenced this pull request Sep 16, 2024
…1473

Fix making the build directory kept by `keep-failed` readable (backport #11473)
roberth added a commit that referenced this pull request Sep 16, 2024
…1473

Fix making the build directory kept by `keep-failed` readable (backport #11473)
roberth added a commit that referenced this pull request Sep 16, 2024
…1473

Fix making the build directory kept by `keep-failed` readable (backport #11473)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.18-maintenance Automatically creates a PR against the branch backport 2.19-maintenance Automatically creates a PR against the branch backport 2.20-maintenance Automatically creates a PR against the branch backport 2.21-maintenance Automatically creates a PR against the branch backport 2.22-maintenance Automatically creates a PR against the branch backport 2.23-maintenance Automatically creates a PR against the branch backport 2.24-maintenance Automatically creates a PR against the branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants