- 25 Mar, 2019 1 commit
-
-
Tycho Andersen authored
This function can fail, because it uses the command API. If it does fail, we get weird errors about not being able to open strange proc paths: xc authyldapservice-c8020e20-e203-e852-90ef-4d378e8d1444 20190323163231.386 ERROR lxc_utils - utils.c:switch_to_ns:1184 - No such file or directory - failed to open /proc/-104/ns/net So let's check for errors before then. Signed-off-by:Tycho Andersen <tycho@tycho.ws>
-
- 12 Mar, 2019 5 commits
-
-
Stéphane Graber authored
hardening: enable address sanitizer build
-
Christian Brauner authored
This adds --{disable,enable}-asan. It is disabled by default. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Fix PID namespace pdeathsig handling
-
Felix Abecassis authored
Fixes: #2902 Signed-off-by:Felix Abecassis <fabecassis@nvidia.com>
-
Felix Abecassis authored
Signed-off-by:Felix Abecassis <fabecassis@nvidia.com>
-
- 11 Mar, 2019 7 commits
-
-
Stéphane Graber authored
compiler: hardening
-
Christian Brauner authored
This hardens multi-threaded C. Without it, the implementation of thread cancellation handlers (introduced by pthread_cleanup_push) uses a completely unprotected function pointer on the stack. This function pointer can simplify the exploitation of stack-based buffer overflows even if the thread in question is never canceled. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Avoid temporary files, speeding up builds. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Increased reliability of backtraces. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Stéphane Graber authored
btrfs: ensure \0 byte at end
-
Christian Brauner authored
Apparently the name received from the tree walk is not guaranteed to have \0 byte at the end. So let's make sure we append one. Note that this is only an issue if there are any subvolumes in the container's rootfs. Closes 2826. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Stéphane Graber authored
hooks: drop namespace references before post-stop
-
- 10 Mar, 2019 1 commit
-
-
Christian Brauner authored
Callers such as LXD run post-stop hooks to perform cleanup operations on shutdown. This can involve umount and other things. To avoid surprises with lingering namespace references we should close all our namespace-preserving file descriptors. We don't need them at this point anymore anyway. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
- 06 Mar, 2019 2 commits
-
-
Christian Brauner authored
Fix lxc.cgroup2.<controller> on cgroup2-only systems
-
Michael Sparmann authored
Signed-off-by:Michael Sparmann <theseven@gmx.net>
-
- 05 Mar, 2019 6 commits
-
-
Stéphane Graber authored
conf: avoid compiler warning
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
This reverts commit 912c4bb4. I accidently merged this commit. The initialization is wrong. Signed-off-by:
Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
conf: Fixes uninitialised variable. > @brauner clang is failing but gcc passes, would it be OK to initialise this to 0? He, unfortunately not. :) What would happen now is that you'd close `stdin` on a standard system. What you'd want is `= -EBADF`. :)
-
tomponline authored
Signed-off-by:tomponline <tomp@tomp.uk>
-
Stéphane Graber authored
minor tweaks
-
- 04 Mar, 2019 16 commits
-
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Stéphane Graber authored
tree-wide: fix wrong licensing
-
Serge Hallyn authored
tree-wide: kill fgets()
-
Christian Brauner authored
gcc -Wall flag compat
-
tomponline authored
Closes #2885. Signed-off-by:tomponline <tomp@tomp.uk>
-
tomponline authored
Closes #2885. Signed-off-by:tomponline <tomp@tomp.uk>
-
tomponline authored
Closes #2885. Signed-off-by:tomponline <tomp@tomp.uk>
-
tomponline authored
Closes #2885. Signed-off-by:tomponline <tomp@tomp.uk>
-
tomponline authored
Closes #2885. Signed-off-by:tomponline <tomp@tomp.uk>
-
tomponline authored
Closes #2885. Signed-off-by:tomponline <tomp@tomp.uk>
-
tomponline authored
Signed-off-by:tomponline <tomp@tomp.uk>
-
tomponline authored
Signed-off-by:tomponline <tomp@tomp.uk>
-
tomponline authored
Invalid warning but let's please the compiler. Closes lxc#2885. Signed-off-by:tomponline <tomp@tomp.uk>
-
tomponline authored
Closes lxc#2885. Signed-off-by:tomponline <tomp@tomp.uk>
-
- 03 Mar, 2019 2 commits
-
-
Christian Brauner authored
liblxc has always been meant to be LGPLv2.1+ as reflected by the many downstreams projects and bindings which are themselves under LGPLv2.1+ or other licenses which would be incompatible with linking against a GPLv2+ library. It's pretty normal for a library to be LGPL while binaries are GPL as a GPL library would only ever be usable by other GPL-only projects, which isn't the case for very many of the liblxc downstreams. The issue here is really carelessness. None of those GPL headers were put there intentionally, instead being wrongly copy/pasted from other parts of the codebase which is indeed intended to be GPLv2+. This is also made clear in our CONTRIBUTING file in this repository: Licensing for new files: ------------------------ LXC is made of files shipped under a few different licenses. Anything that ends up being part of the LXC library needs to be released under LGPLv2.1+ or a license compatible with it (though the latter will only be accepted for cases where the code originated elsewhere and was imported into LXC). Language bindings for the libraries need to be released under LGPLv2.1+. Anything else (non-libraries) needs to be Free Software and needs to be allowed to link with LGPLv2.1+ code (if needed). LXC upstream prefers LGPLv2.1+ or GPLv2 for those. When introducing a new file into the project, please make sure it has a copyright header making clear under which license it's being released and if it doesn't match the criteria described above, please explain your decision on the lxc-devel mailing-list when submitting your patch. This is intended to switch over files to LGPLv2.1+ to which end we have collected ACKs from relevant people. /* Affected People */ Christian Brauner <christian.brauner@ubuntu.com> Donghwa Jeong <dh48.jeong@samsung.com> Signed-off-by:
Christian Brauner <christian.brauner@ubuntu.com> Acked-by:
Donghwa Jeong <dh48.jeong@samsung.com>
-
Christian Brauner authored
liblxc has always been meant to be LGPLv2.1+ as reflected by the many downstreams projects and bindings which are themselves under LGPLv2.1+ or other licenses which would be incompatible with linking against a GPLv2+ library. It's pretty normal for a library to be LGPL while binaries are GPL as a GPL library would only ever be usable by other GPL-only projects, which isn't the case for very many of the liblxc downstreams. The issue here is really carelessness. None of those GPL headers were put there intentionally, instead being wrongly copy/pasted from other parts of the codebase which is indeed intended to be GPLv2+. This is also made clear in our CONTRIBUTING file in this repository: Licensing for new files: ------------------------ LXC is made of files shipped under a few different licenses. Anything that ends up being part of the LXC library needs to be released under LGPLv2.1+ or a license compatible with it (though the latter will only be accepted for cases where the code originated elsewhere and was imported into LXC). Language bindings for the libraries need to be released under LGPLv2.1+. Anything else (non-libraries) needs to be Free Software and needs to be allowed to link with LGPLv2.1+ code (if needed). LXC upstream prefers LGPLv2.1+ or GPLv2 for those. When introducing a new file into the project, please make sure it has a copyright header making clear under which license it's being released and if it doesn't match the criteria described above, please explain your decision on the lxc-devel mailing-list when submitting your patch. This is intended to switch over files to LGPLv2.1+ to which end we have collected ACKs from relevant people. /* Affected People */ Christian Brauner <christian.brauner@ubuntu.com> Donghwa Jeong <dh48.jeong@samsung.com> Signed-off-by:
Christian Brauner <christian.brauner@ubuntu.com> Acked-by:
Donghwa Jeong <dh48.jeong@samsung.com>
-