]> git.proxmox.com Git - mirror_lxc.git/log
mirror_lxc.git
7 years agoconf: do not use %m format specifier
Christian Brauner [Sun, 13 Nov 2016 16:10:41 +0000 (17:10 +0100)]
conf: do not use %m format specifier

This is a GNU extension and some libcs might be missing it.

Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
7 years agoMerge pull request #1293 from evgeni/always-stop-lxc-net
Christian Brauner [Sat, 12 Nov 2016 16:13:25 +0000 (11:13 -0500)]
Merge pull request #1293 from evgeni/always-stop-lxc-net

also stop lxc-net in runlevels 0 and 6

7 years agoMerge pull request #1294 from evgeni/ignore-lxc.egg-info
Christian Brauner [Sat, 12 Nov 2016 16:13:18 +0000 (11:13 -0500)]
Merge pull request #1294 from evgeni/ignore-lxc.egg-info

add lxc.egg-info to gitignore

7 years agoMerge pull request #1295 from evgeni/bash-completion-pkg-config
Christian Brauner [Sat, 12 Nov 2016 16:13:10 +0000 (11:13 -0500)]
Merge pull request #1295 from evgeni/bash-completion-pkg-config

install bash completion where pkg-config tells us to

7 years agoinstall bash completion where pkg-config tells us to
Evgeni Golov [Sat, 12 Nov 2016 13:44:40 +0000 (14:44 +0100)]
install bash completion where pkg-config tells us to

Signed-off-by: Evgeni Golov <evgeni@debian.org>
7 years agoadd lxc.egg-info to gitignore
Evgeni Golov [Sat, 12 Nov 2016 13:47:33 +0000 (14:47 +0100)]
add lxc.egg-info to gitignore

Signed-off-by: Evgeni Golov <evgeni@debian.org>
7 years agoalso stop lxc-net in runlevels 0 and 6
Evgeni Golov [Sat, 12 Nov 2016 11:29:26 +0000 (12:29 +0100)]
also stop lxc-net in runlevels 0 and 6

there is no reason to not do this :)

Signed-off-by: Evgeni Golov <evgeni@debian.org>
7 years agoMerge pull request #1290 from brauner/2016-11-09/named_controllers
Serge Hallyn [Fri, 11 Nov 2016 02:40:23 +0000 (20:40 -0600)]
Merge pull request #1290 from brauner/2016-11-09/named_controllers

cgroups: skip v2 hierarchy entry

7 years agocgroups: skip v2 hierarchy entry
Christian Brauner [Thu, 10 Nov 2016 23:29:15 +0000 (00:29 +0100)]
cgroups: skip v2 hierarchy entry

Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
7 years agoMerge pull request #1289 from Cypresslin/ubuntu-cloud-squashfs
Christian Brauner [Thu, 10 Nov 2016 14:29:23 +0000 (09:29 -0500)]
Merge pull request #1289 from Cypresslin/ubuntu-cloud-squashfs

templates: add squashfs support to lxc-ubuntu-cloud.in

7 years agotemplates: add squashfs support to lxc-ubuntu-cloud.in
Po-Hsu Lin [Thu, 10 Nov 2016 08:48:29 +0000 (16:48 +0800)]
templates: add squashfs support to lxc-ubuntu-cloud.in

Add squashfs format file support for lxc-ubuntu-cloud.in

Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
7 years agoMerge pull request #1288 from Cypresslin/known-release-zesty
Christian Brauner [Thu, 10 Nov 2016 05:22:05 +0000 (00:22 -0500)]
Merge pull request #1288 from Cypresslin/known-release-zesty

Update Ubuntu release name: add zesty

7 years agoUpdate Ubuntu release name: add zesty and remove wily
Po-Hsu Lin [Wed, 9 Nov 2016 11:13:28 +0000 (19:13 +0800)]
Update Ubuntu release name: add zesty and remove wily

Add zesty to KNOWN_RELEASES
Remove EOL wily from KNOWN_RELEASES

Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
7 years agoMerge pull request #1286 from mgariepy/patch-1
Stéphane Graber [Wed, 9 Nov 2016 12:18:11 +0000 (05:18 -0700)]
Merge pull request #1286 from mgariepy/patch-1

