- 23 Sep, 2016 10 commits
-
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@canonical.com>
-
Tycho Andersen authored
Otherwise in the error case, we end up subtracting two from the static_args, which would lead to a segfault :) Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
Tycho Andersen authored
This is almost never the right thing to use, and we don't use it any more anyway. Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
Tycho Andersen authored
We initialized cgfsng in a strange way inside of its implementation of escape so we could use it during checkpoint. Instead, the previous patch does a hacky initialization in criu.c, and we can get rid of the hacks elsewhere :) Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
Tycho Andersen authored
CRIU has added support for passing --cgroup-root on dump, which we should use (see the criu commit 07d259f365f224b32914de26ea0fd59fc6db0001 for details). Note that we don't have to do any version checking or anything, because CRIU just ignored --cgroup-root on checkpoint before, so passing it is safe, and will result in correct behavior when a sufficient version of CRIU is present. Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
Tycho Andersen authored
Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
Tycho Andersen authored
N.B. that these are only implemented in cgfsng, but, 15:28:28 tych0 | do we still use cgfs anywhere? or the cgm backend? 15:29:19 stgraber | not anywhere we care about ...I think that's okay. Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
Tycho Andersen authored
Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
Thierry Fauck authored
Template catches arch from uname -m, but for ppc64el system, arch reports ppc64le which doesn't match image repo. Signed-off-by:
Thierry Fauck <tfauck@free.fr> Signed-off-by:
Serge Hallyn <serge@hallyn.com>
-
Lukas Pirl authored
Signed-off-by:Lukas Pirl <git@lukas-pirl.de>
-
- 14 Sep, 2016 12 commits
-
-
Tycho Andersen authored
2cb80427 introduced a malloc without a matching free. Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com>
-
Christian Brauner authored
- We expect destroy to fail in zfs_clone() so try to silence it so users are not irritated when they create zfs snapshots. - Add -r recursive to zfs_destroy(). This code is only hit when a) the container has no snapshots or b) the user calls destroy with snapshots. So this should be safe. Without -r snapshots will remain. Signed-off-by:Christian Brauner <christian.brauner@canonical.com>
-
Tycho Andersen authored
Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
Alex Athanasopoulos authored
Signed-off-by:Alex Athanasopoulos <alex@melato.org>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@mailbox.org>
-
Jérôme Pouiller authored
-Werror may break builds on some scenarios with trivialities (especially during developments). Signed-off-by:Jérôme Pouiller <jezz@sysmic.org>
-
Christian Brauner authored
lxc_console is used with lxc_console.c Signed-off-by:Christian Brauner <christian.brauner@mailbox.org>
-
Maxime BESSON authored
An incorrect quoting introduced in bf39edb3 caused a /{lib,etc} folder to appear in Debian templates The very next line : mkdir -p "${rootfs}/etc/systemd/system/getty.target.wants makes creating ${rootfs}/etc/systemd/system/ unnecessary in the first place Signed-off-by:
Maxime Besson <maxime.besson@smile.fr>
-
Christian Brauner authored
Given commit 330ae3d3: lxccontainer: detect if we should send SIGRTMIN+3 This is required by systemd to cleanly shutdown. Other init systems should not have SIGRTMIN+3 in the blocked signals set. we should stop symlinking halt.target to sigpwr.target for systemd. Signed-off-by:
Christian Brauner <cbrauner@suse.de>
-
Evgeni Golov authored
otherwise the generated docs have the full build path in them and nonbody cares that the files were built in /build/lxc-_BVY2u/lxc-2.0.4/src/lxc/ Signed-off-by:Evgeni Golov <evgeni@debian.org>
-
Tycho Andersen authored
Previously, we write a "success" status but tried to parse the pid. This meant that we wouldn't notice a successful restore but failure to parse the pid, which was a little strange. We still don't know the child pid, so we will end up with a restored process tree and a running container, but at least in this case the API will return false indicating that something failed. We could kill(-1, 9) in this case, but since liblxc runs as root sometimes (e.g. LXD), that would be a Very Bad Thing. Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
Tycho Andersen authored
Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
- 26 Aug, 2016 18 commits
-
-
Wolfgang Bumiller authored
Signed-off-by:Wolfgang Bumiller <w.bumiller@proxmox.com>
-
James Cowgill authored
Signed-off-by:James Cowgill <james410@cowgill.org.uk>
-
Stéphane Graber authored
Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
Tycho Andersen authored
All we really needed a unique temp file for was passing the pid. Since CRIU opened this with O_EXCL | O_CREAT, this was "safe" (users could still overwrite it afterwards, but the monitor would immediately die since the only valid number in there was the init process). In any case, we can just read /proc/self/tid/children, which lists the child process. Closes #1150 Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <cbrauner@suse.de>
-
Elan Ruusamäe authored
/usr/share/lxc/templates/lxc-fedora: line 1078: openssl: command not found Signed-off-by:Elan Ruusamäe <glen@delfi.ee>
-
Elan Ruusamäe authored
to catch up mksh changes from 17abf278Signed-off-by:
Elan Ruusamäe <glen@delfi.ee>
-
Christian Brauner authored
- log more errnos - adapt coding style Signed-off-by:Christian Brauner <cbrauner@suse.de>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <cbrauner@suse.de>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <cbrauner@suse.de>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <cbrauner@suse.de>
-
James Cowgill authored
Signed-off-by:James Cowgill <james410@cowgill.org.uk>
-
James Cowgill authored
Fixes "unsupported personality" warnings when starting containers. Signed-off-by:James Cowgill <james410@cowgill.org.uk>
-
James Cowgill authored
MIPS processors implement 3 ABIs: o32, n64 and n32 (similar to x32). The kernel treats each ABI separately so syscalls disallowed on "all" arches should be added to all three seccomp sets. This is implemented by expanding compat_arch and compat_ctx to accept two compat architectures. After this, the MIPS hostarch detection code and config section code is added. Signed-off-by:James Cowgill <james410@cowgill.org.uk>
-
James Cowgill authored
Signed-off-by:James Cowgill <james410@cowgill.org.uk>
-
Christian Brauner authored
This also changes the help exit status of lxc-unshare and lxc-usernsexec. So far they did exit(EXIT_FAILURE) whereas all other tools do exit(EXIT_SUCCESS). Let's align them with the rest of the tools. This should be safe to do. Signed-off-by:Christian Brauner <cbrauner@suse.de>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <cbrauner@suse.de>
-
Sungbae Yoo authored
Update for commit 71d74a83Signed-off-by:
Sungbae Yoo <sungbae.yoo@samsung.com>
-