[systemd-devel] Potential major bug in 214

Michael Biebl mbiebl at gmail.com
Wed Jun 25 15:01:19 PDT 2014


2014-06-25 23:18 GMT+02:00 Adam Williamson <awilliam at redhat.com>:
> Hi, folks. I'm about 90% sure there's a fairly significant bug in the
> systemd-sysv-generator that was introduced in 214. It's a bit
> complicated, and the full details are at
> https://bugs.freedesktop.org/show_bug.cgi?id=80537 . But the tl;dr
> summary is this:
>
> If there are any SysV initscripts in /etc/init.d that have:
>
> # Provides: $network

That should translate to
Wants=network.target
Before=network.target

i.e., the service is provider for network.target. network.target
itself is a passive unit.


>
> or:
>
> # Should-Start: $network

IIRC with the old sysv support that simply translated to

After=network.target. No Wants or Requires dependencies.


> or:
>
> # Required-Start: $network

Same here. That simply translated to
After=network.target


> they will wind up becoming dependencies of network-online.target, and so
> on any system where network-online.target is required by anything else
> (which is probably a lot of systems), they will be started at boot.
> Regardless of whether they're actually enabled so far as SysV is
> concerned. This has obvious potential unfortunate consequences...for
> instance, on a system with a forgotten /etc/init.d/telnet
> or /etc/init.d/vncserver or...you get the idea...lying around.
>
> I poked quite far into the bug and I *think* I more or less understand
> what's going on, but I wasn't able to come up with a sufficient fix for
> it. If folks could treat the report with a bit of urgency at least until
> it's established whether I'm correct or misunderstanding something,
> that'd be great. thanks!
> --
> Adam Williamson
> Fedora QA Community Monkey
> IRC: adamw | Twitter: AdamW_Fedora | XMPP: adamw AT happyassassin . net
> http://www.happyassassin.net
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


More information about the systemd-devel mailing list