3 ms·
Is anyone else grossed out with the fact that systemd is parsing the kernel's command line? This is like if some program started reading unrelated crap from ano
by asveikau 12y ago
Is anyone else grossed out with the fact that systemd is parsing the kernel's command line? This is like if some program started reading unrelated crap from another program's command line, just because.
Edit: I guess downvoters don't care about code smell. This is literally like an unrelated process pulling out someone else's argv and using it as their own. Ick.
- Jasper_ 12y agoThe kernel command line has widely been considered an API to userspace. That's why the kernel exports it in /proc/cmdline.
- asveikau 12y agoBy this logic I might as well say everything in /proc is an API that I can use for any purpose, rotten or not. "It's ok because I read it from /proc/1276/mem". No sir, nothing bad about that design!
- the_why_of_y 12y agoLinus Torvalds thinks it's perfectly fine and exactly how /proc/cmdline was intended to be used, but what does he know anyway? If systemd is doing it, it must be wrong. http://lwn.net/Articles/593677/ http://lwn.net/Articles/593677/
- asveikau 12y agoThere is a lot of strong criticism of systemd in that thread. I was actually considering posting it as sympathetic to my point. It simultaneously expresses what both of us are saying. (You can read the command line, but don't do it for stupid shit.) From your link: > But the problem appears when system services seem to think that they own those flags, and nothing else matters, and they don't do something "sane" any more. Then later: > It does become a problem when you have a system service developer who thinks the universe revolves around him, and nobody else matters, and people sending him bug-reports are annoyances that should be ignored rather than acknowledged and fixed. At that point, it's a problem. Next paragraph indicates the rant is directed at Kay Sievers, udev and systemd developer, and his "continued bad behavior". It does ring true for me as a user, I have noticed systemd-based systems spam a lot of things that used to be "for the kernel" and a bit more sacred, like dmesg and command line.