lix on non-linux does not clear xattrs when adding outputs to the store #1008

Open
opened 2025-10-10 16:10:25 +00:00 by pennae · 1 comment
Owner
❯ nix repl -L
Lix 2.94.0-dev-pre20250913-8981fb5
Type :? for help.
nix-repl> p = import <nixpkgs> { system = "aarch64-darwin"; }                                              
Added p.

nix-repl> src = p.runCommand "xattr-source" {} "touch $out; /usr/bin/xattr -w systems.lix.test value $out"
Added src.

nix-repl> :b p.runCommand "xattr-read" {} "/usr/bin/xattr -l ${src} >&2"
xattr-read> systems.lix.test: value

this does not happen on linux. can we forbid this inside the sandbox until we support xattrs everywhere?

``` ❯ nix repl -L Lix 2.94.0-dev-pre20250913-8981fb5 Type :? for help. nix-repl> p = import <nixpkgs> { system = "aarch64-darwin"; } Added p. nix-repl> src = p.runCommand "xattr-source" {} "touch $out; /usr/bin/xattr -w systems.lix.test value $out" Added src. nix-repl> :b p.runCommand "xattr-read" {} "/usr/bin/xattr -l ${src} >&2" xattr-read> systems.lix.test: value ``` this does not happen on linux. can we forbid this inside the sandbox until we support xattrs everywhere?
pennae changed title from lix on macos does not clear xattrs when adding outputs to the store to lix on non-linux does not clear xattrs when adding outputs to the store 2025-10-10 16:16:23 +00:00
Author
Owner

this should also affect freebsd and any other non-linux system. so, uh.

this should also affect freebsd and any other non-linux system. so, uh.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#1008
No description provided.