]> git.ipfire.org Git - thirdparty/lxc.git/log
thirdparty/lxc.git
9 years agoInclude all lxcmntent.h function declarations on Bionic 1063/head
Preetam D'Souza [Tue, 28 Jun 2016 03:12:12 +0000 (23:12 -0400)] 
Include all lxcmntent.h function declarations on Bionic

Newer versions of Android (5.0+, aka API Level 21+) include mntent.h,
which declares setmntent and endmntent. This hits an edge
case with the preprocessor checks in lxcmntent.h because HAVE_SETMNTENT
and HAVE_ENDMNTENT are both defined (in Bionic's mntent.h), but conf.c
always includes lxcmntent.h on Bionic! As a result, we get compiler
warnings of implicit function declarations for setmntent endmntent.

This patch always includes setmntent/endmntent/hasmntopt function
declarations on Bionic, which gets rid of these warnings.

Signed-off-by: Preetam D'Souza <preetamjdsouza@gmail.com>
9 years agoMerge pull request #1062 from tych0/fully-manage-cgroups
Stéphane Graber [Tue, 28 Jun 2016 01:15:37 +0000 (21:15 -0400)] 
Merge pull request #1062 from tych0/fully-manage-cgroups

c/r: use criu's "full" mode for cgroups

9 years agoc/r: use criu's "full" mode for cgroups 1062/head
Tycho Andersen [Mon, 27 Jun 2016 22:24:09 +0000 (22:24 +0000)] 
c/r: use criu's "full" mode for cgroups

A while ago cgroup modes were introduced to CRIU, which slightly changed
the behavior w.r.t. cgroups under the hood. What we're really after is
criu's --full mode, i.e. even if a particular cgroup directory exists
(in particular /lxc/$container[-$number] will, since we create it), we
should restore perms on that cgroup.

Things worked just fine for actual properties (except "special" properties
as criu refers to them, which I've just sent a patch for) because liblxc
creates no subdirectories, just the TLD.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
9 years agolxc-debian: add btrfs support
Laurent Vivier [Fri, 17 Jun 2016 01:19:32 +0000 (03:19 +0200)] 
lxc-debian: add btrfs support

copied from lxc-ubuntu.in

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Acked-by: Serge Hallyn <serge@hallyn.com>
9 years agolxc-debian: add --flush-cache
Laurent Vivier [Fri, 17 Jun 2016 01:19:31 +0000 (03:19 +0200)] 
lxc-debian: add --flush-cache

copied from lxc-ubuntu.in

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Acked-by: Serge Hallyn <serge@hallyn.com>
9 years agoAppArmor: add make-rslave to usr.bin.lxc-start
Wolfgang Bumiller [Mon, 27 Jun 2016 20:20:00 +0000 (16:20 -0400)] 
AppArmor: add make-rslave to usr.bin.lxc-start

The profile already contains
  mount options=(rw, make-slave) -> **,

Which allows going through all mountpoints with make-slave,
so it seems to make sense to also allow the directly
recursive variant with "make-rslave".

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
9 years agoMerge pull request #1061 from stgraber/master
Serge Hallyn [Mon, 27 Jun 2016 20:11:08 +0000 (15:11 -0500)] 
Merge pull request #1061 from stgraber/master

More apparmor tweaks

9 years agoapparmor: Update mount states handling 1061/head
Stéphane Graber [Mon, 27 Jun 2016 19:15:15 +0000 (15:15 -0400)] 
apparmor: Update mount states handling

Properly list all of the states and the right apparmor stanza for them,
then comment them all as actually enabling this would currently let the
user bypass apparmor entirely.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
9 years agoapparmor: allow mount move
Stéphane Graber [Mon, 27 Jun 2016 19:11:16 +0000 (15:11 -0400)] 
apparmor: allow mount move

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
9 years agoMerge pull request #1056 from AnrDaemon/patch-1
Stéphane Graber [Fri, 24 Jun 2016 03:21:44 +0000 (23:21 -0400)] 
Merge pull request #1056 from AnrDaemon/patch-1

Force lxc-instance to behave like a good Upstart client

9 years agoForce lxc-instance to behave like a good Upstart client 1056/head
AnrDaemon [Fri, 24 Jun 2016 03:19:51 +0000 (06:19 +0300)] 
Force lxc-instance to behave like a good Upstart client

Remove unnecessary shell wrap around job start.
Force foreground execution to allow job monitoring and control.

Signed-off-by Andrey Repin <anrdaemon@yandex.ru>

9 years agoMerge pull request #1055 from stgraber/master
Christian Brauner [Thu, 23 Jun 2016 21:28:19 +0000 (23:28 +0200)] 
Merge pull request #1055 from stgraber/master

apparmor: Allow bind-mounts and {r}shared/{r}private

9 years agoapparmor: Allow bind-mounts and {r}shared/{r}private 1055/head
Stéphane Graber [Thu, 23 Jun 2016 20:01:29 +0000 (16:01 -0400)] 
apparmor: Allow bind-mounts and {r}shared/{r}private

Bind-mounts aren't harmful in containers, so long as they're not used to
bypass MAC policies.

This change allows bind-mounting of any path which isn't a dangerous
filesystem that's otherwise blocked by apparmor.

This also allows switching paths {r}shared or {r}private.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
9 years agoMerge pull request #1053 from tenforward/plamo
Christian Brauner [Tue, 21 Jun 2016 12:33:39 +0000 (14:33 +0200)] 
Merge pull request #1053 from tenforward/plamo

plamo: Improve Plamo template

9 years agoplamo: Improve Plamo template 1053/head
KATOH Yasufumi [Tue, 21 Jun 2016 02:06:25 +0000 (11:06 +0900)] 
plamo: Improve Plamo template

* configure to start only the minimum of service
* add ntp, kmod to ignore packages

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
9 years agoMerge pull request #1052 from terceiro/debian-init
Stéphane Graber [Sat, 18 Jun 2016 12:29:04 +0000 (08:29 -0400)] 
Merge pull request #1052 from terceiro/debian-init

lxc-debian: make sure init is installed

9 years agolxc-debian: make sure init is installed 1052/head
Antonio Terceiro [Fri, 17 Jun 2016 22:00:56 +0000 (19:00 -0300)] 
lxc-debian: make sure init is installed

init 1.34 is not "Essential" anymore, in order to make it not required
on minimal chroots, docker containers, etc. Because of that we now need
to manually include it on systems that are expected to boot.

Signed-off-by: Antonio Terceiro <terceiro@debian.org>
9 years agoMerge pull request #1047 from brauner/mips_container
Stéphane Graber [Mon, 13 Jun 2016 22:36:29 +0000 (18:36 -0400)] 
Merge pull request #1047 from brauner/mips_container

lxc-debian: allow to specify a binfmt interpreter

9 years agolxc-debian: allow to specify a binfmt interpreter 1047/head
Laurent Vivier [Mon, 13 Jun 2016 12:34:06 +0000 (14:34 +0200)] 
lxc-debian: allow to specify a binfmt interpreter

If you specify an interpreter path with "-I" or "--interpreter-path",
the architecture of the debian container can differ from the one of
the host.

Before creating the container, binfmt must be configured on the host:
the script checks the name of the interpreter in /proc/sys/fs/binfmt_misc/
to know where to install it in the container.

To create a MIPS container on an x86_64 host:

$ cat /proc/sys/fs/binfmt_misc/qemu-mips
enabled
interpreter //qemu-mips
flags: OC
offset 0
magic 7f454c4601020100000000000000000000020008
mask ffffffffffffff00fffffffffffffffffffeffff

$ sudo lxc-create -n virtmips-stretch -t debian -- \
                 --arch=mips \
                 --interpreter-path=./mips-linux-user/qemu-mips \
                 --mirror=http://ftp.debian.org/debian \
                 --release=stretch

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
9 years agoMerge pull request #1045 from thtanaka/console-login-ol72
Serge Hallyn [Thu, 9 Jun 2016 21:38:49 +0000 (16:38 -0500)] 
Merge pull request #1045 from thtanaka/console-login-ol72

Unable to login via console in OL7.2

9 years agoUnable to login via console in OL7.2 1045/head
Thomas Tanaka [Thu, 9 Jun 2016 20:41:02 +0000 (13:41 -0700)] 
Unable to login via console in OL7.2

There is container-getty.service with OL7.2 systemd, it
is also used for managing the getty service, use that
instead and not manually create it.

Signed-off-by: Thomas Tanaka <thomas.tanaka@oracle.com>
9 years agoMerge pull request #1043 from stgraber/master
Christian Brauner [Tue, 7 Jun 2016 19:29:52 +0000 (21:29 +0200)] 
Merge pull request #1043 from stgraber/master

Drop lxc-devsetup as unneeded by current autodev

9 years agoDrop lxc-devsetup as unneeded by current autodev 1043/head
Stéphane Graber [Tue, 7 Jun 2016 19:10:24 +0000 (15:10 -0400)] 
Drop lxc-devsetup as unneeded by current autodev

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
9 years agoMerge pull request #1042 from GreatFruitOmsk/python-rpath
Christian Brauner [Mon, 6 Jun 2016 10:49:27 +0000 (12:49 +0200)] 
Merge pull request #1042 from GreatFruitOmsk/python-rpath

python-lxc: follow global rpath setting for autotools builds

9 years agopython-lxc: follow global rpath setting for autotools builds 1042/head
Aleksandr Mezin [Mon, 6 Jun 2016 01:50:59 +0000 (07:50 +0600)] 
python-lxc: follow global rpath setting for autotools builds

When LXC is configured with --enable-rpath, I expect Python bindings
to be able to find the library in a non-standard location, just like
LXC command-line tools.

Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
9 years agoMerge pull request #1040 from odyssey4me/include_apt_transport_https
Stéphane Graber [Fri, 3 Jun 2016 15:37:02 +0000 (11:37 -0400)] 
Merge pull request #1040 from odyssey4me/include_apt_transport_https

Move apt-transport-https to global packages_template

9 years agoMove apt-transport-https to global packages_template 1040/head
Jesse Pretorius [Fri, 3 Jun 2016 15:33:25 +0000 (16:33 +0100)] 
Move apt-transport-https to global packages_template

In many environments the preference is to configure containers with
apt mirrors that are SSL-secured.

When building containers using the download template this can't be
done unless an insecure mirror is first used to install the
apt-transport-https package, then the sources reconfigured to
use the https URL.

When building containers without using the download template this
can't be done unless the container creator specifically includes
this package in the package list at build time. It seems more
intuitive to me to have the package installed by default.

Commit 396f75abb3d319adc7d871b94b08bc6bb9c49585 added the package
to the minbase variant, but this variant is not used by the download
template build process. The build process instead specifies no
variant, so this patch moves the package from the packages_template
package list in the minbase variant to the global packages_template
package list, ensuring that this package is included in all Ubuntu
build images that use the lxc-ubuntu template.

Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
9 years agoMerge pull request #1037 from evgeni/lxc.service-simple
Stéphane Graber [Thu, 2 Jun 2016 13:44:31 +0000 (09:44 -0400)] 
Merge pull request #1037 from evgeni/lxc.service-simple

start containers in foreground when using the lxc@.service

9 years agostart containers in foreground when using the lxc@.service 1037/head
Evgeni Golov [Thu, 2 Jun 2016 13:38:47 +0000 (15:38 +0200)] 
start containers in foreground when using the lxc@.service

lxc-start started to default to daemonize the container when starting
this conflicts with type=simple of the systemd unit

call lxc-start with -F and thus force execution in foreground
that way we can feed the log to journald properly and keep type=simple

Debian-Bug: https://bugs.debian.org/826100
Signed-off-by: Evgeni Golov <evgeni@golov.de>
9 years agoMerge pull request #1036 from GreatFruitOmsk/python-setuptools
Stéphane Graber [Tue, 31 May 2016 19:40:46 +0000 (15:40 -0400)] 
Merge pull request #1036 from GreatFruitOmsk/python-setuptools

python-lxc: fix breakage caused by the switch to setuptools

9 years agopython-lxc: put egg-info into build directory 1036/head
Aleksandr Mezin [Tue, 31 May 2016 11:36:23 +0000 (17:36 +0600)] 
python-lxc: put egg-info into build directory

To keep source directory clean.

Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
9 years agopython-lxc: always set --root for install command
Aleksandr Mezin [Tue, 31 May 2016 11:33:59 +0000 (17:33 +0600)] 
python-lxc: always set --root for install command

This implies '--single-version-externally-managed', which we
actually want for autotools builds.

Fixes current problems with jenkins test suite.

Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
9 years agoMerge pull request #1035 from GreatFruitOmsk/python-setuptools
Stéphane Graber [Tue, 31 May 2016 04:19:29 +0000 (00:19 -0400)] 
Merge pull request #1035 from GreatFruitOmsk/python-setuptools

python-lxc: use setuptools instead of distutils

9 years agopython-lxc: use setuptools instead of distutils 1035/head
Aleksandr Mezin [Mon, 30 May 2016 21:13:24 +0000 (03:13 +0600)] 
python-lxc: use setuptools instead of distutils

setuptools is recommended by Python Packaging Guide
https://python-packaging-user-guide.readthedocs.io/en/latest/current/

It contains some useful extensions like 'develop' command. Also it
is required for building wheels AFAIK.

The only downside is an extra build-time dependency. setuptools are
packaged in both Debian and Ubuntu (python3-setuptools), as well as
other major distros, so it shouldn't be an issue, I think.

Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
9 years agoMerge pull request #1034 from GreatFruitOmsk/master
Stéphane Graber [Sat, 28 May 2016 19:21:16 +0000 (15:21 -0400)] 
Merge pull request #1034 from GreatFruitOmsk/master

python-lxc: change distribution name _lxc -> lxc

9 years agopython-lxc: change distribution name _lxc -> lxc 1034/head
Aleksandr Mezin [Sat, 28 May 2016 07:40:15 +0000 (13:40 +0600)] 
python-lxc: change distribution name _lxc -> lxc

Distribution name starting with underscore is considered invalid by
many tools. For example, you can't list such name in
install_requires in your setup.py.

Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
9 years agoMerge pull request #1032 from GreatFruitOmsk/travis-vpath
Stéphane Graber [Fri, 27 May 2016 17:56:49 +0000 (13:56 -0400)] 
Merge pull request #1032 from GreatFruitOmsk/travis-vpath

travis: test VPATH builds

9 years agoMerge pull request #1031 from GreatFruitOmsk/pypi
Stéphane Graber [Fri, 27 May 2016 17:55:40 +0000 (13:55 -0400)] 
Merge pull request #1031 from GreatFruitOmsk/pypi

python-lxc: enable standalone builds

9 years agopython-lxc: search for lxc library and headers using pkg-config 1031/head
Aleksandr Mezin [Fri, 27 May 2016 11:58:15 +0000 (17:58 +0600)] 
python-lxc: search for lxc library and headers using pkg-config

Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
9 years agotravis: ensure 'make install' doesn't fail 1032/head
Aleksandr Mezin [Fri, 27 May 2016 15:40:13 +0000 (21:40 +0600)] 
travis: ensure 'make install' doesn't fail

Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
9 years agotravis: test VPATH builds
Aleksandr Mezin [Fri, 27 May 2016 12:47:23 +0000 (18:47 +0600)] 
travis: test VPATH builds

It looks like VPATH (split source and build directories) builds
are frequently broken. So let's test them on travis-ci.

Personally I use VPATH build in my deployment scripts.

Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
9 years agopython-lxc: pass include/library dirs as arguments to setup.py
Aleksandr Mezin [Fri, 27 May 2016 09:38:42 +0000 (15:38 +0600)] 
python-lxc: pass include/library dirs as arguments to setup.py

Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
9 years agopython-lxc: don't use private lxc/confile.h
Aleksandr Mezin [Fri, 27 May 2016 09:13:18 +0000 (15:13 +0600)] 
python-lxc: don't use private lxc/confile.h

Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
9 years agopython-lxc: don't use private lxc/utils.h
Aleksandr Mezin [Thu, 26 May 2016 10:07:28 +0000 (16:07 +0600)] 
python-lxc: don't use private lxc/utils.h

Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
9 years agopython-lxc: don't use private lxc/namespace.h
Aleksandr Mezin [Thu, 26 May 2016 10:03:57 +0000 (16:03 +0600)] 
python-lxc: don't use private lxc/namespace.h

Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
9 years agoMerge pull request #1029 from joerg-krause/master
Christian Brauner [Mon, 23 May 2016 19:29:49 +0000 (21:29 +0200)] 
Merge pull request #1029 from joerg-krause/master

Fix redefinition of struct in6_addr

9 years agoFix redefinition of struct in6_addr 1029/head
Jörg Krause [Thu, 19 May 2016 19:51:27 +0000 (21:51 +0200)] 
Fix redefinition of struct in6_addr

struct in6_addr is both defined in the C library header <netinet/in.h>
and the Linux kernel header <linux/in6.h>.

lxc_user_nic.c includes both <netinet/in.h> and <linux/if_bridge.h>. The
later one includes <linux/in6.h>.

This breaks build with the musl libc:
  error: redefinition of ‘struct in6_addr’

As lxc_user_nic.c does not use any references from <linux/if_bridge.h> it
is safe to remove this header.

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
9 years agoMerge pull request #1022 from Lisio/master
Stéphane Graber [Wed, 11 May 2016 20:41:00 +0000 (16:41 -0400)] 
Merge pull request #1022 from Lisio/master

Fix hostname in interface config for apline template

9 years agoFix hostname in interface config for apline template 1022/head
Andrey Kostin [Wed, 11 May 2016 20:32:40 +0000 (23:32 +0300)] 
Fix hostname in interface config for apline template

Signed-off-by: Andrey Kostin <andrey@kostin.email>
9 years agoMerge pull request #1021 from odyssey4me/include_apt_transport_https
Stéphane Graber [Wed, 11 May 2016 17:41:48 +0000 (13:41 -0400)] 
Merge pull request #1021 from odyssey4me/include_apt_transport_https

Add apt-transport-https to minbase variant packages_template

9 years agoAdd apt-transport-https to minbase variant packages_template 1021/head
Jesse Pretorius [Wed, 11 May 2016 17:17:58 +0000 (18:17 +0100)] 
Add apt-transport-https to minbase variant packages_template

In many environments the preference is to configure containers with
apt mirrors that are SSL-secured.

When building containers using the download template this can't be
done unless an insecure mirror is first used to install the
apt-transport-https package, then the sources reconfigured to
use the https URL.

When building containers without using the download template this
can't be done unless the container creator specifically includes
this package in the package list at build time.

It seems more intuitive to me to have the package installed by
default. This patch includes the required package for the minbase
variant only as this is the default.

Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
9 years agoMerge pull request #1020 from stgraber/master
Christian Brauner [Wed, 11 May 2016 17:17:13 +0000 (19:17 +0200)] 
Merge pull request #1020 from stgraber/master

Also allow fstype=fuse for fuse filesystems

9 years agoAlso allow fstype=fuse for fuse filesystems 1020/head
Stéphane Graber [Wed, 11 May 2016 16:59:23 +0000 (12:59 -0400)] 
Also allow fstype=fuse for fuse filesystems

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
9 years agoMerge pull request #1019 from tych0/dont-force-irmap
Christian Brauner [Wed, 11 May 2016 14:47:50 +0000 (16:47 +0200)] 
Merge pull request #1019 from tych0/dont-force-irmap

Dont force irmap

9 years agoc/r: add an option to use faster inotify support in CRIU 1019/head
Tycho Andersen [Wed, 11 May 2016 13:51:11 +0000 (07:51 -0600)] 
c/r: add an option to use faster inotify support in CRIU

The idea here is that criu can use open_by_handle on a configuration which
will preserve inodes on moves across hosts, but shouldn't do that on
configurations which won't preserve inodes. Before, we forced it to always
be slow, but we don't have to do this.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
9 years agoMerge pull request #1017 from tych0/increase-log-line-size
Stéphane Graber [Tue, 10 May 2016 22:51:18 +0000 (18:51 -0400)] 
Merge pull request #1017 from tych0/increase-log-line-size

log: remove duplicate definitons and bump buffer size

9 years agoc/r: rearrange things to pass struct migrate_opts all the way down
Tycho Andersen [Fri, 6 May 2016 18:19:16 +0000 (18:19 +0000)] 
c/r: rearrange things to pass struct migrate_opts all the way down

If we don't do this, we'll end up changing the function signatures for the
internal __criu_* functions each time we add a new parameter, which will
get very annoying very quickly. Since we already have the user's arguments
struct, let's just pass that all the way down.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
9 years agolog: remove duplicate definitons and bump buffer size 1017/head
Tycho Andersen [Mon, 9 May 2016 21:37:26 +0000 (21:37 +0000)] 
log: remove duplicate definitons and bump buffer size

When writing out the CRIU exec command, we're bumping up against the buffer
size limit. Let's increase it so we can avoid:

lxc 20160509213229.921 WARN     lxc_log - log.c:log_append_logfile:111 - truncated next event from 523 to 512 bytes

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
9 years agoMerge pull request #1015 from stewartbrodie/confile-value-quotes
Serge Hallyn [Tue, 10 May 2016 19:16:56 +0000 (14:16 -0500)] 
Merge pull request #1015 from stewartbrodie/confile-value-quotes

Allow configuration file values to be quoted

9 years agoAllow configuration file values to be quoted 1015/head
Stewart Brodie [Tue, 10 May 2016 12:57:00 +0000 (13:57 +0100)] 
Allow configuration file values to be quoted

If the value starts and ends with matching quote characters, those
characters are stripped automatically.   Quote characters are the
single quote (') or double quote (").  The quote removal is done after
the whitespace trimming.

This is needed particularly in order that lxc.environment values may
have trailing spaces.  However, the quote removal is done for all values
in the parse_line function, as it has non-const access to the value.

Signed-off-by: Stewart Brodie <stewart@metahusky.net>
9 years agoMerge pull request #1014 from hallyn/2016-05-09/procnet
Christian Brauner [Mon, 9 May 2016 21:37:42 +0000 (23:37 +0200)] 
Merge pull request #1014 from hallyn/2016-05-09/procnet

Unshare netns after setting the userns mappings

9 years agoUnshare netns after setting the userns mappings 1014/head
Serge Hallyn [Mon, 9 May 2016 20:30:46 +0000 (15:30 -0500)] 
Unshare netns after setting the userns mappings

so that there is a root uid mapping for the /proc/net files.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
9 years agoMerge pull request #1013 from hartnellfoster/bugfix_20160509
Christian Brauner [Mon, 9 May 2016 11:51:20 +0000 (13:51 +0200)] 
Merge pull request #1013 from hartnellfoster/bugfix_20160509

Added OR statement for cases of ID = rhel in RHEL 7+

9 years agoAdded OR statement for cases of ID = rhel in RHEL 7+ 1013/head
Hartnell Foster [Mon, 9 May 2016 11:42:56 +0000 (12:42 +0100)] 
Added OR statement for cases of ID = rhel in RHEL 7+

Signed-off-by: Hartnell Foster <hartnell.foster@bbc.co.uk>
9 years agoMerge pull request #1008 from brauner/bugfix_branch
Serge Hallyn [Mon, 9 May 2016 03:54:20 +0000 (22:54 -0500)] 
Merge pull request #1008 from brauner/bugfix_branch

sync.c: use correct types

9 years agosync.c: use correct types 1008/head
Christian Brauner [Sat, 7 May 2016 05:40:33 +0000 (07:40 +0200)] 
sync.c: use correct types

Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
9 years agoMerge pull request #1010 from creideiki/fix-cap-sys-resource-typo
Christian Brauner [Sun, 8 May 2016 09:19:48 +0000 (11:19 +0200)] 
Merge pull request #1010 from creideiki/fix-cap-sys-resource-typo

Change sys_resources to sys_resource.

9 years agoChange sys_resources to sys_resource. 1010/head
Karl-Johan Karlsson [Sun, 8 May 2016 08:38:31 +0000 (10:38 +0200)] 
Change sys_resources to sys_resource.

gentoo.moresecure.conf tries to drop the capability CAP_SYS_RESOURCES.
However, that capability doesn't exist, so the container doesn't start.
Change it to CAP_SYS_RESOURCE, according to capabilities(7).

Also correct the same typo in a comment in slackware.common.conf.

Signed-off-by: Karl-Johan Karlsson <creideiki@ferretporn.se>
9 years agoMerge pull request #1005 from tych0/warn-about-unexpected-sync-size
Serge Hallyn [Fri, 6 May 2016 23:16:21 +0000 (18:16 -0500)] 
Merge pull request #1005 from tych0/warn-about-unexpected-sync-size

sync: fail on unexpected message sizes

9 years agosync: fail on unexpected message sizes 1005/head
Tycho Andersen [Fri, 6 May 2016 16:21:39 +0000 (11:21 -0500)] 
sync: fail on unexpected message sizes

I think (?) this may be related to our hanging monitor bug. Let's do this
anyway, as it's probably a good idea.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
9 years agoMerge pull request #1004 from Lisio/alpine-hostname
Christian Brauner [Thu, 5 May 2016 20:51:21 +0000 (22:51 +0200)] 
Merge pull request #1004 from Lisio/alpine-hostname

Force DHCP client to send hostname

9 years agoForce DHCP client to send hostname 1004/head
Lisio [Thu, 5 May 2016 04:35:36 +0000 (08:35 +0400)] 
Force DHCP client to send hostname

Required for proper applying dnsmasq config entries.

Signed-off-by: Andrey Kostin <andrey@kostin.email>
9 years agoMerge pull request #998 from thtanaka/network-config
Christian Brauner [Mon, 2 May 2016 21:14:46 +0000 (23:14 +0200)] 
Merge pull request #998 from thtanaka/network-config

Improve on the case where default networking config is incomplete

9 years agoImprove on the case where default networking config is incomplete 998/head
Thomas Tanaka [Mon, 2 May 2016 18:30:30 +0000 (11:30 -0700)] 
Improve on the case where default networking config is incomplete

Signed-off-by: Thomas Tanaka <thomas.tanaka@oracle.com>
9 years agoMerge pull request #997 from ysbnim/master
Christian Brauner [Mon, 2 May 2016 09:46:20 +0000 (11:46 +0200)] 
Merge pull request #997 from ysbnim/master

Update Korean manuals

9 years agodoc: Add logging option to Korean lxc-attach(1) 997/head
Sungbae Yoo [Mon, 2 May 2016 09:25:29 +0000 (18:25 +0900)] 
doc: Add logging option to Korean lxc-attach(1)

Update for commit f43d63b

Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
9 years agoMerge pull request #995 from ar45/fix_system_error_init_container_failed
Christian Brauner [Sun, 1 May 2016 21:42:15 +0000 (23:42 +0200)] 
Merge pull request #995 from ar45/fix_system_error_init_container_failed

set PyErr when Container.__init__ fails

9 years agoMerge pull request #996 from ar45/add_network_type_to_keys
Christian Brauner [Sun, 1 May 2016 18:38:57 +0000 (20:38 +0200)] 
Merge pull request #996 from ar45/add_network_type_to_keys

Expose lxc.network.type through lxc_list_nicconfigs()

9 years agoAdded `type` to keys in lxc_list_nicconfigs 996/head
Aron Podrigal [Sun, 1 May 2016 16:13:39 +0000 (12:13 -0400)] 
Added `type` to keys in lxc_list_nicconfigs

Signed-off-by: Aron Podrigal <aronp@guaranteedplus.com>
9 years agoFixed - set PyErr when Container.__init__ fails 995/head
Aron Podrigal [Sun, 1 May 2016 15:06:53 +0000 (11:06 -0400)] 
Fixed - set PyErr when Container.__init__ fails

When container init failed for whatever reason, previously it resulted
in a `SystemError: NULL result without error in PyObject_Call`
This will now result in a RuntimeError with the error message
previously printed to stderr.

Signed-off-by: Aron Podrigal <aronp@guaranteedplus.com>
9 years agoMerge pull request #993 from walkerning/check-tty
Stéphane Graber [Sun, 1 May 2016 02:17:42 +0000 (04:17 +0200)] 
Merge pull request #993 from walkerning/check-tty

Check if the stdout is a terminal in lxc-checkconfig

9 years agoCheck if stdout is a terminal in lxc-checkconfig 993/head
walkerning [Sat, 30 Apr 2016 17:06:29 +0000 (01:06 +0800)] 
Check if stdout is a terminal in lxc-checkconfig

Let lxc-checkconfig write to non-tty stdout without color control
characters
Signed-off-by: walkerning <foxdoraame@gmail.com>
9 years agoMerge pull request #991 from brauner/2016-04-28/less_syscall_for_lxc_ls
Serge Hallyn [Fri, 29 Apr 2016 18:26:26 +0000 (13:26 -0500)] 
Merge pull request #991 from brauner/2016-04-28/less_syscall_for_lxc_ls

2016 04 28/less syscall for lxc ls

9 years agolxc-ls: non-functional changes 991/head
Christian Brauner [Thu, 28 Apr 2016 20:58:14 +0000 (22:58 +0200)] 
lxc-ls: non-functional changes

Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
9 years agolxc-ls: use fewer syscalls when doing ipc
Christian Brauner [Wed, 27 Apr 2016 12:27:51 +0000 (14:27 +0200)] 
lxc-ls: use fewer syscalls when doing ipc

Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
9 years agoMerge pull request #978 from evgeni/lsb-init-scripts
Stéphane Graber [Mon, 25 Apr 2016 13:55:49 +0000 (15:55 +0200)] 
Merge pull request #978 from evgeni/lsb-init-scripts

don't make sysv init scripts dependant on distribution specifics

9 years agoMerge pull request #987 from tenforward/japanese
Christian Brauner [Mon, 25 Apr 2016 10:35:19 +0000 (12:35 +0200)] 
Merge pull request #987 from tenforward/japanese

doc: Add logging option to Japanese lxc-attach(1)

9 years agodoc: Add logging option to Japanese lxc-attach(1) 987/head
KATOH Yasufumi [Mon, 25 Apr 2016 10:30:03 +0000 (19:30 +0900)] 
doc: Add logging option to Japanese lxc-attach(1)

Update for commit f43d63b

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
9 years agoUpdate maintainers
Stéphane Graber [Sun, 24 Apr 2016 22:34:15 +0000 (18:34 -0400)] 
Update maintainers

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
9 years agoInitialize a pointer in split_init_cmd() to avoid gcc warnings
Leonid Isaev [Thu, 21 Apr 2016 19:20:39 +0000 (13:20 -0600)] 
Initialize a pointer in split_init_cmd() to avoid gcc warnings

gcc -Wall warns about uninitialized variables (-Wmaybe-uninitialized), and
-Werror makes it fatal. This change allows the build to succeed by NULL'ifying
the pointer passed to strtok_r().

Note that strtok_r(3) anyway ignores a non-NULL arg3 pointer on the 1st call
with non-NULL arg1 string.

Signed-off-by: Leonid Isaev <leonid.isaev@jila.colorado.edu>
Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com>
9 years agoMerge pull request #982 from brauner/2016-04-19/mimic_ssh
Serge Hallyn [Tue, 19 Apr 2016 18:27:16 +0000 (13:27 -0500)] 
Merge pull request #982 from brauner/2016-04-19/mimic_ssh

use raw settings of ssh for pty

9 years agouse raw settings of ssh for pty 982/head
Christian Brauner [Tue, 19 Apr 2016 13:17:19 +0000 (15:17 +0200)] 
use raw settings of ssh for pty

Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
9 years agoMerge pull request #981 from LynxChaus/master
Christian Brauner [Mon, 18 Apr 2016 19:25:41 +0000 (21:25 +0200)] 
Merge pull request #981 from LynxChaus/master

Switch console pty to raw mode.

9 years agoSwitch console pty to raw mode. Without this some ncurses-based programs behave incor... 981/head
Andrey Jr. Melnikov [Mon, 18 Apr 2016 16:16:08 +0000 (19:16 +0300)] 
Switch console pty to raw mode. Without this some ncurses-based programs behave incorrectly

Signed-off-by: Andrey Jr. Melnikov <temnota.am@gmail.com>
9 years agodon't make sysv init scripts dependant on distribution specifics 978/head
Evgeni Golov [Fri, 15 Apr 2016 18:45:09 +0000 (20:45 +0200)] 
don't make sysv init scripts dependant on distribution specifics

- /etc(/rc.d)?/init.d/functions does not exist on all distributions
- LSB does not define a message function without an explicit status
- Debian-derived systems add a log_daemon_msg for that

lets define an own log_daemon_msg as echo and try to load LSB init
functions afterwards, which might overload it with a nicer version

that way the init scripts should work on any system, without hard
dependencies on neither LSB nor /etc/init.d/functions

Closes #309 #310 #311

Signed-off-by: Evgeni Golov <evgeni@debian.org>
9 years agoMerge pull request #976 from evgeni/drop-syslog.target
Christian Brauner [Fri, 15 Apr 2016 11:11:29 +0000 (13:11 +0200)] 
Merge pull request #976 from evgeni/drop-syslog.target

drop obsolete syslog.target from lxc.service.in

9 years agodrop obsolete syslog.target from lxc.service.in 976/head
Evgeni Golov [Thu, 14 Apr 2016 16:03:29 +0000 (18:03 +0200)] 
drop obsolete syslog.target from lxc.service.in

the target is obsolete since systemd v38 which everybody should have.

original patch by Daniel Baumann

Signed-off-by: Evgeni Golov <evgeni@debian.org>
9 years agoMerge pull request #974 from ar45/lxc_python_create_with_tuple
Stéphane Graber [Thu, 14 Apr 2016 04:41:12 +0000 (00:41 -0400)] 
Merge pull request #974 from ar45/lxc_python_create_with_tuple

Fixed python-lxc reference to var before assignment

9 years agoFixed python-lxc reference to var before assignment 974/head
Aron Podrigal [Thu, 14 Apr 2016 04:21:08 +0000 (00:21 -0400)] 
Fixed python-lxc reference to var before assignment

```
>>> c = lxc.Container('ct')
>>> c.create('debian', args=('-r', 'jessie'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/lxc/__init__.py", line 229, in
create
    template_args['args'] = tuple(tmp_args)
UnboundLocalError: local variable 'tmp_args' referenced before
assignment
```

Signed-off-by: Aron Podrigal <aronp@guaranteedplus.com>
9 years agoMerge pull request #972 from evgeni/lsb-headers
Stéphane Graber [Wed, 13 Apr 2016 22:47:53 +0000 (18:47 -0400)] 
Merge pull request #972 from evgeni/lsb-headers

add missing lsb headers to sysvinit scripts