this post was submitted on 04 Jan 2024
-75 points (20.9% liked)

Linux

47342 readers
1617 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
 
  • Systemd-init has a larger attack surface compared to runit, openrc, or sysVinit.

  • Systemd-logind relies on systemd, so we need to adapt it for non-systemD distributions to ensure compatibility with certain applications like GNOME.

  • Udev also depends on systemd.

  • SystemD is specific to Linux, which makes porting software to *BSD even more challenging. It's uncertain what the future holds, and there may be circumstances where Linux becomes unusable for you (e.g., compatibility issues with your laptop). Having a good alternative that doesn't require relearning everything is generally beneficial.

  • SystemD-based distributions often come with more than just "systemd-init." They include additional components like logind, resolved, networkd, systemd-timers, etc. However, many people still prefer using the alternatives they were accustomed to before systemd became popular, such as dhcpcd and cron. Consequently, having both sets of tools installed can increase the attack surface.

all 26 comments
sorted by: hot top controversial new old
[–] mogoh@lemmy.ml 42 points 8 months ago (2 children)

You have posted basically the same post one day ago. https://lemmy.ml/post/9994522 This might be classified as spam by now ....

[–] vikingtons@lemmy.world 1 points 8 months ago (1 children)

I could have sworn they wrote a similar post about Wayland,

[–] Unsafe@discuss.online 1 points 8 months ago

Wayland is like Busybox runit. Xorg is like SystemD.

[–] Unsafe@discuss.online -5 points 8 months ago (1 children)

Really? Didn't known. Lemmy.today seems to not work properly on mobile apps.

[–] mogoh@lemmy.ml 5 points 8 months ago (1 children)

It magically disappeared ...

[–] Unsafe@discuss.online -3 points 8 months ago (1 children)

I deleted it. No need for two almost identical posts to exist.

[–] Railcar8095@lemm.ee 6 points 8 months ago (1 children)

Some seem to argue not even one of them is needed...

[–] Unsafe@discuss.online 0 points 8 months ago

Some seem to use Debian.

[–] bionade24@kbin.social 19 points 8 months ago (2 children)

I absolutely dislike the hate for systemd. Especially if there's bullshit claims like

having both sets of tools installed can increase the attack surface.

in there.

larger attack surface compared to runit, openrc, or sysVinit.

Because they don't execute million lines super thoroughly checked shell code or why exactly? Without any explanation total FUD.

Some independent binaries from the systemd project, e.g. systemd nspawn, can even used on OpenRC and the systemd project explicitly didn't change the way to launch udev in debug mode because the Gentoo non-systemd udev pkg maintainer asked to not do so (nicely).

You should instead tell people why OpenRC/runit is (more) awesome in your opinion and maintain initscripts for them. Maybe you can volunteer at the Debian project and get them to adopt OpenRC aside systemd instead of only removing the remnants of sysVinit support. This would also be beneficial for pragmatic pro-systemd users that have to deal with docker or chroot environments.

[–] Unsafe@discuss.online -3 points 8 months ago

Because they don't execute million lines super thoroughly checked shell code or why exactly? Without any explanation total FUD.

Because they are not merged with journaling system, job scheduler and watchdog. More features→more attack surface.

[–] Unsafe@discuss.online -5 points 8 months ago (1 children)

in there.

Whonix Dev quote:

Use a distribution with an init system other than systemd. systemd contains a lot of unnecessary attack surface... ©Linux Hardening Guide

[–] Unsafe@discuss.online -5 points 8 months ago

It's a matter of probability. Probability of discovering vulnerabilities in multiple tools doing same thing is higher than in just one.

[–] oranki@sopuli.xyz 11 points 8 months ago (1 children)

Imagine if all the people who prefer systemd would write posts like this as often as the opposition. Just use what you like, there are plenty of distros to choose from.

[–] Unsafe@discuss.online -2 points 8 months ago (2 children)

Not really. Void, alpine, gentoo are the only usable ones(besides non-systemd forks of arch and Debian). These are the only ones maintaining enough packages, providing enough documentation, not being just poorly maintained forks of X distro.

[–] GentooIsBased@lemmy.ml 2 points 8 months ago (1 children)

Void, Alpine, Gentoo, (and Guix) are enough for me

[–] Unsafe@discuss.online 0 points 8 months ago

Linux Libre makes Guix unusable on most hardware. It also requires much effort to configure. Learn scheme, how to use shepherD, etc.

[–] s38b35M5@lemmy.world 1 points 8 months ago

https://mxlinux.org/wiki/system/systemd/

MX Linux ships with systemd present but sysVinit is still the default init system by default. Thanks to the systemd-shim system, users can choose to boot installed systems whichever way they choose.

[–] SnotFlickerman@lemmy.blahaj.zone 10 points 8 months ago* (last edited 8 months ago) (1 children)

There is no such thing as a perfect OS where there is no attack surface or dependencies.

OP, you're absolutely right about systemd, but similar critiques can be given to nearly any underlying OS service. (Also, I'm sure this is in response to other posts praising systemd)

I'm just starting to feel like it's a little silly to even have a conversation one way or another about these things instead of just accepting that people could and should use the tools that fit their use case scenario the best.

For most people, the stuff they gain from things (for example, systemd) outweighs the downsides.

We don't make such choices in a vacuum. It's important to know limitations, attack surfaces, and dependencies, but it's important mostly for being able to choose the right GNU tools for yourself.

Nobody can tell you what the best OS/Kernel/GNU tool is to use, because that's always deeply dependent on your specific needs for the task at hand. While PCs are "general purpose computing," they all can have wildly different hardware and software hiccups, and only you can use your own knowledge to choose the best tools for your use-case.

[–] Unsafe@discuss.online -4 points 8 months ago

What an average Mint user gains from systemd? A bit slower boot time? A bit more ram used? 50mb heavier system updates? What problems systemd solves? I use systemd, runit and openrc on different machines and I don't face any significant problems.

[–] Presi300@lemmy.world 8 points 8 months ago (1 children)

You can replace Systemd with any piece of software in the title and it'd still be correct...

[–] Unsafe@discuss.online -1 points 8 months ago (1 children)
[–] Presi300@lemmy.world 4 points 8 months ago (2 children)

I personally use openrc, and I can tell you it's not perfect

[–] Unsafe@discuss.online 0 points 8 months ago

IMO the closest one.

[–] Unyieldingly@lemmy.world 6 points 8 months ago (1 children)
[–] Unsafe@discuss.online -5 points 8 months ago