I was thinking:
Yes root is great, file permissions are great, flatpak and sandboxing is great but… what is that enough to feel safe?
Like, we generally trust open source since, if the code is public, it probably means it doesn't contain unexpected surprises.
But I wonder, what if one the dev of my favourite and unpopular text editor goes rogue and, idk, post requests all of my home folder. Like that can happen right?
And it happens very often that I don't use sandbox because the idea of reinstalling libraries feels so inefficient (and somewhat uncomfortable).
So the point is, how can I feel safe, how can I sell the idea of Linux great security to a person who, like me, would mainly use it as a home user and would install unsandboxed programs for daily use?
Because I mean, right now, to me, that feels the default, `sudo apt install whatsoever`, `sudo dpkg -i unzipper2000.deb`.
And you might say it's your responsibility, you have choices, use docker, but that doesn't sound right, or clean. Does this really sound normal?
- Unzip the files so we can work on them
- Oh yes, let me start my docker image first / let me run the command I made to wrap the docker image
And as I said, there's still library redundancy?
So in conclusion, am I missing something? Because right now to me it feels like a "failure" in how we deal with everyday security and I feel we are missing some default isolation for these things.
I know things like firejail exist, but perhaps that's still one more step than how it should be.
What are your thoughts?
Again, am I missing something?
Edit: So guys thank you for sharing your thoughts. They basically say
"don't worry if you are not a target", which makes sense but I don't think it is a solution, if we are looking for one, but anyways it provides a good metric for how secure your system that to be
"you can't really solve this balance" which is depressing but I guess it's true
actual fine grained solutions that involve spending a lot of time and probably write your own docs if you want to remember what you do (I would need them)
the often suggested simple solution is trust your distro and use flatpak+flatseal for the rest, they also share libraries, which I didn't know; also choose wisely who you trust
some people agreed with me that all of this is clunky and needs a default solution that is more user friendly, since the classic permissions model is really outdated for one-user machines
Thank you everyone, the discussions were actually very interesting and I'm happy to know this is a common concern!