create symlink for /var/run

7 years agocreate symlink for /var/run
mgariepy [Tue, 8 Nov 2016 16:42:34 +0000 (11:42 -0500)]
create symlink for /var/run

this patch create /var/run link to point to /run.

This will fix various issue present when /var/run is persistent.

Signed-off-by: Marc Gariepy <gariepy.marc@gmail.com>
7 years agoMerge pull request #1262 from brauner/2016-10-29/lxc_free_cgroup_sigsegv
Serge Hallyn [Mon, 7 Nov 2016 17:09:06 +0000 (10:09 -0700)]
Merge pull request #1262 from brauner/2016-10-29/lxc_free_cgroup_sigsegv

cgfs: various fixes

7 years agoMerge pull request #1275 from brauner/2016-11-04/unshare_cgroup_after_clone
Stéphane Graber [Thu, 3 Nov 2016 21:27:37 +0000 (15:27 -0600)]
Merge pull request #1275 from brauner/2016-11-04/unshare_cgroup_after_clone

start: CLONE_NEWCGROUP after we have setup cgroups

7 years agostart: CLONE_NEWCGROUP after we have setup cgroups
Christian Brauner [Thu, 3 Nov 2016 20:24:31 +0000 (21:24 +0100)]
start: CLONE_NEWCGROUP after we have setup cgroups

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>
7 years agoMerge pull request #1274 from tych0/check-state-before-checkpoint
Christian Brauner [Thu, 3 Nov 2016 20:38:42 +0000 (14:38 -0600)]
Merge pull request #1274 from tych0/check-state-before-checkpoint

c/r: check state before doing a checkpoint/restore

7 years agoc/r: check state before doing a checkpoint/restore
Tycho Andersen [Thu, 3 Nov 2016 18:01:09 +0000 (12:01 -0600)]
c/r: check state before doing a checkpoint/restore

This would already fail, but with a not-as-good error message. Let's make
the error better.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
7 years agoMerge pull request #1273 from Blub/trivial/bin-bash-consistency
Christian Brauner [Thu, 3 Nov 2016 12:54:06 +0000 (06:54 -0600)]
Merge pull request #1273 from Blub/trivial/bin-bash-consistency

cleanup: /usr/bin/bash vs /bin/bash consistency

7 years agocleanup: /usr/bin/bash vs /bin/bash consistency
Wolfgang Bumiller [Thu, 3 Nov 2016 08:07:05 +0000 (09:07 +0100)]
cleanup: /usr/bin/bash vs /bin/bash consistency

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 years agoMerge pull request #1058 from hallyn/2016-06-24/eric.cgns
Christian Brauner [Thu, 3 Nov 2016 01:56:28 +0000 (19:56 -0600)]
Merge pull request #1058 from hallyn/2016-06-24/eric.cgns

container start: clone newcgroup immediately

7 years agoMerge pull request #1269 from Blub/phynet-rename-2
Christian Brauner [Wed, 2 Nov 2016 20:05:33 +0000 (14:05 -0600)]
Merge pull request #1269 from Blub/phynet-rename-2

conf: merge network namespace move & rename on shutdown

7 years agoMerge pull request #1270 from tych0/save-dump-state-too
Christian Brauner [Wed, 2 Nov 2016 18:05:15 +0000 (12:05 -0600)]
Merge pull request #1270 from tych0/save-dump-state-too

c/r: save dump stdout too

7 years agoc/r: fix off-by-one error
Tycho Andersen [Wed, 2 Nov 2016 15:59:00 +0000 (15:59 +0000)]
c/r: fix off-by-one error

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>
7 years agoc/r: remove extra \ns from logs
Tycho Andersen [Wed, 2 Nov 2016 15:10:13 +0000 (15:10 +0000)]
c/r: remove extra \ns from logs

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>
7 years agoc/r: save criu's stdout during dump too
Tycho Andersen [Tue, 1 Nov 2016 23:07:26 +0000 (17:07 -0600)]
c/r: save criu's stdout during dump too

