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

When moving paths out of sandbox, ensure we have write permission #4312

Merged
merged 1 commit into from Dec 4, 2020

Conversation

lukegb
Copy link
Contributor

@lukegb lukegb commented Dec 4, 2020

If we're a single-user installation of Nix, then we won't have root superpowers to just ignore the permission bits. This means that we'll need permission on the directory (if it's a directory) that we're moving in order to move it with rename, because it must update the ".." directory entry.

Fixes #4295.

This is already working in master, thanks to e913a29 (and followup cleanups).

I didn't change the other instances of rename here to make this diff as minimal as possible.

If we're a single-user installation of Nix, then we won't have root
superpowers to just ignore the permission bits. This means that we'll
need permission on the directory (if it's a directory) that we're moving
in order to move it with rename, because it must update the ".."
directory entry.

Fixes NixOS#4295.

This is already working in master, thanks to
e913a29 (and followup cleanups).
@edolstra edolstra merged commit 8d65ec5 into NixOS:2.3-maintenance Dec 4, 2020
@yorickvP
Copy link
Contributor

yorickvP commented Dec 4, 2020

Lookg related to #3321 / #2984. Is it the same bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants