- 03 Nov, 2016 4 commits
-
-
Christian Brauner authored
If we do it earlier we end up with a wrong view of /proc/self/cgroup. For example, assume we unshare(CLONE_NEWCGROUP) first, and then create the cgroup for the container, say /sys/fs/cgroup/cpuset/lxc/c, then /proc/self/cgroup would show us: 8:cpuset:/lxc/c whereas it should actually show 8:cpuset:/ Signed-off-by:Christian Brauner <christian.brauner@canonical.com>
-
Christian Brauner authored
cleanup: /usr/bin/bash vs /bin/bash consistency
-
Wolfgang Bumiller authored
Signed-off-by:Wolfgang Bumiller <w.bumiller@proxmox.com>
-
Christian Brauner authored
container start: clone newcgroup immediately
-
- 02 Nov, 2016 6 commits
-
-
Christian Brauner authored
conf: merge network namespace move & rename on shutdown
-
Christian Brauner authored
c/r: save dump stdout too
-
Tycho Andersen authored
When we read sizeof(buf) bytes here, we'd write off the end of the array, which is bad :) Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
Tycho Andersen authored
The macros put a \n in for us, so let's not put another one in. Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
Tycho Andersen authored
This also allows us to commonize some bits of the dup2 code. Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
Wolfgang Bumiller authored
On shutdown we move physical network interfaces back to the host namespace and rename them afterwards as well as in the later lxc_network_delete() step. However, if the device had a name which already exists in the host namespace then the moving fails and so do the subsequent rename attempts. When the namespace ceases to exist the devices finally end up in the host namespace named 'dev<ID>' by the kernel. In order to avoid this, we do the moving and renaming in a single step (lxc_netdev_move_by_*()'s move & rename happen in a single netlink transaction). Signed-off-by:Wolfgang Bumiller <w.bumiller@proxmox.com>
-
- 31 Oct, 2016 3 commits
-
-
Stéphane Graber authored
Do mount rewriting
-
Tycho Andersen authored
We need to log longer lines due to CRIU arguments. Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
Tycho Andersen authored
We switched to --ext-mount-map auto because of "system" (liblxc) added mounts like the cgmanager socket that weren't in the config file. This had the added advantage that we could drop all the mount processing code, because we no longer needed an --ext-mount-map argument. The problem here is that mounts can move between hosts. While --ext-mount-map auto does its best to detect this situation, it explicitly disallows moves that change the path name. In LXD, we bind mount /var/lib/lxd/shmounts/$container to /dev/.lxd-mounts for each container, and so when a container is renamed in a migration, the name changes. --ext-mount-map auto won't detect this, and so the migration fails. We *could* implement mount rewriting in CRIU, but my experience with cgroup and apparmor rewriting is that this is painful and error prone. Instead, it is much easier to go back to explicitly listing --ext-mount-map arguments from the config file, and allow the source of the bind to change. We leave --ext-mount-map auto to catch any stragling (or future) system added mounts. I believe this should fix Launchpad Bug 1580765 Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
- 30 Oct, 2016 7 commits
-
-
Stéphane Graber authored
tools: use correct exit code for lxc-stop
-
Christian Brauner authored
When the container is already running our manpage promises to exit with 2. Let's make it so. Signed-off-by:Christian Brauner <christian.brauner@canonical.com>
-
Christian Brauner authored
lxc-ls help fixes
-
Evgeni Golov authored
it's "list of columns", not "list of column" Signed-off-by:Evgeni Golov <evgeni@debian.org>
-
Evgeni Golov authored
Signed-off-by:Evgeni Golov <evgeni@debian.org>
-
Christian Brauner authored
find OpenSUSE's build also as obs-build
-
Evgeni Golov authored
this is how it is shipped in Debian and Ubuntu Signed-off-by:Evgeni Golov <evgeni@debian.org>
-
- 29 Oct, 2016 5 commits
-
-
Stéphane Graber authored
cgfs: fix invalid free()
-
Christian Brauner authored
And let's be on the safe side by NULLing free()ed variables. Signed-off-by:Christian Brauner <christian.brauner@canonical.com>
-
Stéphane Graber authored
RPM build fixes
-
Evgeni Golov authored
Signed-off-by:Evgeni Golov <evgeni@debian.org>
-
Evgeni Golov authored
Closes: #502 Signed-off-by:Evgeni Golov <evgeni@debian.org>
-
- 25 Oct, 2016 6 commits
-
-
Christian Brauner authored
Fix environment before importing setuptools
-
Stéphane Graber authored
Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
Christian Brauner authored
Tweak libtool handling to work with Android
-
Stéphane Graber authored
Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
Christian Brauner authored
c/r: use external
-
Serge Hallyn authored
ubuntu: Fix package upgrades requiring proc
-
- 24 Oct, 2016 6 commits
-
-
Tycho Andersen authored
This will never actually overflow, because %d is 32 bits and eth is 128 bytes long, but safety first :) Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
Tycho Andersen authored
Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
Stéphane Graber authored
Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
Tycho Andersen authored
Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
Tycho Andersen authored
We need this for calculating the name of unnamed interfaces in the config. But we also need to remember to increment it :) Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
Tycho Andersen authored
--veth-pair has been deprecated as of 2.6, let's use the new --external instead. Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
- 21 Oct, 2016 3 commits
-
-
Christian Brauner authored
Setup libtool
-
Stéphane Graber authored
This should allow proper filtering of build flags for libraries and make it easier to use PIE/PIC. Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
Christian Brauner authored
tools: correct the argument typo in lxc_copy
-