-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
firejail: local profile handling fixed #77524
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
firejail: local profile handling fixed #77524
Conversation
The sed expression wasn't really catching anything (as local profiles are included in the provided set of profiles by `include aaa.local` and not by `include xx/firejail/aaa.local` as the sed expression used to expect). As a result, it was not possible to create local profiles in any accessible location. This fix makes it possible to create them in `/etc/firejail/` which seems pretty standard.
Prior to this fix, was configuration in |
Looking at the firejail code, https://github.com/netblue30/firejail/blob/e4cb6b42743ad18bd11d07fd32b51e8576239318/src/firejail/profile.c#L68-L83 It only looks in either |
Aaah, damn, I didn't even realize that this piece of code handling What do you think? We can also try duplicating each |
Oh, if it looks in the nix store by default instead of |
Yeah, that could work! So you are suggesting automatically generating a set of |
Yes, if we can support both locations, that would be ideal. |
@thatsmydoing I think this should fix your problem #83515, I have checked that it still uses local profiles from |
The sed expression wasn't really catching anything (as local profiles are included in the provided set of profiles by
include aaa.local
and not byinclude xx/firejail/aaa.local
as the sed expression used to expect). As a result, it was not possible to create local profiles in any accessible location. This fix makes it possible to create them in/etc/firejail/
which seems pretty standard.Motivation for this change
as above
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)