This also allows us to commonize some bits of the dup2 code.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
7 years agoconf: merge network namespace move & rename on shutdown
Wolfgang Bumiller [Wed, 17 Aug 2016 09:36:39 +0000 (11:36 +0200)]
conf: merge network namespace move & rename on shutdown

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>
7 years agoMerge pull request #1266 from tych0/do-mount-rewriting
Stéphane Graber [Mon, 31 Oct 2016 21:34:57 +0000 (17:34 -0400)]
Merge pull request #1266 from tych0/do-mount-rewriting

Do mount rewriting

7 years agolog: bump LXC_LOG_BUFFER_SIZE to 4096
Tycho Andersen [Mon, 31 Oct 2016 19:48:38 +0000 (19:48 +0000)]
log: bump LXC_LOG_BUFFER_SIZE to 4096

We need to log longer lines due to CRIU arguments.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
7 years agoc/r: explicitly emit bind mounts as criu arguments
Tycho Andersen [Mon, 31 Oct 2016 16:07:25 +0000 (10:07 -0600)]
c/r: explicitly emit bind mounts as criu arguments

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>
7 years agoMerge pull request #1264 from brauner/2016-10-30/fix_lxc_stop_exit_code
Stéphane Graber [Sun, 30 Oct 2016 18:26:54 +0000 (14:26 -0400)]
Merge pull request #1264 from brauner/2016-10-30/fix_lxc_stop_exit_code

tools: use correct exit code for lxc-stop

7 years agotools: use correct exit code for lxc-stop
Christian Brauner [Sun, 30 Oct 2016 17:24:15 +0000 (18:24 +0100)]
tools: use correct exit code for lxc-stop

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>
7 years agocgfs: explicitly check for NULL
Christian Brauner [Sun, 30 Oct 2016 13:44:33 +0000 (14:44 +0100)]
cgfs: explicitly check for NULL

Somehow this implementation of a cgroupfs backend decided to use the hierarchy
numbers it detects in /proc/cgroups and /proc/self/cgroups as indices for
the hierarchy struct. Controller numbering usually starts at 1 but may start at
0 if:

    a) the controller is not mounted on a cgroups v1 hierarchy;
    b) the controller is bound to the cgroups v2 single unified hierarchy; or
    c) the controller is disabled

To avoid having to rework our fallback backend significantly, we should
explicitly check for each controller if hierarchy[i] != NULL.

Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
7 years agocgfs: skip empty entries under /proc/self/cgroup
Christian Brauner [Sun, 30 Oct 2016 12:42:37 +0000 (13:42 +0100)]
cgfs: skip empty entries under /proc/self/cgroup

If cgroupv2 is enabled either alone or together with legacy hierarchies
/proc/self/cgroup can contain entries of the form:

        0::/

These entries need to be skipped.

Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
7 years agocgfs: add print_cgfs_init_debuginfo()
Christian Brauner [Sun, 30 Oct 2016 09:45:13 +0000 (10:45 +0100)]
cgfs: add print_cgfs_init_debuginfo()

Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
7 years agoMerge pull request #1261 from evgeni/lxc-ls-help-fixes
Christian Brauner [Sun, 30 Oct 2016 13:45:54 +0000 (14:45 +0100)]
Merge pull request #1261 from evgeni/lxc-ls-help-fixes

lxc-ls help fixes

7 years agoimprove wording of the help page for lxc-ls
Evgeni Golov [Sun, 30 Oct 2016 13:17:55 +0000 (14:17 +0100)]
improve wording of the help page for lxc-ls

it's "list of columns", not "list of column"

Signed-off-by: Evgeni Golov <evgeni@debian.org>
7 years agoimprove help text for --fancy and --fancy-format
Evgeni Golov [Sun, 30 Oct 2016 13:16:38 +0000 (14:16 +0100)]
improve help text for --fancy and --fancy-format

Signed-off-by: Evgeni Golov <evgeni@debian.org>
7 years agoMerge pull request #1260 from evgeni/find-obs-build-on-debian
Christian Brauner [Sun, 30 Oct 2016 12:40:57 +0000 (13:40 +0100)]
Merge pull request #1260 from evgeni/find-obs-build-on-debian

