-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
nixos/firejail: allow to pass options to firejail #103813
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
Conversation
profile = mkOption { | ||
type = types.nullOr types.path; | ||
default = null; | ||
description = "Profile to use"; | ||
example = literalExample "''${pkgs.firejail}/etc/firejail/firefox.profile"; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to have profile
as a string instead so it's possible to do profile="firefox"
for instance?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this would prevent profile = pkgs.writeText "name" "content"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this answer satisfy you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry forgot this PR, yes that was a use-case I didn't consider. :)
@GrahamcOfBorg build firejail.tests |
Looks good to me, @7c6f434c can you have a look as well? |
@GrahamcOfBorg test firejail |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Motivation for this change
Allow to select a profile for binaries wrapped with firejail
This is backward compatible, as shown by the nixos test
cc @stigtsp
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)