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

Solve layers of indirection problem with /run/current-system/sw/bin #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

quag
Copy link

@quag quag commented Oct 2, 2023

Bubblewrap is adding a new --argv0 option. This means that the command name can remain unchanged, while the exe to execute can have realpath applied to it.

Test-1: coreutils provided command on NixOS

nix-bwrap date

Test-2: /run/current-system/sw/bin/ located binary on NixOS

nix-bwrap find / 

Note that --argv0 was only merged into bubblewrap today and there has not been an offical release. See: containers/bubblewrap#91

Bubblewrap is adding a new --argv0 option. This means that the command
name can remain unchanged, while the exe to execute can have realpath
applied to it.

Test-1: nix-bwrap date    # coreutils provided on NixOS
Test-2: nix-bwrap find /  # /run/current-system/sw/bin/find on NixOS

Note that --argv0 was only merged into bubblewrap today and there has not
been an offical release. See:
containers/bubblewrap#91
@Parrot7483
Copy link

Bubblewrap version 9.0 has been released two days ago. This release contains the --argv0 option. Not yet merged into nixpkgs.

@fgaz
Copy link
Owner

fgaz commented Mar 28, 2024

I subscribed to the nixpkgs pr and will have a look once it's merged it reaches the channels

@xTrayambak
Copy link

image
Bubblewrap has hit unstable for a while now. This can probably be merged.

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.

4 participants