News for hackers. Stuff that matters.
Re:Dear Linux, Privileged Ports Must Die by foldr on Thursday September 01, 2022 @09:44AM (#32676130)
>The webserver is managed by init and the permissions granted to services are explicit and granular -- and typically all this is configured by the distro by default.

Only if you're using a web server that's prepackaged by the distro.

Re:Dear Linux, Privileged Ports Must Die by ehutch79 on Thursday September 01, 2022 @11:18AM (#32677620)
If you're installing third party services, and exposing them to the internet, or even local networks, it's not out of line to expect you to know what you're doing. At least enough to turn off the 'dont shoot yourself in the foot' protections
Re:Dear Linux, Privileged Ports Must Die by foldr on Thursday September 01, 2022 @11:29AM (#32677802)
People who "don't know what they're doing" will just disable SELinux if it's too difficult to configure the policy that they want. It's better to make security policies easy to configure correctly so that more people do it correctly.

Also, what does "third party" really mean in this context? I am neither the author of the Linux distro that I'm using nor the web server that I want to use. It's all third party software from my point of view.

Re:Dear Linux, Privileged Ports Must Die by ehutch79 on Wednesday September 07, 2022 @10:44AM (#32751313)
You need some level of expertise to turn off selinux, or even know what it is. They know what they're doing enough to know the consequences if they can turn it off.

By third party, i mean stuff not in the distro. It's extra effort to install something else. You're likely to have at least a link to docs in your face when you went and got the binaries.

Re:Dear Linux, Privileged Ports Must Die by throwaway09223 on Thursday September 01, 2022 @03:53PM (#32682149)
Every casual user is using a distro packaged version. That's why distros exist.

If you're doing your own packaging then presumably you know how to invoke the server by creating a service file for systemd.

Re:Dear Linux, Privileged Ports Must Die by foldr on Friday September 02, 2022 @03:03AM (#32687531)
I don't think this is true in general. For example, in one instance I wanted to use caddy, which wasn't packaged for CentOS at the time. I don't think I had trouble getting it to run as a non-root user, but getting it to work with SELinux was a big PITA.

The Linux community seems to have a pervasive "if you're doing X then you should be able to Y" kind of attitude. But sometimes you just need to do X, and you know what you know.

Re:Dear Linux, Privileged Ports Must Die by throwaway09223 on Friday September 02, 2022 @09:12AM (#32690314)
That's totally unrelated to the topic of how services are invoked.

SELinux is indeed a PITA. I usually just turn it off.

Your complaint about the community says more about you than about the community. It's certainly not true as a rule.