diff options
Diffstat (limited to 'examples')
-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 |
11 files changed, 11 insertions, 11 deletions
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) |