this post was submitted on 04 Sep 2024
2 points (100.0% liked)

Linux

47237 readers
3343 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
 

There has been a steady uptick of people stating that they will migrate (or already have) to Debian – seeking refuge from what they see as greedy corporate influence. I understand the sentiment fully. However, there’s a problem here that I want to talk about: security.

The ugly truth is that security is hard. It’s tedious. Unpleasant. And requires a lot of work to get right.

Debian does not do enough here to protect users.

Long ago, Red Hat embraced the usage of SELinux. And they took it beyond just enabling the feature in their kernel. They put in the arduous work of crafting default SELinux policies for their distribution.

...

However, its default security framework leaves much to be desired. Debian’s decision to enable AppArmor by default starting with version 10 signifies a positive step towards improved security, yet it falls short due to the half-baked implementation across the system.

...

The fundamental difference between AppArmor and SELinux lies in their approach to Mandatory Access Control (MAC). AppArmor operates on a path-based model, while SELinux employs a significantly more complex type enforcement system. This distinction becomes particularly evident in container environments.

...

The practical implications of these differences are significant. In a SELinux environment, a compromised container faces substantial hurdles in accessing or affecting the host system or other containers, thanks to the dual barriers of type enforcement and MCS labels.

TLDR: According to the author, Debian's use of AppArmour is not as effective as RedHat's use of SELinux when it comes to security.

top 8 comments
sorted by: hot top controversial new old
[–] [email protected] 5 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

What does an ordinary RHEL admin do when something does not work?

answersetenforce 0

[–] [email protected] 1 points 1 week ago
sudo systemctl disable firewalld
[–] [email protected] 2 points 2 weeks ago (1 children)

Ok, aside from Android, I've yet to see any serious usage of SELinux in the real world and I've been working on cloud tech for years. Acknowledged issues such as complexity aside, it's really just that much less relevant in a modern, single purpose environment such as Docker/kubernetes/cloud functions/etc

[–] [email protected] 2 points 2 weeks ago

I've yet to see any serious usage of SELinux in the real world

I too have successfully avoided it, but we must acknowledge that not everyone has been so fortunate.

[–] [email protected] 1 points 2 weeks ago

The threat model seems a bit like fearmongering. Sure, if your container gets breached and attacker can (on some occasions) break out of it, it's a big deal. But how likely that really is? And even if that would happen isn't the data in the containers far more valuable than the base infrastructure under it on almost all cases?

I'm not arguing against SELinux/AppArmor comparison, SElinux can be more secure, assuming it's configured properly, but there's quite a few steps on hardening the system before that. And as others have mentioned, neither of those are really widely adopted and I'd argue that when you design your setup properly from the ground up you really don't need neither, at least unless the breach happens from some obscure 0-day or other bug.

For the majority of data leaks and other breaches that's almost never the reason. If your CRM or ecommerce software has a bug (or misconfiguration or a ton of other options) which allows dumping everyones data out of the database, SElinux wouldn't save you.

Security is hard indeed, but that's a bit odd corner to look at it from, and it doesn't have anything to do with Debian or RHEL.

[–] [email protected] 0 points 2 weeks ago (2 children)

And it's not. SELinux is much more secure, however much more complex. Although AppArmor also do the job, despite being easier to workaround it. But I don't think this is a good argument against Debian.

[–] [email protected] 1 points 1 week ago

The main argument is, the number of Debian's Apparmor policies is not comparable to RHEL's SELinux policies.

[–] [email protected] -1 points 1 week ago

This sounds more like it comes from this persons beliefs and bias than hard evidence. Debian can be slow to patch vulnerabilities but they aren't oblivious to security.