tests: add spdx license header to test unit/link/network/conf files

Those are all consumed by our parser, so they all support comments.
I was considering whether they should have a license header at all,
but in the end I decided to add it because those files are often created
by copying parts of real unit files. And if the real ones have a license,
then those might as well. It's easier to add it than to make an exception.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2021-10-18 09:04:45 +02:00
parent 010b5f35f3
commit 22d3cfe54c
595 changed files with 611 additions and 24 deletions
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for AmbientCapabilities
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for AmbientCapabilities
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for AmbientCapabilities (daemon)
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for AmbientCapabilities
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for AmbientCapabilities
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for AmbientCapabilities (daemon)
+1
View File
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for basic execution
ConditionKernelVersion=">=3.0"
+1
View File
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for BindPaths= and BindReadOnlyPaths=
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for CapabilityBoundingSet
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for CapabilityBoundingSet
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for CapabilityBoundingSet
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for CapabilityBoundingSet
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for exec condition that fails the unit
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for exec condition that triggers skipping
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for CPUAffinity (simple)
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for CPUAffinity (reset)
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for CPUAffinity (merge)
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test DynamicUser with static User= whose uid and gid are different
# On Fedora, user adm has uid==3 and gid==4.
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test DynamicUser with static User= whose uid and gid are different
# On Ubuntu or Debian, user games has uid==5 and gid==60.
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test DynamicUser with User= and SupplementaryGroups=
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test DynamicUser with User=
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for RuntimeDirectory with RuntimeDirectoryPreserve=yes and DynamicUser=yes
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for RuntimeDirectory with RuntimeDirectoryPreserve=yes and DynamicUser=yes 2nd trial
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for RuntimeDirectory with DynamicUser=yes migrated from RuntimeDirectoryPreserve=yes
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test DynamicUser= migrate StateDirectory= (preparation)
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test DynamicUser= migrate StateDirectory=
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test DynamicUser= with StateDirectory=
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test DynamicUser with SupplementaryGroups=
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Environment
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Environment
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for No Environment Variable Substitution
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Environment
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for EnvironmentFile
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Service]
ExecStart=/bin/sh -x -c 'test "$$PATH" = "/usr" && test "$$VAR1" = word3 && test "$$VAR2" = "\\$$word 5 6"'
Type=oneshot
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Service]
ExecStart=/bin/sh -x -c 'test "$$VAR1" = "word1 word2" && test "$$VAR2" = word3 && test "$$VAR3" = "\\$$word 5 6" && test "$$PATH" = "/tmp:/bin"'
Type=oneshot
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for ExecSearchPath with EnvironmentFile where EnvironmentFile sets PATH
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for ExecSearchPath with EnvironmentFile where EnvironmentFile does not set PATH
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PassEnvironment with ExecSearchPath with PATH set by user
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PassEnvironment with ExecSearchPath with PATH not set by user
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for specifiers with exec search path
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Service]
ExecStart=ls_temp
Type=oneshot
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Group
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Group
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Group
+1
View File
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Group (daemon)
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for IgnoreSIGPIPE=no
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for IgnoreSIGPIPE=yes
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test to make sure that InaccessiblePaths= disconnect mount propagation
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test to make sure that mount namespace setup works properly with the 'InaccessiblePaths=/proc' option
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for IOSchedulingClass=best-effort
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for IOSchedulingClass=idle
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for IOSchedulingClass=none
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for IOSchedulingClass=realtime
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for find_executable() with MountAPIVFS=no
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for NoExecPaths=
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for OOMScoreAdjust
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for OOMScoreAdjust
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PassEnvironment with variables absent from the execution environment
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PassEnvironment and erasing the variable list
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PassEnvironment with a variable name repeated
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PassEnvironment
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Personality=aarch64
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Personality=ppc64
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Personality=ppc64le
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Personality=s390
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Personality=x86-64
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Personality=x86
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PrivateDevices=yes with prefix
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test CAP_MKNOD capability for PrivateDevices=no
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test CAP_SYS_RAWIO capability for PrivateDevices=no
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PrivateDevices=no
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test CAP_MKNOD capability for PrivateDevices=yes
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test CAP_SYS_RAWIO capability for PrivateDevices=yes
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test Group=group is applied after PrivateDevices=yes
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PrivateDevices=yes
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PrivateNetwork
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PrivateTmp=yes with prefix
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PrivateTmp=no
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PrivateTmp=yes
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test ProtectHome=tmpfs vs ProtectSystem=strict
# Test for #11276
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test CAP_SYSLOG for ProtectKernelLogs=no
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test CAP_SYSLOG for ProtectKernelLogs=yes
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test CAP_SYS_MODULE ProtectKernelModules=no
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test CAP_SYS_MODULE for ProtectKernelModules=yes
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test to make sure that passing ProtectKernelModules=yes disconnect mount propagation
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test to make sure that passing ReadOnlyPaths= disconnect mount propagation
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for ReadOnlyPaths=
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for ReadOnlyPaths=
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for ReadOnlyPaths=
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test to make sure that passing ReadWritePaths= disconnect mount propagation
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test merging RestrictNamespaces= with all flags
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test merging RestrictNamespaces= with AND
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test merging RestrictNamespaces= with OR
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test RestrictNamespaces=~mnt
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test RestrictNamespaces=mnt
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test RestrictNamespaces=no
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test RestrictNamespaces=yes
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for RuntimeDirectoryMode
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for RuntimeDirectory owner (must not be the default group of the user if Group is set)
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for RuntimeDirectory owner (must not be the default group of the user if Group is set)

Some files were not shown because too many files have changed in this diff Show More