diff options
-rw-r--r-- | README.md | 2 | ||||
-rwxr-xr-x | examples/cgroup.py | 2 | ||||
-rwxr-xr-x | examples/chhostname.py | 2 | ||||
-rwxr-xr-x | examples/chrootfuse.py | 2 | ||||
-rwxr-xr-x | examples/chroottar.py | 2 | ||||
-rwxr-xr-x | examples/fakeroot.py | 2 | ||||
-rwxr-xr-x | examples/netnsslirp.py | 2 | ||||
-rwxr-xr-x | examples/pidns.py | 2 | ||||
-rwxr-xr-x | examples/unschroot_fs.py | 2 | ||||
-rwxr-xr-x | examples/unschroot_proc.py | 2 | ||||
-rwxr-xr-x | examples/userchroot.py | 2 | ||||
-rwxr-xr-x | examples/withallsubuids.py | 2 | ||||
-rw-r--r-- | linuxnamespaces/__init__.py | 2 | ||||
-rw-r--r-- | linuxnamespaces/atlocation.py | 2 | ||||
-rw-r--r-- | linuxnamespaces/filedescriptor.py | 2 | ||||
-rw-r--r-- | linuxnamespaces/idmap.py | 2 | ||||
-rw-r--r-- | linuxnamespaces/syscalls.py | 2 | ||||
-rw-r--r-- | linuxnamespaces/systemd/__init__.py | 2 | ||||
-rw-r--r-- | linuxnamespaces/systemd/dbussy.py | 2 | ||||
-rw-r--r-- | linuxnamespaces/systemd/jeepney.py | 2 | ||||
-rw-r--r-- | linuxnamespaces/tarutils.py | 2 | ||||
-rw-r--r-- | pyproject.toml | 2 | ||||
-rw-r--r-- | tests/test_atlocation.py | 2 | ||||
-rw-r--r-- | tests/test_simple.py | 2 |
24 files changed, 24 insertions, 24 deletions
@@ -9,4 +9,4 @@ To see these are composed, consider looking into the `examples/` directory. License ------- -GPL-2+ +LGPL-2.0-or-later diff --git a/examples/cgroup.py b/examples/cgroup.py index cd6f743..3bc1c83 100755 --- a/examples/cgroup.py +++ b/examples/cgroup.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2024 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later """Unshare a cgroup (and user) namespace such that the entire cgroup hierarchy (inside the namespace) becomes writeable to the user. diff --git a/examples/chhostname.py b/examples/chhostname.py index de1ee42..d1b8394 100755 --- a/examples/chhostname.py +++ b/examples/chhostname.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2024 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later """Unshare a UTS (and user and mount) namespace and change the hostname.""" diff --git a/examples/chrootfuse.py b/examples/chrootfuse.py index 0eeb5ce..49404da 100755 --- a/examples/chrootfuse.py +++ b/examples/chrootfuse.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2024 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later """Mount a given filesystem image inside a user and mount namespace using an unprivileged fuse driver and chroot into the mounted filesystem. Supported diff --git a/examples/chroottar.py b/examples/chroottar.py index 095712a..ec76813 100755 --- a/examples/chroottar.py +++ b/examples/chroottar.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2024 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later """Extract a given tarball into a temporary location and chroot into it inside a user and mount namespace. diff --git a/examples/fakeroot.py b/examples/fakeroot.py index 9679bab..49306bf 100755 --- a/examples/fakeroot.py +++ b/examples/fakeroot.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2024 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later """Vaguely emulate fakeroot using a user namespace that maps the current user and group to root and the rest of the low range to a subuid range without diff --git a/examples/netnsslirp.py b/examples/netnsslirp.py index 92f473b..5bd829c 100755 --- a/examples/netnsslirp.py +++ b/examples/netnsslirp.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2024 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later """Construct a network namespace with a host0 interface backed by slirp4netns. """ diff --git a/examples/pidns.py b/examples/pidns.py index 0ef049e..0337c47 100755 --- a/examples/pidns.py +++ b/examples/pidns.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2024 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later """Create a pid namespace and provide a matching /proc view. As a consequence, user and mount namespaces will be unshared as well. diff --git a/examples/unschroot_fs.py b/examples/unschroot_fs.py index b29ecc5..d5f67b0 100755 --- a/examples/unschroot_fs.py +++ b/examples/unschroot_fs.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2024 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later """Emulate schroot using namespaces sufficiently well that sbuild can deal with it but not any better. It assumes that ~/.cache/sbuild contains tars suitable diff --git a/examples/unschroot_proc.py b/examples/unschroot_proc.py index f5a444f..771d0d8 100755 --- a/examples/unschroot_proc.py +++ b/examples/unschroot_proc.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2025 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later """Emulate schroot using namespaces and a background session process sufficiently well that sbuild can deal with it but not any better. For using diff --git a/examples/userchroot.py b/examples/userchroot.py index cbb827a..9a6e1f9 100755 --- a/examples/userchroot.py +++ b/examples/userchroot.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2024 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later """Perform something like an unprivileged chroot via a user and mount namespace. This is similar to "unshare --map-auto --mount-proc --root=$1", but diff --git a/examples/withallsubuids.py b/examples/withallsubuids.py index 32ff2f6..5ec00d5 100755 --- a/examples/withallsubuids.py +++ b/examples/withallsubuids.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2024 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later """Map all available ranges from /etc/subuid and /etc/subgid as identity and run a given command with all capabilities (including CAP_DAC_OVERRIDE) diff --git a/linuxnamespaces/__init__.py b/linuxnamespaces/__init__.py index ccf3314..b9a3191 100644 --- a/linuxnamespaces/__init__.py +++ b/linuxnamespaces/__init__.py @@ -1,5 +1,5 @@ # Copyright 2024 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later """Provide plumbing-layer functionality for working with Linux namespaces in Python. diff --git a/linuxnamespaces/atlocation.py b/linuxnamespaces/atlocation.py index 1e719a1..8019c75 100644 --- a/linuxnamespaces/atlocation.py +++ b/linuxnamespaces/atlocation.py @@ -1,5 +1,5 @@ # Copyright 2024 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later """Describe a location in the filesystem by a combination of a file descriptor and a file name each of which can be optional. Many Linux system calls are able diff --git a/linuxnamespaces/filedescriptor.py b/linuxnamespaces/filedescriptor.py index f159a83..64c6b05 100644 --- a/linuxnamespaces/filedescriptor.py +++ b/linuxnamespaces/filedescriptor.py @@ -1,5 +1,5 @@ # Copyright 2024 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later """A type tag for integers that represent file descriptors.""" diff --git a/linuxnamespaces/idmap.py b/linuxnamespaces/idmap.py index 315198a..d9cf0eb 100644 --- a/linuxnamespaces/idmap.py +++ b/linuxnamespaces/idmap.py @@ -1,5 +1,5 @@ # Copyright 2024-2025 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later """Provide functionalit related to mapping user and group ids in a user namespace. diff --git a/linuxnamespaces/syscalls.py b/linuxnamespaces/syscalls.py index 86b21e3..667c557 100644 --- a/linuxnamespaces/syscalls.py +++ b/linuxnamespaces/syscalls.py @@ -1,5 +1,5 @@ # Copyright 2024 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later """Provide typed Python functions for a number of Linux system calls relevant for Linux namespaces including the new mount API. diff --git a/linuxnamespaces/systemd/__init__.py b/linuxnamespaces/systemd/__init__.py index ff09d00..77d005d 100644 --- a/linuxnamespaces/systemd/__init__.py +++ b/linuxnamespaces/systemd/__init__.py @@ -1,5 +1,5 @@ # Copyright 2024 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later """Communicate with a systemd instance to create e.g. delegated croups.""" diff --git a/linuxnamespaces/systemd/dbussy.py b/linuxnamespaces/systemd/dbussy.py index e38a119..bb093f7 100644 --- a/linuxnamespaces/systemd/dbussy.py +++ b/linuxnamespaces/systemd/dbussy.py @@ -1,5 +1,5 @@ # Copyright 2024 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later """Communicate with a systemd instance via dbus using dbussy.""" diff --git a/linuxnamespaces/systemd/jeepney.py b/linuxnamespaces/systemd/jeepney.py index 16fbca1..c9fa37a 100644 --- a/linuxnamespaces/systemd/jeepney.py +++ b/linuxnamespaces/systemd/jeepney.py @@ -1,5 +1,5 @@ # Copyright 2024 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later """Communicate with a systemd instance via dbus using jeepney.""" diff --git a/linuxnamespaces/tarutils.py b/linuxnamespaces/tarutils.py index 9569939..105bbb3 100644 --- a/linuxnamespaces/tarutils.py +++ b/linuxnamespaces/tarutils.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2024 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later """Extensions to the tarfile module. * ZstdTarFile extends TarFile to deal with zstd-compressed archives. diff --git a/pyproject.toml b/pyproject.toml index fbd5218..2094d07 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ description = "typed syscall wrappers and plumbing for working with Linux namesp authors = [{name = "Helmut Grohne", email = "helmut@subdivi.de"}] classifiers = [ "Development Status :: 3 - Alpha", - "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", + "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "Operating System :: POSIX :: Linux", "Typing :: Typed", "Programming Language :: Python :: 3", diff --git a/tests/test_atlocation.py b/tests/test_atlocation.py index 16a4d53..1ed0d3a 100644 --- a/tests/test_atlocation.py +++ b/tests/test_atlocation.py @@ -1,5 +1,5 @@ # Copyright 2024 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later import contextlib import functools diff --git a/tests/test_simple.py b/tests/test_simple.py index 5c9d2d3..b174763 100644 --- a/tests/test_simple.py +++ b/tests/test_simple.py @@ -1,5 +1,5 @@ # Copyright 2024 Helmut Grohne <helmut@subdivi.de> -# SPDX-License-Identifier: GPL-2+ +# SPDX-License-Identifier: LGPL-2.0-or-later import asyncio import errno |