3 ms·
This is probably the single coolest feature of OpenBSD: “Also, Chromium on OpenBSD recently got unveil support. If you run it with --enable-unveil, Chromium wil
by gigatexal 8y ago
This is probably the single coolest feature of OpenBSD: “Also, Chromium on OpenBSD recently got unveil support. If you run it with --enable-unveil, Chromium will be prevented (at the OS level) from accessing anything other than your ~/Downloads folder.”
- yjftsjthsd-h 8y agoFWIW: On Linux, I use firejail to do this. But it's sweet to have natively:)
- ATsch 8y agoThat's pretty cool. I wish Chromium supported this on Linux too. It seems more like a Chromium feature than an openbsd feature to me though? Linux programs installed via say flatpak have this on by default.
- snazz 8y agounveil(2) is an OpenBSD-specific feature, although you could accomplish something very similar with Linux and another sandboxing tool (or SELinux, but that might be overkill). I highly recommend you read the man page for unveil(2), it's very cool: https://man.openbsd.org/unveil https://man.openbsd.org/unveil
- ATsch 8y ago> unveil(2) is an OpenBSD-specific feature Yes, I am aware. I thought it was pretty obvious that when I said "it's a chrome feature" I didn't mean "unveil(2)" but being able to restrict access to the filesystem. Which is possible with both linux and openbsd, of course. Alas, the downvoters seem to disagree.
- gigatexal 8y agoI think if you run a snap package without privileges it is pretty sandboxed too.
- _emacsomancer_ 8y agoPresumably only if AppArmor is available.
- gigatexal 8y agoahh i didn't know that -- thanks. I think it's enabled by default on ubuntu? or was it Fedora to run SELINUX by default?
- _emacsomancer_ 8y agoYes, Ubuntu has it enabled by default - so Snaps are first class citizens on Ubuntu. I think the upcoming release of Debian may also have AppArmor by default.
- sydney6 8y agoDoes anybody know if FreeBSD has any form of sandboxing (e.g. seccomp) available for any of the available browsers?
- trasz 8y agoFreeBSD has Capsicum, but from what I’ve heard the Chromium upstream has been reluctant to integrate the patches, so they rotted. Which is kind of weird, given they (Google) have their own port of Capsicum to Linux. Oh well.
- gigatexal 8y agoThat's really too bad -- are there no other FBSD alternatives that are maintained? Also -- I am going to get flamed for this -- but a GPL license would have forced Google to upstream their Capsicum changes wouldn't it -- whereas the BSD license doesn't have such a mandate.
- mikekchar 8y agoThe GPL doesn't force people to upstream their changes, although it often has that affect. The GPL only forces you to give source downstream. If your customers never share the source with anyone else (and your upstream is not one of your customers) then your upstream will never get the changes. A good example of this is the game TOME. It has downloadable content that is licensed under the GPL. You get the source code when you buy the DLC. I've never seen anyone distribute it, though (and it's highly frowned upon in the community). The author has a weird idea of the GPL, though, so I don't think he really understands that anyone is allowed to distribute that code. But in practice people usually freely distribute GPL code, so it's impossible to stop your upstream from eventually getting it.
- trasz 8y agoit would be somewhat counterproductive to introduce yet another sandboxing mechanism, just to work around a problem created by upstream - especially in case of mechanism as awesome as Capsicum :-) Yes, the GPL license would force them to share their changes. Thing is, they wanted to upstream them anyway - AFAIK the problem is on the other (accepting) side.
- humblebee 8y agoDoes anyone know how this works with profiles / cache? Does this force something like incognito mode? Also does this mean you can't upload / select files outside of the Downloads folder?
- saagarjha 8y agoHow does this compare to the sandboxing on macOS? Is this just at the file level, currently?