Merge pull request #11823 from keszybz/more-fuzz-coverage

More fuzz coverage
This commit is contained in:
Lennart Poettering 2019-02-26 17:21:32 +01:00 committed by GitHub
commit 8c28360a21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

View file

@ -79,6 +79,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
assert_se(g);
unit_dump(u, g, "");
manager_dump(m, g, ">>>");
return 0;
}

View file

@ -15,6 +15,14 @@ Documentation=https://www.freedesktop.org/wiki/Software/systemd/machined
Wants=machine.slice
After=machine.slice
RequiresMountsFor=/var/lib/machines
ConditionNull=true
ConditionNull=
ConditionNull=|!false
OnFailureIsolate=false
FailureActionExitStatus=222
FailureActionExitStatus=
SuccessActionExitStatus=0
SuccessActionExitStatus=
[Service]
ExecStart=/usr/lib/systemd/systemd-machined
@ -32,3 +40,13 @@ IPAddressDeny=any
# Note that machined cannot be placed in a mount namespace, since it
# needs access to the host's mount namespace in order to implement the
# "machinectl bind" operation.
SELinuxContext=system_u:system_r:kernel_t:s0
AppArmorProfile=profile
SELinuxContext=-system_u:system_r:kernel_t:s22
AppArmorProfile=-profile
IODeviceLatencyTargetSec=/dev/sda 25ms
IODeviceLatencyTargetSec=/dev/sdb 2h
PIDFile=%t/mypid
PIDFile=
DisableControllers=