this post was submitted on 05 Oct 2023
90 points (96.9% liked)

Linux

47361 readers
1741 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
all 27 comments
sorted by: hot top controversial new old
[–] MNByChoice@midwest.social 27 points 11 months ago (2 children)

SELinux has long suffered from usability issues. Many commercial software packages require SELinux be disabled.

Fix the docs, improve error messages, and create a GUI to improve usage.

[–] joojmachine@lemmy.ml 10 points 11 months ago

Hate to be the type of person to comment this, but patches more than welcome

for real though, even a small contribution to the docs helps a ton

[–] NanoooK@sh.itjust.works 20 points 11 months ago (3 children)

Is Fedora the only mainstream desktop distribution to ship with SELinux?

[–] eeleech@lemm.ee 13 points 11 months ago (1 children)

afaik yes, at least the arch kernel has selinux enabled, but you need to install the user space tools from the AUR.

[–] ladyanita22@lemmy.world 5 points 11 months ago

But the profiles are pretty poor and basic AFAIK.

[–] Sh1nyM3t4l4ss@lemmy.world 5 points 11 months ago (1 children)

I'm not aware of another one. Some other distros like Ubuntu and OpenSUSE ship AppArmor instead, which does similar things but isn't considered quite as secure.

I know plenty of other popular distros don't ship any Mandatory Access Control system at all which seems like a very bad security practice to me. Same thing with Firewalls.

[–] BautAufWasEuchAufbaut@lemmy.blahaj.zone 7 points 11 months ago (1 children)

Nitpick: it's not that AppArmor isn't as secure, it's just that SELinux is more powerful. The security always is up to the profiles.
If you were to compare the policies for Fedora and e.g. Debian, I would assume Fedora has better ones though lol

[–] ladyanita22@lemmy.world 3 points 11 months ago

For sure. I believe Debian's AppArmor integration is a little bit of an afterthought and there's lots of patches missing as Canonical likes to keep many improvements downstream.

[–] Pantherina@feddit.de 1 points 11 months ago (1 children)
[–] NanoooK@sh.itjust.works 3 points 11 months ago

From what I've found it's not implemented by default.

[–] joojmachine@lemmy.ml 11 points 11 months ago (1 children)

Anyone even slightly interested in this, join!

Seriously, I didn't know jack about SELinux before joining the SIG and now I know a little less than jack about it (I tried confining my user and managed to be unable to login to my system)

[–] iamak@infosec.pub 2 points 11 months ago (1 children)

I'm interested. Can you tell me more about it?

[–] joojmachine@lemmy.ml 2 points 11 months ago (1 children)

You can just take a look at the links in the thread if you want to start testing, and can help report issues with your experiences in our Pagure repo, I still need to report mine to mnow if it's a thing with GDM or if I just did something wrong

[–] iamak@infosec.pub 1 points 11 months ago

Okay. Also how beneficial would this be for my résumé if I'm trying to get into cyber security field?

[–] msage@programming.dev 9 points 11 months ago

A bit dated experience, but I wanted to make a 'simple' web app (nginx/fpm/psql) SELinux compatible in 2014.

After reading the docs, it seemed I needed three layers of configuration just to make a policy. For two ports and two folders, that seemed way too complicated and absolutely not worth it.

[–] rawfox@lemmy.ml 7 points 11 months ago (1 children)

I love it and it really makes my Desktop more secure. Switching it off, has lead to installing hostile or insecure software within months. When it was introduced, i felt controlled by it, but actually i saw, what a mess came out of it when i disabled that. Today i feel protected, out of eperience, even if i know shirt about how it exacly works, but i saw stupid software harming my system when it was disabled.

[–] Pantherina@feddit.de 5 points 11 months ago

I am curious, do you have an example?

[–] danielfgom@lemmy.world -3 points 11 months ago (1 children)

It was written by the NSA, that's enough for me not to trust SELinux.

[–] sugartits@lemmy.world 4 points 11 months ago (3 children)

It's open source and lots of eyeballs have looked at it.

It's fine.

[–] 01189998819991197253@infosec.pub 4 points 11 months ago

Really good points from here:

The "many eyes" theory is dead since the NSA backdoor in OpenSSL clearly showed how delusional that belief is. SELinux has never been audited by any trustworthy truly US-independent entity, making it nearly as untrustworthy as closed source. On top of that, there is always The Underhanded C Contest, proving that looking at the source is not enough. You need to be an expert who can detect underhanded backdoors too. – Evi1M4chine Feb 3, 2018 at 13:05

I don't think the NSA's official mission is a good reason to believe it wouldn't add backdoors. The agency considers American citizens to be adversaries, not beneficiaries of its operations. – augurar Oct 21, 2014 at 4:23

[–] danielfgom@lemmy.world 3 points 11 months ago (1 children)

Maybe but there must be a reason 99% of distributions use AppArmor instead

[–] andruid@lemmy.ml 5 points 11 months ago

AppArmor is less complicated. That's the main reason

[–] ryannathans@aussie.zone 2 points 11 months ago* (last edited 11 months ago) (1 children)

A backdoor written by NSA was literally found last month

[–] milicent_bystandr@lemm.ee 5 points 11 months ago