Post
Remote status
Context
5@kirby @rl_dane Anyone that used SELinux on a distro properly supporting it for more than an hour knows that it is unusable for non-server use because everything outside the system package manager gets blocked in multiple ways. No single user will be writing SELinux policies to get stuff they compiled from source working correctly.
And AppArmor is utterly useless as without a policy it does exactly nothing.
Not to mention that they both are optional security features and optional security can be turned off.
@phnt I think Android is a valid counterpoint.
The problem is though that everybody is preconditioned to turn SElinux off the moment they run into an issue (usually about 3 minutes after installing a distro) and then leave it at that.
Security comes through a multi-layer approach. If you turn off all but one layer (in these recent cases sudo.conf) things go pear-shaped if this single layer breaks. That's just bad.
It works on Android because the runtime enforces its own permissions in an app sandbox with the Android permission system and SELinux sandboxes the rest. And I don't want my computer to turn into a sandboxed-by-default environment either.
The users are right in disabling SELinux or turning it into a permissive state, because very few actually know how to write the policies properly. There is no usable documentation on how to do so besides Red Hat's own paid courses and the already existing policies. If you put a binary into /opt/bin, start it with a systemd service and run the audit2allow commands SETroubleshoot recommends, you are giving those permissions to systemd (init_t), not the actual service.
Before turning to these rather drastic solutions like app sandboxing (snap, flatpak, etc.), it's much better to give the developers of those apps the abilities to declare what their own app is supposed to do and what it isn't supposed to do. OpenBSD realized this a decade ago with pledge. Throw away seccomp, implement pledge in the kernel and you have a much friendlier solution that doesn't annoy 99% of people using it. Landlock can stay.
@phnt I'd argue the *average* non-techie user would be better off using the computer like a phone. They don't know how to protect themselves, so somebody else needs to do it - like application devs, as you say.
But of course these people don't need access to suid binaries in the first place. It is just a convenience feature to be able to do potentially dangerous admin tasks from a regular account. Convenience and security don't mix.
@kirby @rl_dane
Replies
0Fetching repliesβ¦