<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:zbyszek@in.waw.pl" title="Zbigniew Jedrzejewski-Szmek <zbyszek@in.waw.pl>"> <span class="fn">Zbigniew Jedrzejewski-Szmek</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - RFE: please introduce more special targets for facilities like entropy, or netfilter rules"
href="https://bugs.freedesktop.org/show_bug.cgi?id=80169">bug 80169</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - RFE: please introduce more special targets for facilities like entropy, or netfilter rules"
href="https://bugs.freedesktop.org/show_bug.cgi?id=80169#c11">Comment # 11</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - RFE: please introduce more special targets for facilities like entropy, or netfilter rules"
href="https://bugs.freedesktop.org/show_bug.cgi?id=80169">bug 80169</a>
from <span class="vcard"><a class="email" href="mailto:zbyszek@in.waw.pl" title="Zbigniew Jedrzejewski-Szmek <zbyszek@in.waw.pl>"> <span class="fn">Zbigniew Jedrzejewski-Szmek</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=80169#c10">comment #10</a>)
<span class="quote">> >network-pre.target means "network prerequisites"
> >as much as "before network". This name is good
> >because it follows the general naming, and we
> >can easy have a number of such targets
> >(remote-fs-pre, network-pre, cryptsetup-pre, ...)
>
> To be honest... it seems extremely ugly to me... I mean the concept itself.
> Cause ordering is done via After=/Before=, i.e. semantically... ordering
> should be done by naming.
> Cause what's next? Someone needs something that runs after networking, and
> we get network-post.target. And someone else needs something that is network
> related but runs even before network-pre.target... what then?
> network-pre-pre.target?</span >
After=network.target means exactly what it seems to mean. So network-pre.target
and network.target cover pretty much all common cases.
If you need more specific dependencies, they can be specified on the level
of individual units.
<span class="quote">> Authors of unit files (and I think we rather want to have the unit files
> upstream and not per distro) can then rest assured, that *if* a package that
> provides such facility is installed on a system... it will be pulled in.
> systemd should of course not implement this functionality by itself.
>
> Example:
> I have a unit file for the postfix.service... since we (would) teach people
> to do so, Wietse adds
> Requires=network-secured.target
> After=network-secured.target</span >
No, no, no. Individual services should be able to listen (securely) at any
point
in time. Teaching them about network configuration stages is very wrong.
BTW. we already have the equivalent of dns.target — nss-lookup.target.
<span class="quote">> >I see some merit in adding a firewall.target, with the meaning
> >"firewall has been configured".
> While I don't insist on my proposed name "network-secured.target" I think
> firewall isn't good either.
> Neither would I take "packet-filter" or something like that.
>
> I guess my idea is to also hook in other services that secure the
> network,... fail2ban is a prominent example (even though this would also act
> on the firewall)... but think of some network intrusion detection system,
> that one may want to have running before any daemon starts up.</span >
Great. They can run Before=network-pre.target. I think that this shows
why existing targets are sufficient.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>