-
Notifications
You must be signed in to change notification settings - Fork 242
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
Can ease of use be closer to that of firejail? #266
Comments
bubblewrap isn't really designed to be a user-facing tool. It is setuid root (on some systems) and needs to remain minimal in order to be secure: each new feature is a potential privilege escalation opportunity. Instead, bubblewrap designed to be used indirectly by user-facing tools like Flatpak. A Firejail-style application could be built around bubblewrap, but all the complexity that adds convenience should be outside the privileged part. (And, yes, I'm aware that Firejail is both complex and setuid root. I think that's an inadvisable design, and a significant security risk: compare https://www.cvedetails.com/vulnerability-list/vendor_id-16191/product_id-36171/Firejail-Project-Firejail.html with https://www.cvedetails.com/vulnerability-list/vendor_id-16284/product_id-36870/Projectatomic-Bubblewrap.html.) |
Thanks! Those concerns are basically why i am looking for an alternative. In some cases having firejail installed you might even be worse off.. So i suppose no-one has made firejail-like wrapper yet? Afaics, you wouldnt need suid for that. Messing around with it, i was overthinking things.. It is pretty usable. Basically all i want is the default profiles and the |
Maybe you are the "someone" here? :-) |
What you need is not a "wrapper" (bubblewrap is a wrapper for namespaces already) but simply a script that creates your sandboxed environment using bubblewrap features. Here are some example scripts that show how use bubblewrap to create pretty much the same profiles as firejail does, except with some manual adjustments needed. |
@valoq with those scripts, can you still use it with commandline arguments? Seems to me, not. Annoyingly, One (possibly minor)advantage of the It searches for the corresponding configuration files -here just commandline arguments- in a list of paths, and configuration files can refer to other ones, where again it will look the same way. Edit: .. it adds arguments to the original program.. Need to instead add them to I'd be fine to use Python for this if it had a footprint of ~megabytes like lua or luajit, but its 130MB. (looking for lighter weight, micropython does 300K on one of the firmwares.. |
This code i am actually using. Maybe i'll add an option to exclude all the suid files, try to convert aspects of |
@madaidan said back in 2019 they were planning to write profiles for bubblewrap. I don't see a follow up on that at netblue30/firejail#3046 (comment). |
Firejail has profiles and provides lots of default ones. Analogous to the commandline arguments, as far as i can see.
To make things defaultly run with
firejail
, you symlink from a directory with priority in$PATH
to/usr/bin/firejail
and it usesargv[0]
to select the relevant profile.I am sure i am carrying water to the sea, i checked the (open/closed)issues, just a few mentioning firejail, so afaik no-one has asked in the issues at least.
The text was updated successfully, but these errors were encountered: