| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
network: rename WireGuard.FwMark -> FirewallMark
|
| |
| |
| |
| | |
For the consistency with FirewallMark= in [RoutingPolicyRule] section.
|
|/ |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Closes #5145.
Example conf:
```
[Match]
Name=vxlan1309
[BridgeFDB]
MACAddress=00:00:00:00:00:00
Destination=10.0.0.2
[BridgeFDB]
MACAddress=00:00:00:00:00:00
Destination=10.0.0.4
[BridgeFDB]
MACAddress=00:00:00:00:00:00
Destination=10.0.0.5
```
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
The main testsuite service timeouts sporadically when waiting for
other testsuite-* units. As the test timeout is handled by
the "test executor" (test.sh), let's disable it for the service.
This should (hopefully) fix the test flakiness.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When shooting down a service with SIGABRT the user might want to have a
much longer stop timeout than on regular stops/shutdowns. Especially in
the face of short stop timeouts the time might not be sufficient to
write huge core dumps before the service is killed.
This commit adds a dedicated (Default)TimeoutAbortSec= timer that is
used when stopping a service via SIGABRT. In all other cases the
existing TimeoutStopSec= is used. The timer value is unset by default
to skip the special handling and use TimeoutStopSec= for state
'stop-watchdog' to keep the old behaviour.
If the service is in state 'stop-watchdog' and the service should be
stopped explicitly we still go to 'stop-sigterm' and re-apply the usual
TimeoutStopSec= timeout.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In cgroup v2 we have protection tunables -- currently MemoryLow and
MemoryMin (there will be more in future for other resources, too). The
design of these protection tunables requires not only intermediate
cgroups to propagate protections, but also the units at the leaf of that
resource's operation to accept it (by setting MemoryLow or MemoryMin).
This makes sense from an low-level API design perspective, but it's a
good idea to also have a higher-level abstraction that can, by default,
propagate these resources to children recursively. In this patch, this
happens by having descendants set memory.low to N if their ancestor has
DefaultMemoryLow=N -- assuming they don't set a separate MemoryLow
value.
Any affected unit can opt out of this propagation by manually setting
`MemoryLow` to some value in its unit configuration. A unit can also
stop further propagation by setting `DefaultMemoryLow=` with no
argument. This removes further propagation in the subtree, but has no
effect on the unit itself (for that, use `MemoryLow=0`).
Our use case in production is simplifying the configuration of machines
which heavily rely on memory protection tunables, but currently require
tweaking a huge number of unit files to make that a reality. This
directive makes that significantly less fragile, and decreases the risk
of misconfiguration.
After this patch is merged, I will implement DefaultMemoryMin= using the
same principles.
|
|\
| |
| | |
network: introduce MACsec
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Media Access Control Security (MACsec) is an 802.1AE IEEE
industry-standard security technology that provides secure
communication for all traffic on Ethernet links.
MACsec provides point-to-point security on Ethernet links between
directly connected nodes and is capable of identifying and preventing
most security threats, including denial of service, intrusion,
man-in-the-middle, masquerading, passive wiretapping, and playback attacks.
Closes #5754
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We had all kinds of indentation: 2 sp, 3 sp, 4 sp, 8 sp, and mixed.
4 sp was the most common, in particular the majority of scripts under test/
used that. Let's standarize on 4 sp, because many commandlines are long and
there's a lot of nesting, and with 8sp indentation less stuff fits. 4 sp
also seems to be the default indentation, so this will make it less likely
that people will mess up if they don't load the editor config. (I think people
often use vi, and vi has no support to load project-wide configuration
automatically. We distribute a .vimrc file, but it is not loaded by default,
and even the instructions in it seem to discourage its use for security
reasons.)
Also remove the few vim config lines that were left. We should either have them
on all files, or none.
Also remove some strange stuff like '#!/bin/env bash', yikes.
|
|/
|
|
| |
We would get an error for every script, which is just noise.
|
|\
| |
| | |
add cgroupv2 oom killer event handling to service management
|
| | |
|
|\ \
| | |
| | | |
sd-bus: properly handle messages with overlong signatures
|
| | |
| | |
| | |
| | |
| | |
| | | |
We would accept a message with 40k signature and spend a lot of time iterating
over the nested arrays. Let's just reject it early, as we do for !gvariant
messages.
|
|/ /
| |
| |
| | |
Follow-up for a2fbac5875776e9e327f30cf2a8b3070a4c1552a.
|
|\ \
| | |
| | | |
test: set longer timeout
|
| | | |
|
| |/ |
|
|/
|
|
|
|
| |
This fixes a bug introduced by 6ef5c881dd5568f08dc35013e24f7d857f36b207.
Fixes oss-fuzz#14157 and oss-fuzz#14158.
|
|\
| |
| | |
network: add PresharedKeyFile= setting and make reading key file failure fatal
|
| | |
|
| | |
|
| |
| |
| |
| | |
This also refactor wireguard_read_key_file().
|
|/
|
|
|
| |
Fixes oss-fuzz#14108.
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14108
|
| |
|
| |
|
|\
| |
| | |
core: on switching root do not emit device state change based on enumeration results
|
| | |
|
| | |
|
|\ \
| | |
| | | |
wait-online: add --any option
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Some test environment may be in heavy load. In that case, rate limit
never hit, and the test fails...
|
| | | |
|
|/ /
| |
| |
| |
| | |
This also merges the two wireguard tests, and use wait_online()
to speed up the test.
|
|\ \
| | |
| | | |
network: make GRE and GRETAP support Key= or friends
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
This also disables IPv6AcceptRA= to speed up the test.
|