find OpenSUSE's build also as obs-build

7 years agofind OpenSUSE's build also as obs-build
Evgeni Golov [Sun, 30 Oct 2016 12:32:59 +0000 (13:32 +0100)]
find OpenSUSE's build also as obs-build

this is how it is shipped in Debian and Ubuntu

Signed-off-by: Evgeni Golov <evgeni@debian.org>
7 years agoMerge pull request #1259 from brauner/2016-10-29/lxc_free_cgroup_sigsegv
Stéphane Graber [Sat, 29 Oct 2016 22:36:05 +0000 (18:36 -0400)]
Merge pull request #1259 from brauner/2016-10-29/lxc_free_cgroup_sigsegv

cgfs: fix invalid free()

7 years agocgfs: fix invalid free()
Christian Brauner [Sat, 29 Oct 2016 20:47:51 +0000 (22:47 +0200)]
cgfs: fix invalid free()

And let's be on the safe side by NULLing free()ed variables.

Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
7 years agoMerge pull request #1257 from evgeni/rpm-fixes
Stéphane Graber [Sat, 29 Oct 2016 18:40:04 +0000 (14:40 -0400)]
Merge pull request #1257 from evgeni/rpm-fixes

RPM build fixes

7 years agofix rpm build, include all built files, but only once
Evgeni Golov [Sat, 29 Oct 2016 18:29:18 +0000 (20:29 +0200)]
fix rpm build, include all built files, but only once

Signed-off-by: Evgeni Golov <evgeni@debian.org>
7 years agouse python3_sitearch for including the python code
Evgeni Golov [Sat, 29 Oct 2016 18:29:08 +0000 (20:29 +0200)]
use python3_sitearch for including the python code

Closes: #502
Signed-off-by: Evgeni Golov <evgeni@debian.org>
7 years agoMerge pull request #1252 from stgraber/master
Christian Brauner [Tue, 25 Oct 2016 23:53:17 +0000 (01:53 +0200)]
Merge pull request #1252 from stgraber/master

Fix environment before importing setuptools

7 years agoFix environment before importing setuptools
Stéphane Graber [Tue, 25 Oct 2016 23:08:34 +0000 (19:08 -0400)]
Fix environment before importing setuptools

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
7 years agoMerge pull request #1251 from stgraber/master
Christian Brauner [Tue, 25 Oct 2016 21:23:17 +0000 (23:23 +0200)]
Merge pull request #1251 from stgraber/master

Tweak libtool handling to work with Android

7 years agoTweak libtool handling to work with Android
Stéphane Graber [Tue, 25 Oct 2016 20:39:56 +0000 (16:39 -0400)]
Tweak libtool handling to work with Android

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
7 years agoMerge pull request #1248 from tych0/use-external
Christian Brauner [Tue, 25 Oct 2016 08:21:38 +0000 (10:21 +0200)]
Merge pull request #1248 from tych0/use-external

c/r: use external

7 years agoMerge pull request #1249 from stgraber/master
Serge Hallyn [Tue, 25 Oct 2016 01:23:34 +0000 (20:23 -0500)]
Merge pull request #1249 from stgraber/master

ubuntu: Fix package upgrades requiring proc

7 years agoc/r: use snprintf to compute device name
Tycho Andersen [Mon, 24 Oct 2016 22:55:49 +0000 (16:55 -0600)]
c/r: use snprintf to compute device name

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>
7 years agoc/r: drop duplicate hunk from macvlan case
Tycho Andersen [Mon, 24 Oct 2016 22:55:27 +0000 (16:55 -0600)]
c/r: drop duplicate hunk from macvlan case

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
7 years agoubuntu: Fix package upgrades requiring proc
Stéphane Graber [Mon, 24 Oct 2016 21:38:13 +0000 (17:38 -0400)]
ubuntu: Fix package upgrades requiring proc

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
7 years agoc/r: add checkpoint/restore support for macvlan interfaces
Tycho Andersen [Thu, 22 Sep 2016 23:13:42 +0000 (23:13 +0000)]
c/r: add checkpoint/restore support for macvlan interfaces

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
7 years agoc/r: remember to increment netnr
Tycho Andersen [Wed, 12 Oct 2016 23:18:02 +0000 (23:18 +0000)]
c/r: remember to increment netnr

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>
7 years agoc/r: use --external instead of --veth-pair
Tycho Andersen [Wed, 12 Oct 2016 22:46:09 +0000 (22:46 +0000)]
c/r: use --external instead of --veth-pair

