News for hackers. Stuff that matters.
Re:Systemd as tragedy by inferiorhuman on Tuesday January 29, 2019 @05:36AM (#19025298)
> Now I am used to taking blame for apparently everything that every went wrong on Linux, but you might as well blame your downstream distros for this as much you want to blame us upstream about this, as it's up to them to pick the right compile-time options matching their userbase and requirements in compatibility, and if they didn't do that to your liking, then maybe you should complain to them first.

It's up to you as a systemd developer to pick sane defaults. Claiming that it's okay to introduce opt-out breaking changes upstream and then abdicate responsibility is a quite bit like walking around while waving your hands and arms around and then blaming whoever you hit for walking into you.

Re:Systemd as tragedy by poettering on Tuesday January 29, 2019 @07:20AM (#19025717)
Well. What is a distro for then if not for picking the most highlevel of defaults suitable for them?
Re:Systemd as tragedy by inferiorhuman on Tuesday January 29, 2019 @05:18PM (#19030389)
> Well. What is a distro for then if not for picking the most highlevel of defaults suitable for them?

IOW the distros maintainers made a mistake by picking systemd? Agreed.

Re:Systemd as tragedy by sfilargi on Tuesday January 29, 2019 @04:16PM (#19029840)
You are right. Distros failed us completely by choosing systemd.
Re:Systemd as tragedy by izacus on Tuesday January 29, 2019 @05:43AM (#19025327)
Killing software that might be running after a valid login session is a sane default.
Re:Systemd as tragedy by inferiorhuman on Tuesday January 29, 2019 @05:45AM (#19025338)
And that's what SIGHUP is for. The process will exit by default. If that's not the desired behavior a handler can be registered. Killing things that are explicitly designed to run after logout is a piss poor default.
Re:Systemd as tragedy by poettering on Tuesday January 29, 2019 @07:19AM (#19025711)
We send SIGHUP btw. The kernel's own sending of SIGHUP is bound to the TTY concept btw, which is specific to TTY logins only, not graphical ones.

That said the question is not so much about who sends what, but more about whether a secure system should allow user code to escape lifecycle management or whether logging out means logging out and giving up all resources.

Re:Systemd as tragedy by tyingq on Tuesday January 29, 2019 @07:40AM (#19025826)
I get what you're saying. However, I'd probably apply the kernel rule of "when maintaining the kernel, do not do something which breaks user programs/applications". Yes, this isn't the kernel, but it's comparable in being a core function that heavily affects userland stuff.
Re:Systemd as tragedy by pas on Wednesday January 30, 2019 @05:40AM (#19034058)
Sometimes the ole way o' logg out is just insecure. And there is no way to conjure up a new backward compatible and secure way. cgroups work well, especially because they are not opt-in. That means programs daemonizing either has to set themselves up as a system service or start a new logind scope (or PAM session, etc. which translates to escaping the cgroup, which requires user approval to remain secure).
Re:Systemd as tragedy by inferiorhuman on Tuesday January 29, 2019 @03:24PM (#19029513)
> more about whether a secure system should allow user code to escape lifecycle management

Please stop trotting that tired old line out. It is simply untrue. Systemd does the exact opposite of providing increased security. If nothing else the greatly increased surface area of systemd makes for a less secure system.

The pwnie articulates a number of other ways in which your code and your behavior are actively reducing the security of Linux.

Re:Systemd as tragedy by onlydeadheroes on Wednesday January 30, 2019 @05:09AM (#19033916)
I know right, I run openvpn as user nobody and I keep thinking that nobody user better stay logged in!
Re:Systemd as tragedy by v_lisivka on Tuesday January 29, 2019 @07:44AM (#19025845)
If you created a problem, it's your duty to provide a workaround or a solution to the problem. Why not provide systemd specific version of `nohup` for such cases and encourage users to use it instead of old and insecure version?
Re:Systemd as tragedy by tyingq on Tuesday January 29, 2019 @07:09AM (#19025670)
This. There's a reason the defacto way to keep running post logout was named "nohup". This wasn't some deep dark unknown secret behaviour that was broken.
Re:Systemd as tragedy by zbentley on Tuesday January 29, 2019 @08:35PM (#19031768)
It was called that because connected pty devices could hang up. Whether hanging up due to intentional logout or actually hanging up the modem was, and is, left as an exercise to the user. Unless we try to disambiguate it via login/pty manager programs, that is.
Re:Systemd as tragedy by v_lisivka on Tuesday January 29, 2019 @08:19AM (#19026018)
Because 1) maintainer can be overloaded, so (s)he will stick to defaults, 2) maintainer needs a logical reason to change default setting to something else, which is not obvious in most cases. Maintainer is not a QA team.
Re:Systemd as tragedy by zpallin on Tuesday January 29, 2019 @12:44PM (#19028247)
Look, it's everyone's responsibility, this doesn't just fall on Systemd. While it's clear that Systemd made some difficult changes to how user processes operate, it still performed the due diligence of providing the original behavior as configurations. They should reconfigure their tools. If they're not doing that, then it's not necessarily Systemd's fault that things don't work for sysadmins trying to use their tools.
Re:Systemd as tragedy by youdontknowtho on Tuesday January 29, 2019 @07:14AM (#19025690)
Wait a minute. Why isn't it the distro's responsibility to choose the most compatible defaults?
Re:Systemd as tragedy by bjourne on Tuesday January 29, 2019 @11:06AM (#19027421)
Isn't it more efficient if 1 upstream picks the sane defaults rather than N distros? The situation was exactly the same when PulseAudio was introduced in Ubuntu. Audio broke for a huge amount of users and according to upstream it was because they had configured it wrongly...

IMO, it is part and parcel of designing great software that you pick as universally agreeable defaults as possible.

Re:Systemd as tragedy by darkpuma on Tuesday January 29, 2019 @09:04AM (#19026309)
It's the responsibility of both to pick sane defaults. When the software developer picks insane defaults they are being antisocial, those distro packagers are people too and developers who pick insane defaults are causing unnecessary grief for packagers.
Re:Systemd as tragedy by inferiorhuman on Tuesday January 29, 2019 @03:28PM (#19029536)
If you smell shit while walking down the street, maybe someone dropped a deuce on the sidewalk. If you smell shit everywhere you go, maybe it's you, maybe you shat your pants. When you violate the principle of least astonishment you're creating a huge stink.

That you can configure systemd to behave in a less obnoxious manner is well beside the point. Systemd should be unobtrusive and predictable without any extra action on the part of the distribution folks or end users.

That the suggestion is to simply read the code or documentation is the height of arrogance considering how sloppy and insecure the systemd code is (parse error equals root privileges? come on…).

Re:Systemd as tragedy by SahAssar on Tuesday January 29, 2019 @04:15PM (#19029837)
Your argument assumes that systemd is simply meant to be a in-place compatible drop-in for what it replaces, which I don't think is something anyone would/should expect. If systemd was meant to behave the exact same way as systems it is replacing then there wouldn't be much point of it. For those cases it sometimes will break things, and will sometimes have settings to follow previous behavior.
Re:Systemd as tragedy by inferiorhuman on Tuesday January 29, 2019 @05:16PM (#19030370)
There's plenty of room within the POSIX specs to address service management without requiring kernel integration, breaking userland tools, etc. When your init replacement manages to interfere with the kernel you've done something very, very wrong.
Re:Systemd as tragedy by SahAssar on Tuesday January 29, 2019 @05:26PM (#19030447)
Not sure if I missed something here but how has it interfered with the kernel? AFAIK it has broken some userland tools (which is bad in itself in most cases), but actually breaking kernelspace is not something I've heard of.
Re:Systemd as tragedy by inferiorhuman on Tuesday January 29, 2019 @09:47PM (#19032181)
https://igurublog.wordpress.com/2014/04/03/tso-and-linus-and...

Yet just two days ago, we see Linus Torvalds (the creator of Linux and maintainer of the Linux kernel), launching into a tirade against – yes, you guessed it – systemd developers because of their atrocious response to a bug in systemd that is crashing the kernel and preventing it from being debugged. Linus is so upset with systemd developer Kay Sievers (gee, where I have heard that name before – oh, that’s right, he’s the moron who refused to fix udev problems) that Linus is threatening to refuse any further contributions from this Red Hat developer, not just because of this bug, but because of a pattern of this behavior – a problem for Kay because Red Hat is also foaming at the mouth to have their kernel-based, no doubt bug- and security-flaw-ridden D-Bus implementation included in our kernels. Other developers were so peeved that they suggested simply triggering a kernel panic and halting the system when systemd is so much as detected in use.

The key phrase there is:

a bug in systemd that is crashing the kernel and preventing it from being debugged

Honestly though when you get Linus flaming your behavior you're doing something really wrong.

Re:Systemd as tragedy by Per_Bothner on Tuesday January 29, 2019 @11:05PM (#19032547)
_Honestly though when you get Linus flaming your behavior you're doing something really wrong._

Haven't been around here long, have you? :-)

Re:Systemd as tragedy by yellowapple on Thursday January 31, 2019 @09:13PM (#19051022)
Likewise, of course, or you'd know that the tirades were more often than not in response to things that were indeed "really wrong" (at least by his standards).
Re:Systemd as tragedy by inferiorhuman on Tuesday January 29, 2019 @11:25PM (#19032653)
Yeah I know Linus likes to go on a good tear. But I'm not talking about flaming your code or design decisions, but flaming your behavior.
Re:Systemd as tragedy by youdontknowtho on Wednesday January 30, 2019 @07:33PM (#19041156)
from 2014. I'm only pointing it out to make it clear that the post wasn't recent. Not questioning anything else about it.
Re:Systemd as tragedy by pas on Wednesday January 30, 2019 @05:44AM (#19034075)
Some distros focus on user convenience some on security. Different defaults are required.

And sometimes security requires breaking compatibility.