From 5a1118d38032f902b1259928f83636b86742e49e Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sat, 26 Jul 2025 09:00:55 +0200 Subject: relicense as GPL-2+ The earlier GPL-3 only is implied in the new grant. --- examples/cgroup.py | 2 +- examples/chhostname.py | 2 +- examples/chrootfuse.py | 2 +- examples/chroottar.py | 2 +- examples/fakeroot.py | 2 +- examples/netnsslirp.py | 2 +- examples/pidns.py | 2 +- examples/unschroot_fs.py | 2 +- examples/unschroot_proc.py | 2 +- examples/userchroot.py | 2 +- examples/withallsubuids.py | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) (limited to 'examples') diff --git a/examples/cgroup.py b/examples/cgroup.py index 2a423d3..cd6f743 100755 --- a/examples/cgroup.py +++ b/examples/cgroup.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2024 Helmut Grohne -# SPDX-License-Identifier: GPL-3 +# SPDX-License-Identifier: GPL-2+ """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 bf174e6..de1ee42 100755 --- a/examples/chhostname.py +++ b/examples/chhostname.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2024 Helmut Grohne -# SPDX-License-Identifier: GPL-3 +# SPDX-License-Identifier: GPL-2+ """Unshare a UTS (and user and mount) namespace and change the hostname.""" diff --git a/examples/chrootfuse.py b/examples/chrootfuse.py index d8ca965..0eeb5ce 100755 --- a/examples/chrootfuse.py +++ b/examples/chrootfuse.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2024 Helmut Grohne -# SPDX-License-Identifier: GPL-3 +# SPDX-License-Identifier: GPL-2+ """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 cf0f87e..095712a 100755 --- a/examples/chroottar.py +++ b/examples/chroottar.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2024 Helmut Grohne -# SPDX-License-Identifier: GPL-3 +# SPDX-License-Identifier: GPL-2+ """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 47db330..9679bab 100755 --- a/examples/fakeroot.py +++ b/examples/fakeroot.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2024 Helmut Grohne -# SPDX-License-Identifier: GPL-3 +# SPDX-License-Identifier: GPL-2+ """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 7a1a27e..92f473b 100755 --- a/examples/netnsslirp.py +++ b/examples/netnsslirp.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2024 Helmut Grohne -# SPDX-License-Identifier: GPL-3 +# SPDX-License-Identifier: GPL-2+ """Construct a network namespace with a host0 interface backed by slirp4netns. """ diff --git a/examples/pidns.py b/examples/pidns.py index d926d87..0ef049e 100755 --- a/examples/pidns.py +++ b/examples/pidns.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2024 Helmut Grohne -# SPDX-License-Identifier: GPL-3 +# SPDX-License-Identifier: GPL-2+ """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 d1953bc..b29ecc5 100755 --- a/examples/unschroot_fs.py +++ b/examples/unschroot_fs.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2024 Helmut Grohne -# SPDX-License-Identifier: GPL-3 +# SPDX-License-Identifier: GPL-2+ """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 31cb1e8..f5a444f 100755 --- a/examples/unschroot_proc.py +++ b/examples/unschroot_proc.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2025 Helmut Grohne -# SPDX-License-Identifier: GPL-3 +# SPDX-License-Identifier: GPL-2+ """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 4006dc6..cbb827a 100755 --- a/examples/userchroot.py +++ b/examples/userchroot.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2024 Helmut Grohne -# SPDX-License-Identifier: GPL-3 +# SPDX-License-Identifier: GPL-2+ """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 c247002..32ff2f6 100755 --- a/examples/withallsubuids.py +++ b/examples/withallsubuids.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # Copyright 2024 Helmut Grohne -# SPDX-License-Identifier: GPL-3 +# SPDX-License-Identifier: GPL-2+ """Map all available ranges from /etc/subuid and /etc/subgid as identity and run a given command with all capabilities (including CAP_DAC_OVERRIDE) -- cgit v1.2.3