--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>
7 years agoMerge pull request #1245 from stgraber/master
Christian Brauner [Fri, 21 Oct 2016 23:20:46 +0000 (01:20 +0200)]
Merge pull request #1245 from stgraber/master

Setup libtool

7 years agoUse libtool for liblxc.so
Stéphane Graber [Fri, 21 Oct 2016 18:07:29 +0000 (14:07 -0400)]
Use libtool for liblxc.so

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>
7 years agoMerge pull request #1244 from Cypresslin/fix-lxc-copy-B
Christian Brauner [Fri, 21 Oct 2016 11:05:39 +0000 (13:05 +0200)]
Merge pull request #1244 from Cypresslin/fix-lxc-copy-B

tools: correct the argument typo in lxc_copy

7 years agotools: correct the argument typo in lxc_copy
Po-Hsu Lin [Fri, 21 Oct 2016 10:32:18 +0000 (18:32 +0800)]
tools: correct the argument typo in lxc_copy

Correct the backingstorage typo in lxc_copy.

Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
7 years agoMerge pull request #1243 from stgraber/master
Christian Brauner [Thu, 20 Oct 2016 21:45:15 +0000 (23:45 +0200)]
Merge pull request #1243 from stgraber/master

s390x: Fix seccomp handling of personalities

7 years agos390x: Fix seccomp handling of personalities
Stéphane Graber [Thu, 20 Oct 2016 20:35:36 +0000 (16:35 -0400)]
s390x: Fix seccomp handling of personalities

There are no personalities for s390x, so don't list itself as one.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
7 years agoMerge pull request #1241 from jirutka/alpine-setfcap
Christian Brauner [Tue, 18 Oct 2016 16:49:17 +0000 (18:49 +0200)]
Merge pull request #1241 from jirutka/alpine-setfcap

lxc-alpine: do not drop setfcap

7 years agolxc-alpine: do not drop setfcap
Jakub Jirutka [Tue, 18 Oct 2016 16:09:42 +0000 (18:09 +0200)]
lxc-alpine: do not drop setfcap

Signed-off-by: Jakub Jirutka <jakub@jirutka.cz>
7 years agoMerge pull request #1240 from roedie/alpine-fix-extra-packages
Christian Brauner [Tue, 18 Oct 2016 15:22:20 +0000 (17:22 +0200)]
Merge pull request #1240 from roedie/alpine-fix-extra-packages

alpine: Fix installing extra packages

7 years agoalpine: Fix installing extra packages
roedie [Tue, 18 Oct 2016 14:55:16 +0000 (16:55 +0200)]
alpine: Fix installing extra packages
Signed-off-by: Sander Klein <github@roedie.nl>
7 years agoMerge pull request #1234 from brauner/2016-10-14/better_errors_for_lxc_start
Serge Hallyn [Tue, 18 Oct 2016 14:49:29 +0000 (09:49 -0500)]
Merge pull request #1234 from brauner/2016-10-14/better_errors_for_lxc_start

tools: better error reporting for lxc-start

7 years agotools: better error reporting for lxc-start
Christian Brauner [Fri, 14 Oct 2016 13:27:24 +0000 (15:27 +0200)]
tools: better error reporting for lxc-start

Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
7 years agoMerge pull request #1233 from brauner/2016-10-14/allow_overlay
Stéphane Graber [Fri, 14 Oct 2016 16:31:18 +0000 (12:31 -0400)]
Merge pull request #1233 from brauner/2016-10-14/allow_overlay

tools: make overlay a valid backend for lxc-copy

7 years agoMerge pull request #1235 from Dean4Devil/master
Stéphane Graber [Fri, 14 Oct 2016 16:30:42 +0000 (12:30 -0400)]
Merge pull request #1235 from Dean4Devil/master

