diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-07-07 17:43:40 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-10-02 09:41:25 +0200 |
commit | 93b575b26605c347a717b2aa24ddf9cad08b8080 (patch) | |
tree | 4441dbd75bba7a4bbcfed108f436ec5f84162e1c /test/fuzz | |
parent | po: update Turkish translation (diff) | |
download | systemd-93b575b26605c347a717b2aa24ddf9cad08b8080.tar.xz systemd-93b575b26605c347a717b2aa24ddf9cad08b8080.zip |
fuzz: rename "fuzz-corpus" directory to just "fuzz"
Also, all corpus subdirectories are named exactly the same as the fuzzer they
are for. This makes the paths a bit longer, but easier.
Diffstat (limited to 'test/fuzz')
22 files changed, 1437 insertions, 0 deletions
diff --git a/test/fuzz/.gitattributes b/test/fuzz/.gitattributes new file mode 100644 index 0000000000..7b1b3e1835 --- /dev/null +++ b/test/fuzz/.gitattributes @@ -0,0 +1 @@ +/*/* -whitespace diff --git a/test/fuzz/fuzz-dhcp-server/discover-existing b/test/fuzz/fuzz-dhcp-server/discover-existing Binary files differnew file mode 100644 index 0000000000..1e26bf09e2 --- /dev/null +++ b/test/fuzz/fuzz-dhcp-server/discover-existing diff --git a/test/fuzz/fuzz-dhcp-server/discover-new b/test/fuzz/fuzz-dhcp-server/discover-new Binary files differnew file mode 100644 index 0000000000..feeae55e5e --- /dev/null +++ b/test/fuzz/fuzz-dhcp-server/discover-new diff --git a/test/fuzz/fuzz-dhcp-server/release b/test/fuzz/fuzz-dhcp-server/release Binary files differnew file mode 100644 index 0000000000..4f3eadb2f2 --- /dev/null +++ b/test/fuzz/fuzz-dhcp-server/release diff --git a/test/fuzz/fuzz-dhcp-server/request-existing b/test/fuzz/fuzz-dhcp-server/request-existing Binary files differnew file mode 100644 index 0000000000..9f7a0d88f7 --- /dev/null +++ b/test/fuzz/fuzz-dhcp-server/request-existing diff --git a/test/fuzz/fuzz-dhcp-server/request-new b/test/fuzz/fuzz-dhcp-server/request-new Binary files differnew file mode 100644 index 0000000000..fc6f5864a7 --- /dev/null +++ b/test/fuzz/fuzz-dhcp-server/request-new diff --git a/test/fuzz/fuzz-dhcp-server/request-reboot b/test/fuzz/fuzz-dhcp-server/request-reboot Binary files differnew file mode 100644 index 0000000000..fde74b2b91 --- /dev/null +++ b/test/fuzz/fuzz-dhcp-server/request-reboot diff --git a/test/fuzz/fuzz-dhcp-server/request-renew b/test/fuzz/fuzz-dhcp-server/request-renew Binary files differnew file mode 100644 index 0000000000..8dcda2ad88 --- /dev/null +++ b/test/fuzz/fuzz-dhcp-server/request-renew diff --git a/test/fuzz/fuzz-journal-remote/invalid-ts.txt b/test/fuzz/fuzz-journal-remote/invalid-ts.txt Binary files differnew file mode 100644 index 0000000000..bc036fdcb0 --- /dev/null +++ b/test/fuzz/fuzz-journal-remote/invalid-ts.txt diff --git a/test/fuzz/fuzz-journal-remote/sample.txt b/test/fuzz/fuzz-journal-remote/sample.txt new file mode 100644 index 0000000000..891c0003ef --- /dev/null +++ b/test/fuzz/fuzz-journal-remote/sample.txt @@ -0,0 +1,180 @@ +__CURSOR=s=6863c726210b4560b7048889d8ada5c5;i=3e931;b=f446871715504074bf7049ef0718fa93;m=198603b12d7;t=4fd05c +__REALTIME_TIMESTAMP=1404101101501873 +__MONOTONIC_TIMESTAMP=1753961140951 +_BOOT_ID=f446871715504074bf7049ef0718fa93 +_TRANSPORT=syslog +PRIORITY=3 +SYSLOG_FACILITY=6 +SYSLOG_IDENTIFIER=/USR/SBIN/CRON +MESSAGE=\x1b\r"\x9a\xea]\x90rU\xb0SX5\nY\xebi\xdac\x1f\xde\xb4\xf6\x0e\x8d/!\xd0\x9a\xe8\x8b\xc3#hN\xf4\x9c\x8e\xc5\x92>\xaa\xf8Ih\x13\xd2\xbbOa\xedK\x04\xa449\xf3f\x9e\xfc=\xc9\xc1\x0fe\xb4\xf96\xd5z\xcfQ\xcb\xb1\xb4\xe48\xb3\x9f\x1b +_UID=0 +_GID=0 +_MACHINE_ID=69121ca41d12c1b69a7960174c27b618 +_HOSTNAME=hostname +SYSLOG_PID=25721 +_PID=25721 +_SOURCE_REALTIME_TIMESTAMP=1404101101483516 +DATA=00000000000000000000000000000000000000000000000000000000000000000000000000000000 + +__CURSOR=s=6863c726210b4560b7048889d8ada5c5;i=3e931;b=f446871715504074bf7049ef0718fa93;m=198603b12d8;t=4fd05c +__REALTIME_TIMESTAMP=1404101101501874 +__MONOTONIC_TIMESTAMP=1753961140952 +_BOOT_ID=f446871715504074bf7049ef0718fa93 +_TRANSPORT=syslog +PRIORITY=3 +SYSLOG_FACILITY=6 +SYSLOG_IDENTIFIER=/USR/SBIN/CRON +MESSAGE=l\x1a\xf4^\xb1\x14\xfb@\r\xa1\x11\xda0\xe0]3Ms$\x7f06\xde\xd9\x02y\xf9@\n\xe8\x01\x83\xcb\xe0)\xed\x98*>\xa1\xc2Y\xe8IR\x95h\xa1\xbb\x16\xba\xedK\x11\xfcj\x04\xfb\x0b\x9b)p\x10\xecH\x1f\x0b\x89{\xeb'\x0e\x1d\xaa\xcbZ\x86\xe0k1 +_UID=0 +_GID=0 +_MACHINE_ID=69121ca41d12c1b69a7960174c27b618 +_HOSTNAME=hostname +SYSLOG_PID=25721 +_PID=25721 +_SOURCE_REALTIME_TIMESTAMP=1404101101483517 +DATA=00000000000000000000000000000000000000000000000000000000000000000000000000000001 + +__CURSOR=s=6863c726210b4560b7048889d8ada5c5;i=3e931;b=f446871715504074bf7049ef0718fa93;m=198603b12d9;t=4fd05c +__REALTIME_TIMESTAMP=1404101101501875 +__MONOTONIC_TIMESTAMP=1753961140953 +_BOOT_ID=f446871715504074bf7049ef0718fa93 +_TRANSPORT=syslog +PRIORITY=3 +SYSLOG_FACILITY=6 +SYSLOG_IDENTIFIER=/USR/SBIN/CRON +MESSAGE=MzV_\xbb\xc1\x14f\x84\x15\xf5\xe0\xe6\xd2\x0e6#N\xf1\x1b\xe9Z*\x8f\x8a\x13\xad\xa4%r\x02\xd1\xc4^U\xc0u!\xdfjl\x15\xb6\xcc\x93\x1dRi<\x1a\xa9/\x9c\xcb\xe8\x99\xe3\x1cN\x06\xf0\xb41a\xa7L\x99\xda\x83Q: ]\x1c\xb9Hiz\n\x94 +_UID=0 +_GID=0 +_MACHINE_ID=69121ca41d12c1b69a7960174c27b618 +_HOSTNAME=hostname +SYSLOG_PID=25721 +_PID=25721 +_SOURCE_REALTIME_TIMESTAMP=1404101101483518 +DATA=00000000000000000000000000000000000000000000000000000000000000000000000000000002 + +__CURSOR=s=6863c726210b4560b7048889d8ada5c5;i=3e931;b=f446871715504074bf7049ef0718fa93;m=198603b12da;t=4fd05c +__REALTIME_TIMESTAMP=1404101101501876 +__MONOTONIC_TIMESTAMP=1753961140954 +_BOOT_ID=f446871715504074bf7049ef0718fa93 +_TRANSPORT=syslog +PRIORITY=3 +SYSLOG_FACILITY=6 +SYSLOG_IDENTIFIER=/USR/SBIN/CRON +MESSAGE=\x8aF\xfcG\xd7\xeeZ\x86\xcb.O\xb1!,2\xbf\x86\\&\x15\xa7\xe6\xe7-\x81\xed\xf8\x7f=\xf7\x90YF\xe1\xe6\x99\x83\x84\r\xe48\x93\xc7\xdd\tJy\x86\\\xb4\xf9\xefT\r\x04\xae\x1d\x99\xfe'\x99m\xc4#\x8d\x89w\xb1\xecC\xaf\xe6\x1b\xfd\xc5\xbc\xfd\xe3w2 +_UID=0 +_GID=0 +_MACHINE_ID=69121ca41d12c1b69a7960174c27b618 +_HOSTNAME=hostname +SYSLOG_PID=25721 +_PID=25721 +_SOURCE_REALTIME_TIMESTAMP=1404101101483519 +DATA=00000000000000000000000000000000000000000000000000000000000000000000000000000003 + +__CURSOR=s=6863c726210b4560b7048889d8ada5c5;i=3e931;b=f446871715504074bf7049ef0718fa93;m=198603b12db;t=4fd05c +__REALTIME_TIMESTAMP=1404101101501877 +__MONOTONIC_TIMESTAMP=1753961140955 +_BOOT_ID=f446871715504074bf7049ef0718fa93 +_TRANSPORT=syslog +PRIORITY=3 +SYSLOG_FACILITY=6 +SYSLOG_IDENTIFIER=/USR/SBIN/CRON +MESSAGE=`\xc7\r\xb6\xc3NPjc\xa129L\xe1\x17\xa2\x96\xa8w\x0c\x07\x8f\x98\x1eS-N\xb7lt\xc5=\xd1\x93\x10_1\xdc\xa9x\xd1\x8a\n\xb1\x90\xdca\xc4\x94\x98\x92\x00\x90)d{\x96\x9e\xc2A\xbf\x81s\xf82_\xe0;\xc3\x06\x8eO\xe4\x8a5GX\xe1\xff\xea +_UID=0 +_GID=0 +_MACHINE_ID=69121ca41d12c1b69a7960174c27b618 +_HOSTNAME=hostname +SYSLOG_PID=25721 +_PID=25721 +_SOURCE_REALTIME_TIMESTAMP=1404101101483520 +DATA=00000000000000000000000000000000000000000000000000000000000000000000000000000004 + +__CURSOR=s=6863c726210b4560b7048889d8ada5c5;i=3e931;b=f446871715504074bf7049ef0718fa93;m=198603b12dc;t=4fd05c +__REALTIME_TIMESTAMP=1404101101501878 +__MONOTONIC_TIMESTAMP=1753961140956 +_BOOT_ID=f446871715504074bf7049ef0718fa93 +_TRANSPORT=syslog +PRIORITY=3 +SYSLOG_FACILITY=6 +SYSLOG_IDENTIFIER=/USR/SBIN/CRON +MESSAGE=\r\t \xdf-\xed\xd5\xde\xa1/\xa5T\x1a\xdd\xf9a\xe2\x8b()\xd5\xf2\x1b\xbcu~\xaa\x97\xc7~\x0e~2\x11\xa0\xb5\xd3\xd7^ \xea\x16\x02{\xd1\xbe\xa02\xad\x00\xba$\xf2\xd5\x7f\x9a\xf0\xf9\xf2\x14\xf0/\xb5\xd3"`\xd8\x8e\xb6w\x1bP\x96\xf1\x0c\xf0#\xd2\x12\x88 +_UID=0 +_GID=0 +_MACHINE_ID=69121ca41d12c1b69a7960174c27b618 +_HOSTNAME=hostname +SYSLOG_PID=25721 +_PID=25721 +_SOURCE_REALTIME_TIMESTAMP=1404101101483521 +DATA=00000000000000000000000000000000000000000000000000000000000000000000000000000005 + +__CURSOR=s=6863c726210b4560b7048889d8ada5c5;i=3e931;b=f446871715504074bf7049ef0718fa93;m=198603b12dd;t=4fd05c +__REALTIME_TIMESTAMP=1404101101501879 +__MONOTONIC_TIMESTAMP=1753961140957 +_BOOT_ID=f446871715504074bf7049ef0718fa93 +_TRANSPORT=syslog +PRIORITY=3 +SYSLOG_FACILITY=6 +SYSLOG_IDENTIFIER=/USR/SBIN/CRON +MESSAGE=\x1a\x15\xd3\x8d\x98\x83m\xe2\x02\xfa\x81\x98\xef\xa2\x8a\xcc\x10\xc5=q=\xd0\xd7_\x0e\x92D\xb1\xc7 \xaa\xae-\x18\xff\xb0<l5\xf1\x91-\xe8g! \xd8\xac\xadi"\xf8 \xebL\xe6-\xbf=i_@\x9b)B\xac\xa50\xf9\xf1~\xb1c^pTD\x15\xee} +_UID=0 +_GID=0 +_MACHINE_ID=69121ca41d12c1b69a7960174c27b618 +_HOSTNAME=hostname +SYSLOG_PID=25721 +_PID=25721 +_SOURCE_REALTIME_TIMESTAMP=1404101101483522 +DATA=00000000000000000000000000000000000000000000000000000000000000000000000000000006 + +__CURSOR=s=6863c726210b4560b7048889d8ada5c5;i=3e931;b=f446871715504074bf7049ef0718fa93;m=198603b12de;t=4fd05c +__REALTIME_TIMESTAMP=1404101101501880 +__MONOTONIC_TIMESTAMP=1753961140958 +_BOOT_ID=f446871715504074bf7049ef0718fa93 +_TRANSPORT=syslog +PRIORITY=3 +SYSLOG_FACILITY=6 +SYSLOG_IDENTIFIER=/USR/SBIN/CRON +MESSAGE=\xe4L \xb4\t\xf3\xfbQ\xb8\x95f{C\x1b\x91\x81\xd2!\xc0f\xa41=\xff\x84W\xf3\x0f=\x9e\x87\xd1\x9f\x86;F\x12\xd6\x1c6B\x07\x08\xdb*\xeem\x9f\xe7\xda\x81n_\x00^\xcf!\x19\x19\xe0\x9cM\x05\xf0\xe9\xe9=\xbc\xba=`inw\xc4Qq\x9cW\xe6 +_UID=0 +_GID=0 +_MACHINE_ID=69121ca41d12c1b69a7960174c27b618 +_HOSTNAME=hostname +SYSLOG_PID=25721 +_PID=25721 +_SOURCE_REALTIME_TIMESTAMP=1404101101483523 +DATA=00000000000000000000000000000000000000000000000000000000000000000000000000000007 + +__CURSOR=s=6863c726210b4560b7048889d8ada5c5;i=3e931;b=f446871715504074bf7049ef0718fa93;m=198603b12df;t=4fd05c +__REALTIME_TIMESTAMP=1404101101501881 +__MONOTONIC_TIMESTAMP=1753961140959 +_BOOT_ID=f446871715504074bf7049ef0718fa93 +_TRANSPORT=syslog +PRIORITY=3 +SYSLOG_FACILITY=6 +SYSLOG_IDENTIFIER=/USR/SBIN/CRON +MESSAGE=\xda\x80\xe0\xe5@\xa4\x94\xecL\xbd\xe4\xe5\xbd\xc8\xae\x8e\xa9k\xa4\rt\xf2\x17\xe3n!.\xe3\xab*\xe3f{H\x98\x86\xa1=U-\x8cNd+\x90\xbd\x970d\xf7\xee\xd7g\x08c\x12\xf4\x9f3\xd0&\x95\xb0\xac\x1a\xe9k\xda,}\x97`:u\xad\x9e\xfaLj\x11 +_UID=0 +_GID=0 +_MACHINE_ID=69121ca41d12c1b69a7960174c27b618 +_HOSTNAME=hostname +SYSLOG_PID=25721 +_PID=25721 +_SOURCE_REALTIME_TIMESTAMP=1404101101483524 +DATA=00000000000000000000000000000000000000000000000000000000000000000000000000000008 + +__CURSOR=s=6863c726210b4560b7048889d8ada5c5;i=3e931;b=f446871715504074bf7049ef0718fa93;m=198603b12e0;t=4fd05c +__REALTIME_TIMESTAMP=1404101101501882 +__MONOTONIC_TIMESTAMP=1753961140960 +_BOOT_ID=f446871715504074bf7049ef0718fa93 +_TRANSPORT=syslog +PRIORITY=3 +SYSLOG_FACILITY=6 +SYSLOG_IDENTIFIER=/USR/SBIN/CRON +MESSAGE=\xc0\xb4\xefIe\xc9\xd0\xaf!y\x13\xfdT(k\x9b\xc7\x7fm;\xc2\xbb"\x81\x87\\(-\x9a\x8b\xdd\x17\xf7\x8a\x92\xbd\xdd;\x9f\x99\x87\xf2\xb7\xcf\xf6XtRC\xad\xebT\xa1\xe5\xd9p\xd70\xc1\xb0^\x88g@=\xeb\xd8\xcf\xb7bK"6 \xda\x08\x1bp\xbc\r +_UID=0 +_GID=0 +_MACHINE_ID=69121ca41d12c1b69a7960174c27b618 +_HOSTNAME=hostname +SYSLOG_PID=25721 +_PID=25721 +_SOURCE_REALTIME_TIMESTAMP=1404101101483525 +DATA=00000000000000000000000000000000000000000000000000000000000000000000000000000009 + diff --git a/test/fuzz/fuzz-unit-file/dev-mapper-fedora_krowka\x2dswap.swap b/test/fuzz/fuzz-unit-file/dev-mapper-fedora_krowka\x2dswap.swap new file mode 100644 index 0000000000..2886021b1a --- /dev/null +++ b/test/fuzz/fuzz-unit-file/dev-mapper-fedora_krowka\x2dswap.swap @@ -0,0 +1,10 @@ +swap +[Unit] +SourcePath=/etc/fstab +Documentation=man:fstab(5) man:systemd-fstab-generator(8) + +[Swap] +What=/dev/mapper/fedora_krowka-swap +Options=defaults,x-systemd.device-timeout=0 +Priority=11 +TimeoutSec=123h 5min 2y diff --git a/test/fuzz/fuzz-unit-file/directives.service b/test/fuzz/fuzz-unit-file/directives.service new file mode 100644 index 0000000000..b9c1b467b0 --- /dev/null +++ b/test/fuzz/fuzz-unit-file/directives.service @@ -0,0 +1,911 @@ +service +Accept= +AccuracySec= +After= +Alias= +AllowIsolate= +Also= +AmbientCapabilities= +AssertACPower= +AssertArchitecture= +AssertCapability= +AssertControlGroupController= +AssertDirectoryNotEmpty= +AssertFileIsExecutable= +AssertFileNotEmpty= +AssertFirstBoot= +AssertGroup= +AssertHost= +AssertKernelCommandLine= +AssertKernelVersion= +AssertNeedsUpdate= +AssertPathExists= +AssertPathExistsGlob= +AssertPathIsDirectory= +AssertPathIsMountPoint= +AssertPathIsReadWrite= +AssertPathIsSymbolicLink= +AssertSecurity= +AssertUser= +AssertVirtualization= +Backlog= +Before= +BindIPv6Only= +BindPaths= +BindReadOnlyPaths= +BindToDevice= +BindsTo= +BlockIOAccounting= +BlockIODeviceWeight= +BlockIOReadBandwidth= +BlockIOWeight= +BlockIOWriteBandwidth= +Broadcast= +BusName= +CPUAccounting= +CPUQuota= +CPUShares= +CPUWeight= +CapabilityBoundingSet= +CollectMode= +ConditionACPower= +ConditionArchitecture= +ConditionCapability= +ConditionControlGroupController= +ConditionDirectoryNotEmpty= +ConditionFileIsExecutable= +ConditionFileNotEmpty= +ConditionFirstBoot= +ConditionGroup= +ConditionHost= +ConditionKernelCommandLine= +ConditionKernelVersion= +ConditionNeedsUpdate= +ConditionPathExists= +ConditionPathExistsGlob= +ConditionPathIsDirectory= +ConditionPathIsMountPoint= +ConditionPathIsReadWrite= +ConditionPathIsSymbolicLink= +ConditionSecurity= +ConditionUser= +ConditionVirtualization= +Conflicts= +DefaultDependencies= +DefaultInstance= +DeferAcceptSec= +Delegate= +Description= +DeviceAllow= +DevicePolicy= +DirectoryMode= +DirectoryNotEmpty= +Documentation= +DynamicUser= +ExecReload= +ExecStart= +ExecStartPost= +ExecStartPre= +ExecStop= +ExecStopPost= +ExecStopPre= +FailureAction= +FileDescriptorName= +FileDescriptorStoreMax= +ForceUnmount= +FreeBind= +Group= +GuessMainPID= +IOAccounting= +IODeviceWeight= +IOReadBandwidthMax= +IOReadIOPSMax= +IOWeight= +IOWriteBandwidthMax= +IOWriteIOPSMax= +IPAccounting= +IPAddressAllow= +IPAddressDeny= +IPTOS= +IPTTL= +IgnoreOnIsolate= +JobRunningTimeoutSec= +JobTimeoutAction= +JobTimeoutRebootArgument= +JobTimeoutSec= +JoinsNamespaceOf= +KeepAlive= +KeepAliveIntervalSec= +KeepAliveProbes= +KeepAliveTimeSec= +KillMode= +KillSignal= +LazyUnmount= +ListenDatagram= +ListenFIFO= +ListenMessageQueue= +#ListenNetlink= +ListenSequentialPacket= +ListenSpecial= +ListenStream= +ListenUSBFunction= +MakeDirectory= +Mark= +MaxConnections= +MaxConnectionsPerSource= +MemoryAccounting= +MemoryHigh= +MemoryLimit= +MemoryLow= +MemoryMax= +MemorySwapMax= +MessageQueueMaxMessages= +MessageQueueMessageSize= +MountAPIVFS= +NoDelay= +NoNewPrivileges= +NonBlocking= +NotifyAccess= +OnActiveSec= +OnBootSec= +OnCalendar= +OnFailure= +OnFailureJobMode= +OnStartupSec= +OnUnitActiveSec= +OnUnitInactiveSec= +Options= +PAMName= +PIDFile= +PartOf= +PassCredentials= +PassSecurity= +PathChanged= +PathExists= +PathExistsGlob= +PathModified= +PermissionsStartOnly= +Persistent= +PipeSize= +Priority= +PropagatesReloadTo= +RandomizedDelaySec= +RebootArgument= +ReceiveBuffer= +RefuseManualStart= +RefuseManualStop= +ReloadPropagatedFrom= +RemainAfterElapse= +RemainAfterExit= +RemoveOnStop= +RequiredBy= +Requires= +RequiresMountsFor= +Requisite= +Restart= +RestartForceExitStatus= +RestartPreventExitStatus= +RestartSec= +ReusePort= +RootDirectory= +RootDirectoryStartOnly= +RootImage= +RuntimeMaxSec= +SELinuxContextFromNet= +SecureBits= +SendBuffer= +SendSIGHUP= +SendSIGKILL= +Service= +Slice= +SloppyOptions= +SmackLabel= +SmackLabelIPIn= +SmackLabelIPOut= +SocketGroup= +SocketMode= +SocketProtocol= +SocketUser= +Sockets= +SourcePath= +StartLimitAction= +StartLimitBurst= +StartLimitIntervalSec= +StartupBlockIOWeight= +StartupCPUShares= +StartupCPUWeight= +StartupIOWeight= +StopWhenUnneeded= +SuccessAction= +SuccessExitStatus= +SupplementaryGroups= +Symlinks= +TCPCongestion= +TasksAccounting= +TasksMax= +TimeoutIdleSec= +TimeoutSec= +TimeoutStartSec= +TimeoutStopSec= +Transparent= +TriggerLimitBurst= +TriggerLimitIntervalSec= +Type= +USBFunctionDescriptors= +USBFunctionStrings= +Unit= +User= +WakeSystem= +WantedBy= +Wants= +WatchdogSec= +What= +Where= +WorkingDirectory= +Writable= +fsck.mode= +fsck.repair= +fstab= +locale.LANG= +locale.LANGUAGE= +locale.LC_ADDRESS= +locale.LC_COLLATE= +locale.LC_CTYPE= +locale.LC_IDENTIFICATION= +locale.LC_MEASUREMENT= +locale.LC_MESSAGES= +locale.LC_MONETARY= +locale.LC_NAME= +locale.LC_NUMERIC= +locale.LC_PAPER= +locale.LC_TELEPHONE= +locale.LC_TIME= +luks.crypttab= +luks.key= +luks.name= +luks.options= +luks.uuid= +luks= +modules_load= +mount.usr= +mount.usrflags= +mount.usrfstype= +net.ifnames= +plymouth.enable= +quotacheck.mode= +rd.fstab= +rd.luks.crypttab= +rd.luks.key= +rd.luks.name= +rd.luks.options= +rd.luks.uuid= +rd.luks= +rd.modules_load= +rd.systemd.gpt_auto= +rd.systemd.unit= +rd.systemd.verity= +rd.udev.children_max= +rd.udev.event_timeout= +rd.udev.exec_delay= +rd.udev.log_priority= +resume= +root= +rootflags= +rootfstype= +roothash= +systemd.default_standard_error= +systemd.default_standard_output= +systemd.default_timeout_start_sec= +systemd.firstboot= +systemd.gpt_auto= +systemd.journald.forward_to_console= +systemd.journald.forward_to_kmsg= +systemd.journald.forward_to_syslog= +systemd.journald.forward_to_wall= +systemd.log_level= +systemd.log_location= +systemd.log_target= +systemd.machine_id= +systemd.mask= +systemd.restore_state= +systemd.service_watchdogs= +systemd.setenv= +systemd.unit= +systemd.verity= +systemd.verity_root_data= +systemd.verity_root_hash= +systemd.volatile= +systemd.wants= +systemd.watchdog_device= +udev.children_max= +udev.event_timeout= +udev.exec_delay= +udev.log_priority= +vconsole.font= +vconsole.font_map= +vconsole.font_unimap= +vconsole.keymap= +vconsole.keymap_toggle= +ID_MODEL= +ID_MODEL_FROM_DATABASE= +SYSTEMD_ALIAS= +SYSTEMD_MOUNT_OPTIONS= +SYSTEMD_MOUNT_WHERE= +SYSTEMD_READY= +SYSTEMD_USER_WANTS= +SYSTEMD_WANTS= +link_priority= +static_node= +string_escape= +ARP= +ARPAllTargets= +ARPIPTargets= +ARPIntervalSec= +ARPValidate= +ActiveSlave= +AdSelect= +Address= +AddressAutoconfiguration= +AgeingTimeSec= +Alias= +AllSlavesActive= +AllowLocalRemote= +AllowPortToBeRoot= +AllowedIPs= +Anonymize= +Architecture= +AutoJoin= +AutoNegotiation= +BindCarrier= +BitsPerSecond= +Bond= +Bridge= +Broadcast= +Cache= +ClientIdentifier= +ConfigureWithoutCarrier= +CopyDSCP= +Cost= +CriticalConnection= +DHCP= +DHCPServer= +DNS= +DNSLifetimeSec= +DNSSEC= +DNSSECNegativeTrustAnchors= +DNSStubListener= +DUIDRawData= +DUIDType= +DefaultLeaseTimeSec= +DefaultPVID= +Description= +Destination= +DestinationPort= +DiscoverPathMTU= +Domains= +DownDelaySec= +Driver= +Duplex= +DuplicateAddressDetection= +EgressUntagged= +EmitDNS= +EmitDomains= +EmitLLDP= +EmitNTP= +EmitRouter= +EmitTimezone= +EncapsulationLimit= +Endpoint= +FDBAgeingSec= +FailOverMACPolicy= +FallbackDNS= +FallbackNTP= +FastLeave= +FirewallMark= +Flags= +FlowLabel= +ForwardDelaySec= +From= +FwMark= +GVRP= +Gateway= +GatewayOnlink= +GenericReceiveOffload= +GenericSegmentationOffload= +GratuitousARP= +Group= +GroupForwardMask= +GroupPolicyExtension= +HairPin= +HelloTimeSec= +HomeAddress= +Host= +Hostname= +IAID= +IPForward= +IPMasquerade= +IPv4LLRoute= +IPv4ProxyARP= +IPv6AcceptRA= +IPv6DuplicateAddressDetection= +IPv6FlowLabel= +IPv6HopLimit= +IPv6Preference= +IPv6PrefixDelegation= +IPv6PrivacyExtensions= +IPv6ProxyNDP= +IPv6ProxyNDPAddress= +IPv6Token= +Id= +IncomingInterface= +Independent= +InitialAdvertisedReceiveWindow= +InitialCongestionWindow= +InputKey= +KernelCommandLine= +KernelVersion= +Key= +Kind= +L2MissNotification= +L3MissNotification= +LACPTransmitRate= +LLDP= +LLMNR= +Label= +LargeReceiveOffload= +LearnPacketIntervalSec= +LinkLocalAddressing= +ListenPort= +Local= +LooseBinding= +MACAddress= +MACAddressPolicy= +MACVLAN= +MIIMonitorSec= +MTUBytes= +MVRP= +MacLearning= +ManageTemporaryAddress= +Managed= +MaxAgeSec= +MaxLeaseTimeSec= +MaximumFDBEntries= +Metric= +MinLinks= +Mode= +MultiQueue= +MulticastDNS= +MulticastQuerier= +MulticastSnooping= +NTP= +Name= +NamePolicy= +OnLink= +OneQueue= +OriginalName= +OtherInformation= +OutgoingInterface= +OutputKey= +PVID= +PacketInfo= +PacketsPerSlave= +Path= +Peer= +PersistentKeepalive= +PollIntervalMaxSec= +PollIntervalMinSec= +PoolOffset= +PoolSize= +Port= +PortRange= +PreferredLifetime= +PreferredLifetimeSec= +PreferredSource= +Prefix= +PrefixRoute= +PresharedKey= +PrimaryReselectPolicy= +PrimarySlave= +Priority= +PrivateKey= +Protocol= +PublicKey= +QuickAck= +RapidCommit= +ReduceARPProxy= +Remote= +RemoteChecksumRx= +RemoteChecksumTx= +ReorderHeader= +RequestBroadcast= +RequiredForOnline= +ResendIGMP= +RootDistanceMaxSec= +RouteMetric= +RouteShortCircuit= +RouteTable= +RouterLifetimeSec= +RouterPreference= +STP= +Scope= +SendHostname= +Source= +TCP6SegmentationOffload= +TCPSegmentationOffload= +TOS= +TTL= +Table= +Timezone= +To= +TransmitHashPolicy= +Tunnel= +TxtData= +TxtText= +Type= +TypeOfService= +UDP6ZeroChecksumRx= +UDP6ZeroChecksumTx= +UDPChecksum= +UDPSegmentationOffload= +UnicastFlood= +Unmanaged= +UpDelaySec= +UseBPDU= +UseDNS= +UseDomains= +UseHostname= +UseMTU= +UseNTP= +UseRoutes= +UseTimezone= +User= +VLAN= +VLANFiltering= +VLANId= +VNetHeader= +VRF= +VXLAN= +ValidLifetimeSec= +VendorClassIdentifier= +Virtualization= +WakeOnLan= +Weight= +CODE_FILE= +CODE_FUNC= +CODE_LINE= +COREDUMP_UNIT= +COREDUMP_USER_UNIT= +ERRNO= +MESSAGE= +MESSAGE_ID= +OBJECT_AUDIT_LOGINUID= +OBJECT_AUDIT_SESSION= +OBJECT_CMDLINE= +OBJECT_COMM= +OBJECT_EXE= +OBJECT_GID= +OBJECT_PID= +OBJECT_SYSTEMD_CGROUP= +OBJECT_SYSTEMD_OWNER_UID= +OBJECT_SYSTEMD_SESSION= +OBJECT_SYSTEMD_UNIT= +OBJECT_SYSTEMD_USER_UNIT= +OBJECT_UID= +PRIORITY= +SYSLOG_FACILITY= +SYSLOG_IDENTIFIER= +SYSLOG_PID= +_AUDIT_LOGINUID= +_AUDIT_SESSION= +_BOOT_ID= +_CAP_EFFECTIVE= +_CMDLINE= +_COMM= +_EXE= +_GID= +_HOSTNAME= +_KERNEL_DEVICE= +_KERNEL_SUBSYSTEM= +_LINE_BREAK= +_MACHINE_ID= +_PID= +_SELINUX_CONTEXT= +_SOURCE_REALTIME_TIMESTAMP= +_STREAM_ID= +_SYSTEMD_CGROUP= +_SYSTEMD_INVOCATION_ID= +_SYSTEMD_OWNER_UID= +_SYSTEMD_SESSION= +_SYSTEMD_SLICE= +_SYSTEMD_UNIT= +_SYSTEMD_USER_UNIT= +_TRANSPORT= +_UDEV_DEVLINK= +_UDEV_DEVNODE= +_UDEV_SYSNAME= +_UID= +__CURSOR= +__MONOTONIC_TIMESTAMP= +__REALTIME_TIMESTAMP= +class= +type= +cipher= +hash= +header= +key-slot= +keyfile-offset= +keyfile-size= +offset= +size= +skip= +tcrypt-keyfile= +timeout= +tries= +x-systemd.after= +x-systemd.before= +x-systemd.device-timeout= +x-systemd.idle-timeout= +x-systemd.mount-timeout= +x-systemd.requires-mounts-for= +x-systemd.requires= +CPUAffinity= +CapabilityBoundingSet= +CrashChangeVT= +CrashReboot= +CrashShell= +CtrlAltDelBurstAction= +DefaultBlockIOAccounting= +DefaultCPUAccounting= +DefaultEnvironment= +DefaultIPAccounting= +DefaultLimitAS= +DefaultLimitCORE= +DefaultLimitCPU= +DefaultLimitDATA= +DefaultLimitFSIZE= +DefaultLimitLOCKS= +DefaultLimitMEMLOCK= +DefaultLimitMSGQUEUE= +DefaultLimitNICE= +DefaultLimitNOFILE= +DefaultLimitNPROC= +DefaultLimitRSS= +DefaultLimitRTPRIO= +DefaultLimitRTTIME= +DefaultLimitSIGPENDING= +DefaultLimitSTACK= +DefaultMemoryAccounting= +DefaultRestartSec= +DefaultStandardError= +DefaultStandardOutput= +DefaultStartLimitBurst= +DefaultStartLimitIntervalSec= +DefaultTasksAccounting= +DefaultTasksMax= +DefaultTimeoutStartSec= +DefaultTimeoutStopSec= +DefaultTimerAccuracySec= +DumpCore= +HibernateMode= +HibernateState= +HybridSleepMode= +HybridSleepState= +JoinControllers= +LogColor= +LogLevel= +LogLocation= +LogTarget= +RuntimeWatchdogSec= +ShowStatus= +ShutdownWatchdogSec= +SuspendMode= +SuspendState= +SystemCallArchitectures= +TimerSlackNSec= +WatchdogDevice= +-N= +-c= +-e= +-t= +ANSI_COLOR= +AppArmorProfile= +BUG_REPORT_URL= +BUILD_ID= +Bind= +BindReadOnly= +Boot= +Bridge= +CHASSIS= +CPE_NAME= +CPUAffinity= +CPUSchedulingPolicy= +CPUSchedulingPriority= +CPUSchedulingResetOnFork= +CacheDirectory= +CacheDirectoryMode= +Capability= +Compress= +ConfigurationDirectory= +ConfigurationDirectoryMode= +DEPLOYMENT= +DropCapability= +Environment= +EnvironmentFile= +ExternalSizeMax= +FONT= +FONT_MAP= +FONT_UNIMAP= +ForwardToConsole= +ForwardToKMsg= +ForwardToSyslog= +ForwardToWall= +HOME_URL= +HandleHibernateKey= +HandleLidSwitch= +HandleLidSwitchDocked= +HandleLidSwitchExternalPower= +HandlePowerKey= +HandleSuspendKey= +HibernateKeyIgnoreInhibited= +HoldoffTimeoutSec= +ICON_NAME= +ID= +ID_LIKE= +IOSchedulingClass= +IOSchedulingPriority= +IPVLAN= +IdleAction= +IdleActionSec= +IgnoreSIGPIPE= +InaccessiblePaths= +InhibitDelayMaxSec= +InhibitorsMax= +Interface= +JournalSizeMax= +KEYMAP= +KEYMAP_TOGGLE= +KeepFree= +KeyringMode= +KillExcludeUsers= +KillOnlyUsers= +KillSignal= +WatchdogSignal= +KillUserProcesses= +LOCATION= +LidSwitchIgnoreInhibited= +LimitAS= +LimitCORE= +LimitCPU= +LimitDATA= +LimitFSIZE= +LimitLOCKS= +LimitMEMLOCK= +LimitMSGQUEUE= +LimitNICE= +LimitNOFILE= +LimitNPROC= +LimitRSS= +LimitRTPRIO= +LimitRTTIME= +LimitSIGPENDING= +LimitSTACK= +LineMax= +LockPersonality= +LogExtraFields= +LogLevelMax= +LogsDirectory= +LogsDirectoryMode= +MACVLAN= +MachineID= +MaxFileSec= +MaxLevelConsole= +MaxLevelKMsg= +MaxLevelStore= +MaxLevelSyslog= +MaxLevelWall= +MaxRetentionSec= +MaxUse= +MemoryDenyWriteExecute= +MountFlags= +NAME= +NAutoVTs= +Nice= +NoNewPrivileges= +NotifyReady= +OOMScoreAdjust= +Overlay= +OverlayReadOnly= +PRETTY_HOSTNAME= +PRETTY_NAME= +PRIVACY_POLICY_URL= +Parameters= +PassEnvironment= +Personality= +PivotRoot= +Port= +PowerKeyIgnoreInhibited= +Private= +PrivateDevices= +PrivateNetwork= +PrivateTmp= +PrivateUsers= +PrivateUsersChown= +ProcessSizeMax= +ProcessTwo= +ProtectControlGroups= +ProtectHome= +ProtectKernelModules= +ProtectKernelTunables= +ProtectSystem= +RateLimitBurst= +RateLimitIntervalSec= +ReadKMsg= +ReadOnly= +ReadOnlyPaths= +ReadWritePaths= +RemoveIPC= +ReserveVT= +RestrictAddressFamilies= +RestrictNamespaces= +RestrictRealtime= +RuntimeDirectory= +RuntimeDirectoryMode= +RuntimeDirectoryPreserve= +RuntimeDirectorySize= +RuntimeKeepFree= +RuntimeMaxFileSize= +RuntimeMaxFiles= +RuntimeMaxUse= +SELinuxContext= +SUPPORT_URL= +Seal= +ServerCertificateFile= +ServerKeyFile= +SessionsMax= +SmackProcessLabel= +SplitMode= +StandardError= +StandardInput= +StandardInputData= +StandardInputText= +StandardOutput= +StateDirectory= +StateDirectoryMode= +Storage= +SuspendKeyIgnoreInhibited= +SyncIntervalSec= +SyslogFacility= +SyslogIdentifier= +SyslogLevel= +SyslogLevelPrefix= +SystemCallArchitectures= +SystemCallErrorNumber= +SystemCallFilter= +SystemKeepFree= +SystemMaxFileSize= +SystemMaxFiles= +SystemMaxUse= +TTYPath= +TTYReset= +TTYVHangup= +TTYVTDisallocate= +TemporaryFileSystem= +TimerSlackNSec= +TrustedCertificateFile= +UMask= +URL= +UnsetEnvironment= +User= +UserTasksMax= +UtmpIdentifier= +UtmpMode= +VARIANT= +VARIANT_ID= +VERSION= +VERSION_CODENAME= +VERSION_ID= +VirtualEthernet= +VirtualEthernetExtra= +Volatile= +WorkingDirectory= +Zone= diff --git a/test/fuzz/fuzz-unit-file/empty.scope b/test/fuzz/fuzz-unit-file/empty.scope new file mode 100644 index 0000000000..8df7245f62 --- /dev/null +++ b/test/fuzz/fuzz-unit-file/empty.scope @@ -0,0 +1,2 @@ +scope +[Scope] diff --git a/test/fuzz/fuzz-unit-file/machine.slice b/test/fuzz/fuzz-unit-file/machine.slice new file mode 100644 index 0000000000..bf8c6bfc3e --- /dev/null +++ b/test/fuzz/fuzz-unit-file/machine.slice @@ -0,0 +1,14 @@ +slice +# SPDX-License-Identifier: LGPL-2.1+ +# +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Virtual Machine and Container Slice +Documentation=man:systemd.special(7) +Before=slices.target diff --git a/test/fuzz/fuzz-unit-file/proc-sys-fs-binfmt_misc.automount b/test/fuzz/fuzz-unit-file/proc-sys-fs-binfmt_misc.automount new file mode 100644 index 0000000000..777a123ef4 --- /dev/null +++ b/test/fuzz/fuzz-unit-file/proc-sys-fs-binfmt_misc.automount @@ -0,0 +1,21 @@ +automount +# SPDX-License-Identifier: LGPL-2.1+ +# +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Arbitrary Executable File Formats File System Automount Point +Documentation=https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html +Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems +DefaultDependencies=no +Before=sysinit.target +ConditionPathExists=/proc/sys/fs/binfmt_misc/ +ConditionPathIsReadWrite=/proc/sys/ + +[Automount] +Where=/proc/sys/fs/binfmt_misc diff --git a/test/fuzz/fuzz-unit-file/syslog.socket b/test/fuzz/fuzz-unit-file/syslog.socket new file mode 100644 index 0000000000..2eb316fcaa --- /dev/null +++ b/test/fuzz/fuzz-unit-file/syslog.socket @@ -0,0 +1,117 @@ +socket +# SPDX-License-Identifier: LGPL-2.1+ +# +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Syslog Socket +Documentation=man:systemd.special(7) +Documentation=https://www.freedesktop.org/wiki/Software/systemd/syslog +DefaultDependencies=no +Before=sockets.target + +# Don't allow logging until the very end +Conflicts=shutdown.target +Before=shutdown.target + +# Don't try to activate syslog.service if sysinit.target has failed. +Conflicts=emergency.service +Before=emergency.service + +[Socket] +ListenDatagram=/run/systemd/journal/syslog +SocketMode=0666 +PassCredentials=yes +PassSecurity=yes +ReceiveBuffer=8M + +# The default syslog implementation should make syslog.service a +# symlink to itself, so that this socket activates the right actual +# syslog service. +# +# Examples: +# +# /etc/systemd/system/syslog.service -> /lib/systemd/system/rsyslog.service +# /etc/systemd/system/syslog.service -> /lib/systemd/system/syslog-ng.service +# +# Best way to achieve that is by adding this to your unit file +# (i.e. to rsyslog.service or syslog-ng.service): +# +# [Install] +# Alias=syslog.service +# +# See https://www.freedesktop.org/wiki/Software/systemd/syslog for details. + +[Socket] +ListenStream=1.2.3.4:1234 +ListenDatagram=1.2.3.4:1234 +ListenSequentialPacket=1.2.3.4:1234 +ListenFIFO= +ListenSpecial= +#ListenNetlink= +ListenMessageQueue= +ListenUSBFunction= +SocketProtocol=udplite +SocketProtocol=sctp +SocketProtocol= +BindIPv6Only=false +Backlog=33 +BindToDevice=eth0 +SocketUser=daemon +SocketGroup=nobody +SocketMode=0111 +DirectoryMode=0555 +Accept=true +Accept=false +Writable=true +MaxConnections=11 +MaxConnectionsPerSource=12 +KeepAlive=yes +KeepAliveTimeSec=12345 +KeepAliveIntervalSec=12345 +KeepAliveProbes=12345 +NoDelay=true +Priority=0 +DeferAcceptSec=1 +ReceiveBuffer=1G +SendBuffer=1G +IPTOS=low-delay +IPTOS=throughput +IPTOS=reliability +IPTOS=low-cost +IPTOS= +IPTTL=7 +Mark=123 +ReusePort=true +SmackLabel=smack-label +SmackLabelIPIn=smack-label +SmackLabelIPOut=no idea what to put here +SELinuxContextFromNet=true +PipeSize=11111 +MessageQueueMaxMessages=200 +MessageQueueMessageSize=200 +FreeBind=false +Transparent=true +Broadcast=true +PassCredentials=true +PassSecurity=true +TCPCongestion=westwood +TCPCongestion=veno +TCPCongestion=cubic +TCPCongestion=lp +ExecStartPre=/bin/true "arg ' ' " +ExecStartPost=-!!/bin/false +ExecStopPre=/bin/true +ExecStopPost=-!!/bin/false +TimeoutSec=2343 +Symlinks=a b c d e +Symlinks= +Symlinks=/a /b /c /d /e +FileDescriptorName=name +TriggerLimitIntervalSec=2343 +TriggerLimitBurst=234 diff --git a/test/fuzz/fuzz-unit-file/systemd-ask-password-console.path b/test/fuzz/fuzz-unit-file/systemd-ask-password-console.path new file mode 100644 index 0000000000..3e12c752de --- /dev/null +++ b/test/fuzz/fuzz-unit-file/systemd-ask-password-console.path @@ -0,0 +1,22 @@ +path +# SPDX-License-Identifier: LGPL-2.1+ +# +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Dispatch Password Requests to Console Directory Watch +Documentation=man:systemd-ask-password-console.service(8) +DefaultDependencies=no +Conflicts=shutdown.target +After=plymouth-start.service +Before=paths.target shutdown.target cryptsetup.target +ConditionPathExists=!/run/plymouth/pid + +[Path] +DirectoryNotEmpty=/run/systemd/ask-password +MakeDirectory=yes diff --git a/test/fuzz/fuzz-unit-file/systemd-machined.service b/test/fuzz/fuzz-unit-file/systemd-machined.service new file mode 100644 index 0000000000..448f062ecf --- /dev/null +++ b/test/fuzz/fuzz-unit-file/systemd-machined.service @@ -0,0 +1,34 @@ +service +# SPDX-License-Identifier: LGPL-2.1+ +# +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Virtual Machine and Container Registration Service +Documentation=man:systemd-machined.service(8) +Documentation=https://www.freedesktop.org/wiki/Software/systemd/machined +Wants=machine.slice +After=machine.slice +RequiresMountsFor=/var/lib/machines + +[Service] +ExecStart=/usr/lib/systemd/systemd-machined +BusName=org.freedesktop.machine1 +WatchdogSec=3min +CapabilityBoundingSet=CAP_KILL CAP_SYS_PTRACE CAP_SYS_ADMIN CAP_SETGID CAP_SYS_CHROOT CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE CAP_CHOWN CAP_FOWNER CAP_FSETID CAP_MKNOD +MemoryDenyWriteExecute=yes +RestrictRealtime=yes +RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6 +SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @obsolete @raw-io @reboot @swap +SystemCallArchitectures=native +LockPersonality=yes +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. diff --git a/test/fuzz/fuzz-unit-file/systemd-resolved.service b/test/fuzz/fuzz-unit-file/systemd-resolved.service new file mode 100644 index 0000000000..0854c5f841 --- /dev/null +++ b/test/fuzz/fuzz-unit-file/systemd-resolved.service @@ -0,0 +1,50 @@ +service +# SPDX-License-Identifier: LGPL-2.1+ +# +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Network Name Resolution +Documentation=man:systemd-resolved.service(8) +Documentation=https://www.freedesktop.org/wiki/Software/systemd/resolved +Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers +Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients +DefaultDependencies=no +After=systemd-sysusers.service systemd-networkd.service +Before=network.target nss-lookup.target shutdown.target +Conflicts=shutdown.target +Wants=nss-lookup.target + +[Service] +Type=notify +Restart=always +RestartSec=0 +ExecStart=!!/usr/lib/systemd/systemd-resolved +WatchdogSec=3min +User=systemd-resolve +CapabilityBoundingSet=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE +AmbientCapabilities=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE +PrivateTmp=yes +PrivateDevices=yes +ProtectSystem=strict +ProtectHome=yes +ProtectControlGroups=yes +ProtectKernelTunables=yes +ProtectKernelModules=yes +MemoryDenyWriteExecute=yes +RestrictRealtime=yes +RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6 +SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap +SystemCallArchitectures=native +LockPersonality=yes +RuntimeDirectory=systemd/resolve +RuntimeDirectoryPreserve=yes + +[Install] +WantedBy=multi-user.target +Alias=dbus-org.freedesktop.resolve1.service diff --git a/test/fuzz/fuzz-unit-file/systemd-tmpfiles-clean.timer b/test/fuzz/fuzz-unit-file/systemd-tmpfiles-clean.timer new file mode 100644 index 0000000000..7db361cd69 --- /dev/null +++ b/test/fuzz/fuzz-unit-file/systemd-tmpfiles-clean.timer @@ -0,0 +1,40 @@ +timer +# SPDX-License-Identifier: LGPL-2.1+ +[Unit] +Description=Daily Cleanup of Temporary Directories +Documentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8) + +[Timer] +OnBootSec=15min +OnUnitActiveSec=1d +OnBootSec=1s +OnStartupSec=234 +OnUnitActiveSec=2y +OnUnitInactiveSec=23434 +OnCalendar=minutely +OnCalendar=*-*-* *:*:00 +OnCalendar=hourly +OnCalendar=*-*-* *:00:00 +OnCalendar=daily +OnCalendar=*-*-* 00:00:00 +OnCalendar=monthly +OnCalendar=*-*-01 00:00:00 +OnCalendar=weekly +OnCalendar=Mon *-*-* 00:00:00 +OnCalendar=yearly +OnCalendar=*-01-01 00:00:00 +OnCalendar=quarterly +OnCalendar=*-01,04,07,10-01 00:00:00 +OnCalendar=semiannually +OnCalendar=*-01,07-01 00:00:00 +OnCalendar=Fri 2012-11-23 11:12:13 + +Persistent=true +AccuracySec=24h +RandomizedDelaySec=234234234 + +Persistent=no +Unit=foo.service + +WakeSystem=false +RemainAfterElapse=true diff --git a/test/fuzz/fuzz-unit-file/timers.target b/test/fuzz/fuzz-unit-file/timers.target new file mode 100644 index 0000000000..171226c680 --- /dev/null +++ b/test/fuzz/fuzz-unit-file/timers.target @@ -0,0 +1,16 @@ +target +# SPDX-License-Identifier: LGPL-2.1+ +# +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Timers +Documentation=man:systemd.special(7) + +DefaultDependencies=no +Conflicts=shutdown.target diff --git a/test/fuzz/fuzz-unit-file/var-lib-machines.mount b/test/fuzz/fuzz-unit-file/var-lib-machines.mount new file mode 100644 index 0000000000..9c257d1191 --- /dev/null +++ b/test/fuzz/fuzz-unit-file/var-lib-machines.mount @@ -0,0 +1,19 @@ +mount +# SPDX-License-Identifier: LGPL-2.1+ +# +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Virtual Machine and Container Storage +ConditionPathExists=/var/lib/machines.raw + +[Mount] +What=/var/lib/machines.raw +Where=/var/lib/machines +Type=btrfs +Options=loop |