1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-24 14:50:17 +03:00

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-17 18:07:22 +02:00
parent 010b5f35f3
commit 22d3cfe54c
595 changed files with 611 additions and 24 deletions

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for AmbientCapabilities

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for AmbientCapabilities

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for AmbientCapabilities (daemon)

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for AmbientCapabilities

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for AmbientCapabilities

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for AmbientCapabilities (daemon)

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for basic execution
ConditionKernelVersion=">=3.0"

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for BindPaths= and BindReadOnlyPaths=

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for CapabilityBoundingSet

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for CapabilityBoundingSet

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for CapabilityBoundingSet

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for CapabilityBoundingSet

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for exec condition that fails the unit

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for exec condition that triggers skipping

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for CPUAffinity (simple)

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for CPUAffinity (reset)

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for CPUAffinity (merge)

View File

@ -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.

View File

@ -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.

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test DynamicUser with User= and SupplementaryGroups=

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test DynamicUser with User=

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for RuntimeDirectory with RuntimeDirectoryPreserve=yes and DynamicUser=yes

View File

@ -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

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for RuntimeDirectory with DynamicUser=yes migrated from RuntimeDirectoryPreserve=yes

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test DynamicUser= migrate StateDirectory= (preparation)

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test DynamicUser= migrate StateDirectory=

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test DynamicUser= with StateDirectory=

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test DynamicUser with SupplementaryGroups=

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Environment

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Environment

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for No Environment Variable Substitution

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Environment

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for EnvironmentFile

View File

@ -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

View File

@ -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

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for ExecSearchPath with EnvironmentFile where EnvironmentFile sets PATH

View File

@ -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

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PassEnvironment with ExecSearchPath with PATH set by user

View File

@ -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

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for specifiers with exec search path

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Service]
ExecStart=ls_temp
Type=oneshot

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Group

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Group

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Group

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Group (daemon)

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for IgnoreSIGPIPE=no

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for IgnoreSIGPIPE=yes

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test to make sure that InaccessiblePaths= disconnect mount propagation

View File

@ -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

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for IOSchedulingClass=best-effort

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for IOSchedulingClass=idle

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for IOSchedulingClass=none

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for IOSchedulingClass=realtime

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for find_executable() with MountAPIVFS=no

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for NoExecPaths=

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for OOMScoreAdjust

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for OOMScoreAdjust

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PassEnvironment with variables absent from the execution environment

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PassEnvironment and erasing the variable list

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PassEnvironment with a variable name repeated

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PassEnvironment

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Personality=aarch64

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Personality=ppc64

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Personality=ppc64le

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Personality=s390

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Personality=x86-64

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Personality=x86

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PrivateDevices=yes with prefix

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test CAP_MKNOD capability for PrivateDevices=no

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test CAP_SYS_RAWIO capability for PrivateDevices=no

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PrivateDevices=no

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test CAP_MKNOD capability for PrivateDevices=yes

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test CAP_SYS_RAWIO capability for PrivateDevices=yes

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test Group=group is applied after PrivateDevices=yes

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PrivateDevices=yes

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PrivateNetwork

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PrivateTmp=yes with prefix

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PrivateTmp=no

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PrivateTmp=yes

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test ProtectHome=tmpfs vs ProtectSystem=strict
# Test for #11276

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test CAP_SYSLOG for ProtectKernelLogs=no

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test CAP_SYSLOG for ProtectKernelLogs=yes

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test CAP_SYS_MODULE ProtectKernelModules=no

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test CAP_SYS_MODULE for ProtectKernelModules=yes

View File

@ -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

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test to make sure that passing ReadOnlyPaths= disconnect mount propagation

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for ReadOnlyPaths=

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for ReadOnlyPaths=

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for ReadOnlyPaths=

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test to make sure that passing ReadWritePaths= disconnect mount propagation

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test merging RestrictNamespaces= with all flags

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test merging RestrictNamespaces= with AND

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test merging RestrictNamespaces= with OR

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test RestrictNamespaces=~mnt

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test RestrictNamespaces=mnt

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test RestrictNamespaces=no

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test RestrictNamespaces=yes

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for RuntimeDirectoryMode

View File

@ -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)

View File

@ -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