From: Stéphane Graber Date: Tue, 2 Apr 2024 22:24:10 +0000 (-0400) Subject: src/tests: Add SPDX headers X-Git-Tag: v6.0.0~1^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bc33ef6ee3300be8141d243ee56458b177d58f4;p=thirdparty%2Flxc.git src/tests: Add SPDX headers Signed-off-by: Stéphane Graber --- diff --git a/src/tests/aa.c b/src/tests/aa.c index 417f3fc23..5002beeaf 100644 --- a/src/tests/aa.c +++ b/src/tests/aa.c @@ -1,20 +1,7 @@ /* liblxcapi * - * Copyright © 2014 Serge Hallyn . - * Copyright © 2014 Canonical Ltd. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/api_reboot.c b/src/tests/api_reboot.c index 2ab6872ad..31533b025 100644 --- a/src/tests/api_reboot.c +++ b/src/tests/api_reboot.c @@ -1,19 +1,7 @@ /* liblxcapi * - * Copyright © 2017 Christian Brauner . + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/arch_parse.c b/src/tests/arch_parse.c index f8b4d8a0a..33b05858d 100644 --- a/src/tests/arch_parse.c +++ b/src/tests/arch_parse.c @@ -1,19 +1,7 @@ /* liblxcapi * - * Copyright © 2021 Christian Brauner . + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/attach.c b/src/tests/attach.c index b695df35b..72be1ef25 100644 --- a/src/tests/attach.c +++ b/src/tests/attach.c @@ -1,22 +1,7 @@ /* liblxcapi * - * Copyright © 2013 Oracle. + * SPDX-License-Identifier: GPL-2.0-only * - * Authors: - * Dwight Engen - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/basic.c b/src/tests/basic.c index a691ca751..08a2d4afd 100644 --- a/src/tests/basic.c +++ b/src/tests/basic.c @@ -1,20 +1,7 @@ /* liblxcapi * - * Copyright © 2018 Christian Brauner . - * Copyright © 2018 Canonical Ltd. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/capabilities.c b/src/tests/capabilities.c index 57049423a..0c1f07263 100644 --- a/src/tests/capabilities.c +++ b/src/tests/capabilities.c @@ -1,19 +1,7 @@ /* liblxcapi * - * Copyright © 2021 Christian Brauner . + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/cgpath.c b/src/tests/cgpath.c index aff10b46d..1b1998233 100644 --- a/src/tests/cgpath.c +++ b/src/tests/cgpath.c @@ -1,20 +1,7 @@ /* liblxcapi * - * Copyright © 2012 Serge Hallyn . - * Copyright © 2012 Canonical Ltd. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/clonetest.c b/src/tests/clonetest.c index 00e81fe1a..741300259 100644 --- a/src/tests/clonetest.c +++ b/src/tests/clonetest.c @@ -1,20 +1,7 @@ /* liblxcapi * - * Copyright © 2012 Serge Hallyn . - * Copyright © 2012 Canonical Ltd. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/concurrent.c b/src/tests/concurrent.c index 83ef393f4..fc9a579a0 100644 --- a/src/tests/concurrent.c +++ b/src/tests/concurrent.c @@ -1,19 +1,7 @@ /* concurrent.c * - * Copyright © 2013 S.Çağlar Onur + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/config_jump_table.c b/src/tests/config_jump_table.c index cc975a625..261c4cf1a 100644 --- a/src/tests/config_jump_table.c +++ b/src/tests/config_jump_table.c @@ -1,20 +1,7 @@ /* liblxcapi * - * Copyright © 2017 Christian Brauner . - * Copyright © 2017 Canonical Ltd. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/console.c b/src/tests/console.c index f34c96bf5..37ed65f40 100644 --- a/src/tests/console.c +++ b/src/tests/console.c @@ -1,22 +1,7 @@ /* liblxcapi * - * Copyright © 2013 Oracle. + * SPDX-License-Identifier: GPL-2.0-only * - * Authors: - * Dwight Engen - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/console_log.c b/src/tests/console_log.c index a20b90987..711a59435 100644 --- a/src/tests/console_log.c +++ b/src/tests/console_log.c @@ -1,19 +1,7 @@ /* liblxcapi * - * Copyright © 2017 Christian Brauner . + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/containertests.c b/src/tests/containertests.c index 6da622f77..3c6b906b8 100644 --- a/src/tests/containertests.c +++ b/src/tests/containertests.c @@ -1,20 +1,7 @@ /* liblxcapi * - * Copyright © 2012 Serge Hallyn . - * Copyright © 2012 Canonical Ltd. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/createtest.c b/src/tests/createtest.c index 5719d55a6..07f023afa 100644 --- a/src/tests/createtest.c +++ b/src/tests/createtest.c @@ -1,20 +1,7 @@ /* liblxcapi * - * Copyright © 2012 Serge Hallyn . - * Copyright © 2012 Canonical Ltd. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/criu_check_feature.c b/src/tests/criu_check_feature.c index c1b19c35b..282cb0fd6 100644 --- a/src/tests/criu_check_feature.c +++ b/src/tests/criu_check_feature.c @@ -1,19 +1,7 @@ /* liblxcapi * - * Copyright © 2017 Adrian Reber + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/cve-2019-5736.c b/src/tests/cve-2019-5736.c index c0cb4bc41..2025f9e47 100644 --- a/src/tests/cve-2019-5736.c +++ b/src/tests/cve-2019-5736.c @@ -1,20 +1,7 @@ /* liblxcapi * - * Copyright © 2019 Christian Brauner . - * Copyright © 2019 Canonical Ltd. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/destroytest.c b/src/tests/destroytest.c index 591a52b3b..125ccec45 100644 --- a/src/tests/destroytest.c +++ b/src/tests/destroytest.c @@ -1,20 +1,7 @@ /* liblxcapi * - * Copyright © 2012 Serge Hallyn . - * Copyright © 2012 Canonical Ltd. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/device_add_remove.c b/src/tests/device_add_remove.c index da6f53654..8151796a5 100644 --- a/src/tests/device_add_remove.c +++ b/src/tests/device_add_remove.c @@ -1,19 +1,7 @@ /* DEVICE_add_remove.c * - * Copyright © 2014 S.Çağlar Onur + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/fuzz-lxc-cgroup-init.c b/src/tests/fuzz-lxc-cgroup-init.c index ab3087ef5..526da7f00 100644 --- a/src/tests/fuzz-lxc-cgroup-init.c +++ b/src/tests/fuzz-lxc-cgroup-init.c @@ -1,4 +1,6 @@ -/* SPDX-License-Identifier: LGPL-2.1+ */ +/* + * SPDX-License-Identifier: LGPL-2.1+ + */ #include "config.h" diff --git a/src/tests/fuzz-lxc-config-read.c b/src/tests/fuzz-lxc-config-read.c index 41c5d533e..99375ee7f 100644 --- a/src/tests/fuzz-lxc-config-read.c +++ b/src/tests/fuzz-lxc-config-read.c @@ -1,4 +1,6 @@ -/* SPDX-License-Identifier: LGPL-2.1+ */ +/* + * SPDX-License-Identifier: LGPL-2.1+ + */ #include "config.h" diff --git a/src/tests/fuzz-lxc-define-load.c b/src/tests/fuzz-lxc-define-load.c index 5a39fc949..fb39ef98a 100644 --- a/src/tests/fuzz-lxc-define-load.c +++ b/src/tests/fuzz-lxc-define-load.c @@ -1,4 +1,6 @@ -/* SPDX-License-Identifier: LGPL-2.1+ */ +/* + * SPDX-License-Identifier: LGPL-2.1+ + */ #include "config.h" diff --git a/src/tests/get_item.c b/src/tests/get_item.c index a3ac188f5..9e74f8a23 100644 --- a/src/tests/get_item.c +++ b/src/tests/get_item.c @@ -1,20 +1,7 @@ /* liblxcapi * - * Copyright © 2012 Serge Hallyn . - * Copyright © 2012 Canonical Ltd. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/getkeys.c b/src/tests/getkeys.c index f718fe99e..2433c1780 100644 --- a/src/tests/getkeys.c +++ b/src/tests/getkeys.c @@ -1,20 +1,7 @@ /* liblxcapi * - * Copyright © 2012 Serge Hallyn . - * Copyright © 2012 Canonical Ltd. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/list.c b/src/tests/list.c index 7ba2cb002..85907e5e5 100644 --- a/src/tests/list.c +++ b/src/tests/list.c @@ -1,20 +1,7 @@ /* list.c * - * Copyright © 2013 Canonical, Inc - * Author: Serge Hallyn + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/locktests.c b/src/tests/locktests.c index f7eb3ad5c..92d4f1d18 100644 --- a/src/tests/locktests.c +++ b/src/tests/locktests.c @@ -1,20 +1,7 @@ /* liblxcapi * - * Copyright © 2012 Serge Hallyn . - * Copyright © 2012 Canonical Ltd. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/lxc-test-apparmor-generated b/src/tests/lxc-test-apparmor-generated index 15b6a1128..854cedba8 100755 --- a/src/tests/lxc-test-apparmor-generated +++ b/src/tests/lxc-test-apparmor-generated @@ -1,23 +1,11 @@ #!/bin/sh +# SPDX-License-Identifier: LGPL-2.1+ + # lxc: linux Container library # This is a test script for generated apparmor profiles -# This library 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. - -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. - -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - if ! command -v apparmor_parser >/dev/null 2>&1; then echo 'SKIP: test for generated apparmor profiles: apparmor_parser missing' fi diff --git a/src/tests/lxc-test-apparmor-mount b/src/tests/lxc-test-apparmor-mount index ddf783d4b..b8bedf07b 100755 --- a/src/tests/lxc-test-apparmor-mount +++ b/src/tests/lxc-test-apparmor-mount @@ -1,26 +1,12 @@ #!/bin/sh +# SPDX-License-Identifier: LGPL-2.1+ + # apparmor_mount: test proper handling of apparmor in kernels # without mount features # These require the ubuntu lxc package to be installed. -# This program 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. - -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. - -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -# This test assumes an Ubuntu host - set -e # Only run on a normally configured ubuntu lxc system diff --git a/src/tests/lxc-test-automount b/src/tests/lxc-test-automount index 6434ffe43..ee3eb7f12 100755 --- a/src/tests/lxc-test-automount +++ b/src/tests/lxc-test-automount @@ -1,23 +1,8 @@ #!/bin/bash -# lxc: linux Container library - -# Authors: -# Serge Hallyn - -# This library 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. +# SPDX-License-Identifier: LGPL-2.1+ -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. - -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# lxc: linux Container library # At the moment this only tests cgroup automount. Testing proc and # sys automounts would be worthwhile. diff --git a/src/tests/lxc-test-autostart b/src/tests/lxc-test-autostart index cf0c5c720..6bb0cdaaa 100755 --- a/src/tests/lxc-test-autostart +++ b/src/tests/lxc-test-autostart @@ -1,25 +1,8 @@ #!/bin/sh -# lxc: linux Container library - -# Authors: -# Stéphane Graber -# -# This is a test script for lxc-autostart - -# This library 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. +# SPDX-License-Identifier: LGPL-2.1+ -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. - -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# lxc: linux Container library DONE=0 cleanup() { diff --git a/src/tests/lxc-test-checkpoint-restore b/src/tests/lxc-test-checkpoint-restore index 9498c126e..21f9b7c65 100755 --- a/src/tests/lxc-test-checkpoint-restore +++ b/src/tests/lxc-test-checkpoint-restore @@ -1,5 +1,7 @@ #!/bin/sh +# SPDX-License-Identifier: LGPL-2.1+ + # Do an end to end checkpoint and restore with criu. set -e diff --git a/src/tests/lxc-test-cloneconfig b/src/tests/lxc-test-cloneconfig index 29a02b844..97275ccb0 100755 --- a/src/tests/lxc-test-cloneconfig +++ b/src/tests/lxc-test-cloneconfig @@ -1,25 +1,8 @@ #!/bin/bash -# lxc: linux Container library - -# Authors: -# Serge Hallyn -# -# This is a test script for the lxc-user-nic program - -# This library 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. +# SPDX-License-Identifier: LGPL-2.1+ -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. - -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# lxc: linux Container library set -e diff --git a/src/tests/lxc-test-createconfig b/src/tests/lxc-test-createconfig index 9bbdced0e..dc40c10ad 100755 --- a/src/tests/lxc-test-createconfig +++ b/src/tests/lxc-test-createconfig @@ -1,26 +1,11 @@ #!/bin/bash -# lxc: linux Container library +# SPDX-License-Identifier: LGPL-2.1+ -# Authors: -# Serge Hallyn +# lxc: linux Container library # # This is a test script for the lxc-user-nic program -# This library 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. - -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. - -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - set -e s=$(mktemp -d /tmp/lxctest-XXXXXX) diff --git a/src/tests/lxc-test-exit-code b/src/tests/lxc-test-exit-code index b74ab082d..9d61b2fc0 100755 --- a/src/tests/lxc-test-exit-code +++ b/src/tests/lxc-test-exit-code @@ -1,27 +1,8 @@ #!/bin/sh -# lxc: linux Container library +# SPDX-License-Identifier: LGPL-2.1+ -# Authors: -# Florian Margaine -# -# This is a test script for the lxc-attach and lxc-execute -# programs. It tests whether the exit code is not 0 when a script -# fails to execute. - -# This library 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. - -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. - -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# lxc: linux Container library set -e diff --git a/src/tests/lxc-test-lxc-attach b/src/tests/lxc-test-lxc-attach index 374a36383..49289df5d 100755 --- a/src/tests/lxc-test-lxc-attach +++ b/src/tests/lxc-test-lxc-attach @@ -1,26 +1,8 @@ #!/bin/sh -# lxc: linux Container library +# SPDX-License-Identifier: LGPL-2.1+ -# Authors: -# Christian Brauner -# -# This is a test script for the lxc-attach program. It tests whether I/O -# redirection and pty allocation works correctly. - -# This library 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. - -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. - -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# lxc: linux Container library set -e diff --git a/src/tests/lxc-test-no-new-privs b/src/tests/lxc-test-no-new-privs index 64988a011..0d8bc220d 100755 --- a/src/tests/lxc-test-no-new-privs +++ b/src/tests/lxc-test-no-new-privs @@ -1,26 +1,11 @@ #!/bin/bash +# SPDX-License-Identifier: LGPL-2.1+ + # lxc: linux Container library -# Authors: -# Christian Brauner -# # This is a test script for PR_SET_NO_NEW_PRIVS -# This library 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. - -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. - -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - set -eux DONE=0 diff --git a/src/tests/lxc-test-procsys b/src/tests/lxc-test-procsys index 5e48bbeda..ca84dd9d6 100755 --- a/src/tests/lxc-test-procsys +++ b/src/tests/lxc-test-procsys @@ -1,27 +1,12 @@ #!/bin/bash +# SPDX-License-Identifier: LGPL-2.1+ + # lxc: linux Container library -# Authors: -# Motiejus JakÅ¡tys -# # Ensure that when /proc and/or /sys do not exist in the container, # it is started successfully anyway. -# This library 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. - -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. - -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - set -ex FAIL() { echo -n "Failed " >&2 diff --git a/src/tests/lxc-test-rootfs b/src/tests/lxc-test-rootfs index 5b2c7921c..9deaf18a4 100755 --- a/src/tests/lxc-test-rootfs +++ b/src/tests/lxc-test-rootfs @@ -1,23 +1,8 @@ #!/bin/bash -# lxc: linux Container library - -# Authors: -# Feng Li - -# This library 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. +# SPDX-License-Identifier: LGPL-2.1+ -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. - -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# lxc: linux Container library set -ex diff --git a/src/tests/lxc-test-snapdeps b/src/tests/lxc-test-snapdeps index 7de83550a..5e6ea998c 100755 --- a/src/tests/lxc-test-snapdeps +++ b/src/tests/lxc-test-snapdeps @@ -1,9 +1,8 @@ #!/bin/bash -# lxc: linux Container library +# SPDX-License-Identifier: LGPL-2.1+ -# Authors: -# Serge Hallyn +# lxc: linux Container library # # This is a test for dependency between snapshots # @@ -11,20 +10,6 @@ # we record it as such, because c1 cannot be deleted until c2 is # deleted. Once c2 is deleted, c1 should be delete-able. -# This library 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. - -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. - -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - # This test assumes an Ubuntu host set -e diff --git a/src/tests/lxc-test-symlink b/src/tests/lxc-test-symlink index 4e05ead75..8cc2f3e5c 100755 --- a/src/tests/lxc-test-symlink +++ b/src/tests/lxc-test-symlink @@ -1,14 +1,11 @@ #!/bin/bash -set -ex - -# lxc: linux Container library +# SPDX-License-Identifier: LGPL-2.1+ -# Authors: -# Serge Hallyn -# # This is a regression test for symbolic links +set -ex + dirname=$(mktemp -d) fname=$(mktemp) fname2=$(mktemp) diff --git a/src/tests/lxc-test-unpriv b/src/tests/lxc-test-unpriv index 426add9da..8abc3e0ad 100755 --- a/src/tests/lxc-test-unpriv +++ b/src/tests/lxc-test-unpriv @@ -1,26 +1,11 @@ #!/bin/bash -# lxc: linux Container library +# SPDX-License-Identifier: LGPL-2.1+ -# Authors: -# Serge Hallyn +# lxc: linux Container library # # This is a test script for unprivileged containers - -# This library 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. - -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. - -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - +# # This test assumes an Ubuntu host if [ $(id -u) -ne 0 ]; then diff --git a/src/tests/lxc-test-usernic.in b/src/tests/lxc-test-usernic.in index d9cb4bcd1..cda46d8f3 100755 --- a/src/tests/lxc-test-usernic.in +++ b/src/tests/lxc-test-usernic.in @@ -1,26 +1,11 @@ #!/bin/bash -# lxc: linux Container library +# SPDX-License-Identifier: LGPL-2.1+ -# Authors: -# Serge Hallyn +# lxc: linux Container library # # This is a test script for the lxc-user-nic program - -# This library 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. - -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. - -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - +# # This test assumes an Ubuntu host DONE=0 diff --git a/src/tests/lxc-test-usernsexec b/src/tests/lxc-test-usernsexec index d1fc81a58..e535462d9 100755 --- a/src/tests/lxc-test-usernsexec +++ b/src/tests/lxc-test-usernsexec @@ -1,4 +1,7 @@ #!/bin/bash + +# SPDX-License-Identifier: LGPL-2.1+ + # # This is a bash test case to test lxc-usernsexec. # It basically supports usring lxc-usernsexec to execute itself diff --git a/src/tests/lxc-test-utils.c b/src/tests/lxc-test-utils.c index 0b9fccb39..e3a79ebaf 100644 --- a/src/tests/lxc-test-utils.c +++ b/src/tests/lxc-test-utils.c @@ -1,24 +1,7 @@ -/* - * lxc: linux Container library +/* lxc: linux Container library * - * Copyright © 2016 Canonical Ltd. + * SPDX-License-Identifier: LGPL-2.1+ * - * Authors: - * Christian Brauner - * - * This program 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. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "config.h" diff --git a/src/tests/lxc_raw_clone.c b/src/tests/lxc_raw_clone.c index 1225d023d..632d52feb 100644 --- a/src/tests/lxc_raw_clone.c +++ b/src/tests/lxc_raw_clone.c @@ -1,24 +1,8 @@ /* * lxc: linux Container library * - * Copyright © 2017 Canonical Ltd. + * SPDX-License-Identifier: LGPL-2.1+ * - * Authors: - * Christian Brauner - * - * This program 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. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "config.h" diff --git a/src/tests/lxcpath.c b/src/tests/lxcpath.c index 9e87d6875..a695468bb 100644 --- a/src/tests/lxcpath.c +++ b/src/tests/lxcpath.c @@ -1,20 +1,7 @@ /* liblxcapi * - * Copyright © 2012 Serge Hallyn . - * Copyright © 2012 Canonical Ltd. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/lxctest.h b/src/tests/lxctest.h index fda2821e6..663d5bc4e 100644 --- a/src/tests/lxctest.h +++ b/src/tests/lxctest.h @@ -1,24 +1,7 @@ -/* - * lxc: linux Container library +/* lxc: linux Container library * - * Copyright © 2016 Canonical Ltd. + * SPDX-License-Identifier: LGPL-2.1+ * - * Authors: - * Christian Brauner - * - * This program 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. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef __LXC_TEST_H_ diff --git a/src/tests/may_control.c b/src/tests/may_control.c index cb5378cad..169c112c8 100644 --- a/src/tests/may_control.c +++ b/src/tests/may_control.c @@ -1,20 +1,7 @@ /* control.c * - * Copyright © 2013 Canonical, Inc - * Author: Serge Hallyn + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/mount_injection.c b/src/tests/mount_injection.c index 59d23c8dd..e9db05d52 100644 --- a/src/tests/mount_injection.c +++ b/src/tests/mount_injection.c @@ -1,19 +1,7 @@ /* mount_injection * - * Copyright © 2018 Elizaveta Tretiakova . + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/oss-fuzz.sh b/src/tests/oss-fuzz.sh index fae4d6c10..7ee132fbe 100755 --- a/src/tests/oss-fuzz.sh +++ b/src/tests/oss-fuzz.sh @@ -1,5 +1,7 @@ #!/bin/bash +# SPDX-License-Identifier: LGPL-2.1+ + set -ex export LC_CTYPE=C.UTF-8 diff --git a/src/tests/parse_config_file.c b/src/tests/parse_config_file.c index 9dd081168..6bdac3609 100644 --- a/src/tests/parse_config_file.c +++ b/src/tests/parse_config_file.c @@ -1,20 +1,7 @@ /* liblxcapi * - * Copyright © 2017 Christian Brauner . - * Copyright © 2017 Canonical Ltd. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/reboot.c b/src/tests/reboot.c index 43250a99e..9983f6184 100644 --- a/src/tests/reboot.c +++ b/src/tests/reboot.c @@ -1,21 +1,4 @@ -/* - * Copyright © 2012 Serge Hallyn . - * Copyright © 2012 Canonical Ltd. - * - * This program 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. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ +/* SPDX-License-Identifier: LGPL-2.1+ */ #include "config.h" diff --git a/src/tests/rootfs_options.c b/src/tests/rootfs_options.c index 55f86ab3d..d4c79e81e 100644 --- a/src/tests/rootfs_options.c +++ b/src/tests/rootfs_options.c @@ -1,19 +1,7 @@ /* liblxcapi * - * Copyright © 2021 Christian Brauner . + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/saveconfig.c b/src/tests/saveconfig.c index 41ca66224..d9ff94f1e 100644 --- a/src/tests/saveconfig.c +++ b/src/tests/saveconfig.c @@ -1,20 +1,7 @@ /* liblxcapi * - * Copyright © 2012 Serge Hallyn . - * Copyright © 2012 Canonical Ltd. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/share_ns.c b/src/tests/share_ns.c index fd070adad..603a1c8c0 100644 --- a/src/tests/share_ns.c +++ b/src/tests/share_ns.c @@ -1,19 +1,7 @@ /* liblxcapi * - * Copyright © 2017 Christian Brauner . + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/shortlived.c b/src/tests/shortlived.c index f4a742f6d..74de6f140 100644 --- a/src/tests/shortlived.c +++ b/src/tests/shortlived.c @@ -1,20 +1,7 @@ /* liblxcapi * - * Copyright © 2017 Christian Brauner . - * Copyright © 2017 Canonical Ltd. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/shutdowntest.c b/src/tests/shutdowntest.c index 89e7c447f..6f552677b 100644 --- a/src/tests/shutdowntest.c +++ b/src/tests/shutdowntest.c @@ -1,21 +1,7 @@ - /* liblxcapi * - * Copyright © 2012 Serge Hallyn . - * Copyright © 2012 Canonical Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * SPDX-License-Identifier: GPL-2.0-only * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/snapshot.c b/src/tests/snapshot.c index dfbf78e45..7215fad8b 100644 --- a/src/tests/snapshot.c +++ b/src/tests/snapshot.c @@ -1,20 +1,7 @@ /* liblxcapi * - * Copyright © 2013 Serge Hallyn . - * Copyright © 2013 Canonical Ltd. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/startone.c b/src/tests/startone.c index 5d5a23f4b..028addd1d 100644 --- a/src/tests/startone.c +++ b/src/tests/startone.c @@ -1,20 +1,7 @@ /* liblxcapi * - * Copyright © 2012 Serge Hallyn . - * Copyright © 2012 Canonical Ltd. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/state_server.c b/src/tests/state_server.c index cf6fcc47c..71298f311 100644 --- a/src/tests/state_server.c +++ b/src/tests/state_server.c @@ -1,19 +1,7 @@ /* liblxcapi * - * Copyright © 2017 Christian Brauner . + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" diff --git a/src/tests/sys_mixed.c b/src/tests/sys_mixed.c index b51f28c32..552ce5c04 100644 --- a/src/tests/sys_mixed.c +++ b/src/tests/sys_mixed.c @@ -1,19 +1,7 @@ /* liblxcapi * - * Copyright © 2021 Christian Brauner . + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h"