Add voidlinux distribution

7 years agoAdd voidlinux distribution
Gregor Reitzenstein [Fri, 14 Oct 2016 11:06:29 +0000 (13:06 +0200)]
Add voidlinux distribution

Signed-off-by: Gregor Reitzenstein <dean4devil@paranoidlabs.org>
7 years agotools: make overlay valid backend
Christian Brauner [Fri, 14 Oct 2016 12:20:41 +0000 (14:20 +0200)]
tools: make overlay valid backend

So far, users could only create overlay snapshots by specifying -B overlayfs
and not with -B overlay. This adds support for -B overlay.

Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
7 years agotools: fix coding style in lxc_attach
Christian Brauner [Fri, 14 Oct 2016 12:20:16 +0000 (14:20 +0200)]
tools: fix coding style in lxc_attach

Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
7 years agoMerge pull request #1232 from Cypresslin/fix-s390x-download
Christian Brauner [Fri, 14 Oct 2016 09:05:01 +0000 (11:05 +0200)]
Merge pull request #1232 from Cypresslin/fix-s390x-download

tests: fix image download for s390x

7 years agotests: fix image download for s390x
Po-Hsu Lin [Fri, 14 Oct 2016 08:17:30 +0000 (16:17 +0800)]
tests: fix image download for s390x

Make release selection more flexible.
Update the KNOWN_RELEAES list, add yakkety and remove vivid.

Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
7 years agoMerge pull request #1230 from Jafaral/master
Stéphane Graber [Thu, 13 Oct 2016 23:57:30 +0000 (19:57 -0400)]
Merge pull request #1230 from Jafaral/master

Drop leftover references to lxc_strerror().

7 years agoDrop leftover references to lxc_strerror().
Jafar Al-Gharaibeh [Thu, 13 Oct 2016 23:35:29 +0000 (18:35 -0500)]
Drop leftover references to lxc_strerror().

lxc_strerror() was dropped long time ago, in 2009 to be exact.

Related commit:
https://github.com/lxc/lxc/commit/7cee8789514fb42d6a48d50b904e24284f5526e3

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
7 years agoMerge pull request #1229 from stgraber/master
Serge Hallyn [Thu, 13 Oct 2016 19:15:44 +0000 (14:15 -0500)]
Merge pull request #1229 from stgraber/master

archlinux: Fix resolving

7 years agoarchlinux: Fix resolving
Stéphane Graber [Thu, 13 Oct 2016 19:02:56 +0000 (15:02 -0400)]
archlinux: Fix resolving

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
7 years agoMerge pull request #1228 from stgraber/master
Serge Hallyn [Thu, 13 Oct 2016 18:38:35 +0000 (13:38 -0500)]
Merge pull request #1228 from stgraber/master

archlinux: Do DHCP on eth0

7 years agoarchlinux: Do DHCP on eth0
Stéphane Graber [Thu, 13 Oct 2016 18:32:03 +0000 (14:32 -0400)]
archlinux: Do DHCP on eth0

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
7 years agoMerge pull request #1226 from jirutka/alpine-shm
Christian Brauner [Wed, 12 Oct 2016 11:49:32 +0000 (13:49 +0200)]
Merge pull request #1226 from jirutka/alpine-shm

lxc-alpine: mount /dev/shm as tmpfs

7 years agolxc-alpine: mount /dev/shm as tmpfs
Jakub Jirutka [Wed, 12 Oct 2016 11:32:18 +0000 (13:32 +0200)]
lxc-alpine: mount /dev/shm as tmpfs

Signed-off-by: Jakub Jirutka <jakub@jirutka.cz>
7 years agoMerge pull request #1225 from jiazhang0/master
Christian Brauner [Wed, 12 Oct 2016 09:49:57 +0000 (11:49 +0200)]
Merge pull request #1225 from jiazhang0/master

log: sanity check the returned value from snprintf()

7 years agolog: sanity check the returned value from snprintf()
Lans Zhang [Mon, 10 Oct 2016 13:49:55 +0000 (21:49 +0800)]
log: sanity check the returned value from snprintf()

