Re:Why Is This Website Port Scanning Me?
by segfaultbuserr on Thursday May 21, 2020 @03:00AM
(#23255594)
> these tools often use a setuid binary, which actually has more permissions than most users.
These tools often drop privileges as soon as the program is executed, in firejail, there's also an option to disalble root entirely within a namespace.
Re:Why Is This Website Port Scanning Me?
by cameronperot on Wednesday May 20, 2020 @06:28PM
(#23252726)
Interesting point, I hadn't made it that far down the rabbit hole. I agree that it's not a complete solution, and possible risks of exploiting the sandbox itself should be taken into account on a case-by-case basis.
It's also possible to run a web browser in a docker container which can be interacted with on the host OS. This avoids the permissions issues with solutions like firejail:
https://blog.jessfraz.com/post/docker-containers-on-the-desk...
Re:Why Is This Website Port Scanning Me?
by willglynn on Wednesday May 20, 2020 @05:42PM
(#23252185)
`docker` implies access to the Docker daemon, which is not an improvement over the setuid binaries anderspitman found distasteful.
https://docs.docker.com/engine/security/security/#docker-dae...
Re:Why Is This Website Port Scanning Me?
by lxdquestion on Wednesday May 20, 2020 @06:08PM
(#23252540)
Genuine question, would LXD be any better? I'm not an expert in containerization but I find it really interesting.
There are some blogs that talk about how to do this: https://blog.simos.info/how-to-easily-run-graphics-accelerat...
Re:Why Is This Website Port Scanning Me?
by sadfklsjlkjwt on Wednesday May 20, 2020 @11:46PM
(#23254608)
If it runs in the same Xwindows session no.
If your docker is in fact podman your rootless might be attainable.
Re:Why Is This Website Port Scanning Me?
by sadfklsjlkjwt on Wednesday May 20, 2020 @11:46PM
(#23254606)
Please don't suggest using Docker to sandbox a GUI app.
I think in this case though where you're more concerned about the very real problem of websites accessing localhost, it probably outweighs the maybe of a firejail exploit.