-
Notifications
You must be signed in to change notification settings - Fork 569
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
add support for cargo toml/non-toml files #4286
Conversation
why are we blacklisting individual files in |
I think it has something to do with Is it worth it? |
I don't know if changing it now is worth the effort, or if having problems with |
Regarding the first part - changing things now is worth the effort - I'd say it's not a big effort at all. We just need to have some sort of consensus on the need for change IMO. And @rusty-snake's argument that sourcing $HOME/.cargo/env in ~/.bashrc will produce an error makes me feel happy having avoided that from happening. The second part - if having problems with cargo install is acceptable - seems more straightforward IMO. It makes sense to me to regard the install subcommand basic functionality that one would expect to be supported in a firejailed cargo setup. I understand the remark, but taking in the above I honestly feel blacklisting individual files instead of the whole directory is the saner, more user-friendly thing to do in this case. Just voicing an opinion here. In that regard I won't 'force' this discussion in one way or another by committing this PR myself. We can wait and see if other people chime in after having had the time to play/test this cargo profile more thoroughly. I must admit I only use |
To be clear about
¹ if you run cargo in firejail and don't have a |
Globbing could be used as compromise.
|
That's actually quite elegant! I like it. Which brings me to posing the following question to @rusty-snake. If I understand all this, we can drop this PR if you're willing to bring in these globbing changes for #4284. Not trying to ditch the work, just trying to not disrupt the chain of PR's (is there such a thing lol) etcetera. What do you think? @reinerh Would you be OK with the globbing solution? |
#4284 is merged. Doing it in this PR would be best (IMHO). disable-common.inc (what do we have in disable-programs.inc?):
allow-common-devel.inc:
|
@rusty-snake Fair enough, I'll make the needed changes. disable-programs.inc and allow-common-devel.inc are done. I need some more time for disable-common.inc after a food-break, pizza delivery just rang my bell heh! |
IMHO we can leave disable-common as is. |
@rusty-snake Great, in that case the work is done. Let's wait for @reinerh view on these latest changes before merging. Thanks for your input, always a pleasure working together. |
Looks good to me! :-) |
This is a follow-up for #4284. See cargo book and discussion for details.