The returned value from snprintf() should be checked carefully.

This bug can be leveraged to execute arbitrary code through carefully
constructing the payload, e.g,

lxc-freeze -n `python -c "print 'AAAAAAAA' + 'B'*959"` -P PADPAD -o /tmp/log

This command running on Ubuntu 14.04 (x86-64) can cause a segment fault.

Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
7 years agoMerge pull request #1224 from evgeni/python-utf8
Christian Brauner [Sat, 8 Oct 2016 17:18:17 +0000 (19:18 +0200)]
Merge pull request #1224 from evgeni/python-utf8

mark the python examples as having utf-8 encoding

7 years agomark the python examples as having utf-8 encoding
Evgeni Golov [Sat, 8 Oct 2016 16:29:30 +0000 (18:29 +0200)]
mark the python examples as having utf-8 encoding

this allows running them also under Python2, which otherwise
would choke on Stéphane's name and error out with
 SyntaxError: Non-ASCII character '\xc3' in file …

Signed-off-by: Evgeni Golov <evgeni@debian.org>
7 years agoMerge pull request #1223 from evgeni/unit-doc
Christian Brauner [Sat, 8 Oct 2016 13:02:03 +0000 (15:02 +0200)]
Merge pull request #1223 from evgeni/unit-doc

add Documentation entries to lxc and lxc@ units

7 years agoadd Documentation entries to lxc and lxc@ units
Evgeni Golov [Sat, 8 Oct 2016 12:08:21 +0000 (14:08 +0200)]
add Documentation entries to lxc and lxc@ units

Signed-off-by: Evgeni Golov <evgeni@debian.org>
7 years agoMerge pull request #1171 from brauner/2016-09-06/detect_ramfs_rootfs
Serge Hallyn [Thu, 6 Oct 2016 13:34:16 +0000 (08:34 -0500)]
Merge pull request #1171 from brauner/2016-09-06/detect_ramfs_rootfs

improve detect_ramfs_rootfs() and add test

7 years agoMerge pull request #1217 from brauner/2016-09-29/lxc_checkconfig
Stéphane Graber [Wed, 5 Oct 2016 08:16:51 +0000 (04:16 -0400)]
Merge pull request #1217 from brauner/2016-09-29/lxc_checkconfig

tools: lxc-checkconfig conditionalize devpts check

7 years agoMerge pull request #1221 from stgraber/master
Christian Brauner [Tue, 4 Oct 2016 17:12:55 +0000 (19:12 +0200)]
Merge pull request #1221 from stgraber/master

Define LXC_DEVEL to detect development releases

7 years agoDefine LXC_DEVEL to detect development releases
Stéphane Graber [Tue, 4 Oct 2016 16:31:29 +0000 (18:31 +0200)]
Define LXC_DEVEL to detect development releases

This can be used by downstreams to improve their "feature" checks.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
8 years agotools: lxc-checkconfig conditionalize devpts check
Christian Brauner [Thu, 29 Sep 2016 08:44:09 +0000 (10:44 +0200)]
tools: lxc-checkconfig conditionalize devpts check

Only check for DEVPTS_MULTIPLE_INSTANCES on kernels < 4.7.

Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
8 years agoMerge pull request #1214 from roman-mueller/fix_centos_spelling
Christian Brauner [Wed, 28 Sep 2016 09:15:53 +0000 (11:15 +0200)]
Merge pull request #1214 from roman-mueller/fix_centos_spelling

Fix spelling of CentOS in the templates

8 years agoFix spelling of CentOS in the templates
Roman Mueller [Wed, 28 Sep 2016 08:03:39 +0000 (10:03 +0200)]
Fix spelling of CentOS in the templates

Signed-off-by: Roman Mueller <roman.mueller@gmail.com>
8 years agotests: add test for detect_ramfs_rootfs()
Christian Brauner [Tue, 6 Sep 2016 12:51:01 +0000 (14:51 +0200)]
tests: add test for detect_ramfs_rootfs()

Signed-off-by: Christian Brauner <christian.brauner@canonical.com>