]>
git.ipfire.org Git - thirdparty/lxc.git/log
Serge Hallyn [Tue, 12 Apr 2016 15:22:41 +0000 (10:22 -0500)]
Merge pull request #964 from brauner/2016-04-11/lxc_attach_manpage
lxc-attach: add logging option to manpage
Serge Hallyn [Mon, 11 Apr 2016 22:42:17 +0000 (17:42 -0500)]
Merge pull request #965 from brauner/2016-04-12/lxc_destroy_avoid_double_print
lxc-destroy: avoid double print
Christian Brauner [Mon, 11 Apr 2016 21:57:29 +0000 (23:57 +0200)]
lxc-destroy: avoid double print
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Serge Hallyn [Mon, 11 Apr 2016 20:10:07 +0000 (15:10 -0500)]
Merge pull request #962 from staticfox/gitignore
Ignore temporary files generated by doxygen
Christian Brauner [Mon, 11 Apr 2016 16:13:09 +0000 (18:13 +0200)]
lxc-attach: add logging option to manpage
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Serge Hallyn [Mon, 11 Apr 2016 15:28:54 +0000 (10:28 -0500)]
Merge pull request #963 from brauner/2016-04-11/lxc_create_best_storage
lxc-create: fix -B best option
Christian Brauner [Mon, 11 Apr 2016 15:25:32 +0000 (17:25 +0200)]
Merge pull request #961 from staticfox/iterations
Use size_t as an iteration point over int
Christian Brauner [Mon, 11 Apr 2016 15:13:16 +0000 (17:13 +0200)]
lxc-create: fix -B best option
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
staticfox [Mon, 11 Apr 2016 14:36:37 +0000 (10:36 -0400)]
Use size_t as an iteration point over int
This cleans up some sign-compare warnings as well as avoids any
possibilities of unintended signed offsets for indices during
iteration.
Signed-off-by: Matt Ullman <staticfox@staticfox.net>
staticfox [Mon, 11 Apr 2016 14:54:44 +0000 (10:54 -0400)]
Ignore temporary files generated by doxygen
Signed-off-by: Matt Ullman <staticfox@staticfox.net>
Serge Hallyn [Sun, 10 Apr 2016 23:00:19 +0000 (18:00 -0500)]
Merge pull request #958 from brauner/2016-04-08/lxc_attach_simplify_and_log
adapt lxc-attach tests
Christian Brauner [Fri, 8 Apr 2016 20:43:51 +0000 (22:43 +0200)]
adapt lxc-attach tests & add test for pty logging
The current tests for lxc-attach pty allocation and I/O redirection rely on the
standard file descriptors of the test script to refer to a pty. If they do not
the tests are effectively useless with respect to pty allocation. We need a test
environment with the standard file descriptors refering to a pty as well. One
solution is to run this test under the script command.
This commit also adds a test whether pty logging works. This test is only
executed when all standard file descriptors refer to a pty.
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Christian Brauner [Fri, 8 Apr 2016 21:52:25 +0000 (23:52 +0200)]
Merge pull request #956 from hallyn/2016-04-08/cgnfs-defer
cgfsng: defer to cgfs if needed subsystems are not available
Serge Hallyn [Fri, 8 Apr 2016 21:18:04 +0000 (16:18 -0500)]
cgfsng: defer to cgfs if needed subsystems are not available
This requires us to check that at cgfsng_ops_init, rather than
cgfs_init. Cache the hierarchy and cgroup.use info globally
rather than putting it into the per-container info, as cgmanager
does. This is ok as both cgroup.use and the list of usable
hierarchies are in fact global to a lxc run.
Closes #952
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Fri, 8 Apr 2016 19:11:25 +0000 (14:11 -0500)]
Merge pull request #954 from brauner/2016-04-08/lxc_attach_simplify_and_log
use lxc_read_nointr() and lxc_write_nointr()
Christian Brauner [Fri, 8 Apr 2016 18:38:49 +0000 (20:38 +0200)]
fix lxc_console_cb_tty_*()
Clean exit when read() == -1 && errno != EINTR or read() == 0.
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Christian Brauner [Fri, 8 Apr 2016 18:28:59 +0000 (20:28 +0200)]
use lxc_read_nointr() and lxc_write_nointr()
Using EPOLLHUP to determine when to exit the loop is unreliable. Let's exit
clean when read() returns -1 && errno != EINTR or 0.
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Serge Hallyn [Fri, 8 Apr 2016 15:20:08 +0000 (10:20 -0500)]
Merge pull request #953 from brauner/2016-04-08/lxc_attach_simplify_and_log
simplify pty allocation and implement pty logging
Christian Brauner [Fri, 8 Apr 2016 13:53:36 +0000 (15:53 +0200)]
simplify pty allocation and implement pty logging
lxc-attach allocated a pty in a manner that relied on ts->stdinfd and
ts->stdoutfd to be set. We had to resort to a trick to get it working when
output is redirected. The new implementation gets rid of the black magic and
also simplifies the code.
This commit also implements pty logging for lxc-attach. Users will now be able
to log commands and corresponding output to a file given that lxc-attach
allocates a pty.
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Serge Hallyn [Thu, 7 Apr 2016 19:23:15 +0000 (14:23 -0500)]
Merge pull request #951 from brauner/2016-04-07/lxc_attach_sigwinch_handler
lxc-attach: attach even without sigwinch handler
Christian Brauner [Thu, 7 Apr 2016 15:10:20 +0000 (17:10 +0200)]
lxc-attach: attach even without sigwinch handler
lxc_console_create() calls lxc_console_peer_default() which in turn calls
lxc_console_sigwinch_init() which sets up the lxc_tty_state struct for the
current pty. Prior to this commit lxc_console_sigwinch_init() would consider
failures to install a SIGWINCH handler fatal and and return NULL. This commit
makes failures to install a SIGWINCH handler non-fatal. In such cases the
lxc_tty_state struct will still be set up but the sigfd member, which contains
the fd which receives SIGWINCH events, will be set to -1. (This also entails
that the sigset_t oldmaks field is meaningless.) Callers of
lxc_console_sigwinch_init() and lxc_console_sigwinch_fini() should thus make
sure that sigfd >= 0 or sigfd != -1 before trying to register a SIGWINCH handler
in e.g. an lxc_mainloop or resetting the sigmask (cf. lxc_attach.c).
These changes also imply that lxc_console_sigwinch_init() only fails with
ENOMEM. Thus, all cases where lxc_console_sigwinch_init() returns NULL are to be
considered fatal. This wasn't the case before this commit.
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Stéphane Graber [Wed, 6 Apr 2016 17:41:39 +0000 (13:41 -0400)]
change version to 2.0.0 in configure.ac
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Wed, 6 Apr 2016 13:38:35 +0000 (09:38 -0400)]
Merge pull request #950 from brauner/2016-04-06/fix_memory_leak
lxc_mount_auto_mounts(): free memory on failure
Stéphane Graber [Wed, 6 Apr 2016 13:38:12 +0000 (09:38 -0400)]
Merge pull request #948 from brauner/bugfix_branch
lxc-create: bugfixes and small improvements
Christian Brauner [Wed, 6 Apr 2016 11:08:06 +0000 (13:08 +0200)]
lxc_mount_auto_mounts(): free memory on failure
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Christian Brauner [Wed, 6 Apr 2016 09:26:46 +0000 (11:26 +0200)]
Merge pull request #949 from Blub/netlink_open_error
netlink_open: close socket on error
Wolfgang Bumiller [Wed, 6 Apr 2016 08:56:04 +0000 (10:56 +0200)]
netlink_open: close socket on error
All uses of netlink_open() assume that on error the
nl_handler doesn't need to be closed, but some error cases
happen after the socket was opened successfully and used to
simply return -errno.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Christian Brauner [Wed, 6 Apr 2016 08:25:34 +0000 (10:25 +0200)]
lxc-create: bugfixes and small improvements
- call lxc_container_put() before we exit()
- reorder includes
- use EXIT_FAILURE and EXIT_SUCCESS macros
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Stéphane Graber [Tue, 5 Apr 2016 22:39:44 +0000 (18:39 -0400)]
Merge pull request #947 from brauner/bugfix_branch
add more error handling + cleanup copy_storage()
Christian Brauner [Tue, 5 Apr 2016 21:53:49 +0000 (23:53 +0200)]
add more error handling + cleanup copy_storage()
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Serge Hallyn [Tue, 5 Apr 2016 19:09:51 +0000 (14:09 -0500)]
Merge pull request #945 from brauner/bugfix_branch
set lxc.rootfs.backend on container creation
Christian Brauner [Tue, 5 Apr 2016 18:43:02 +0000 (20:43 +0200)]
set lxc.rootfs.backend on copy/snapshot as well
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Christian Brauner [Tue, 5 Apr 2016 17:23:12 +0000 (19:23 +0200)]
set lxc.rootfs.backend on container creation
Since specifying lxc.rootfs.backend can lead to performance improvements we
always set it during container creation.
This also fixes a bug. do_bdev_create() tried to be smart and retrieve the lower
directory when bdev->type == overlayfs or aufs thereby cutting the path.
However, this operation is done in ovl_mount() and aufs_mount() and both
functions need the full src path for this. The bug didn't show before because
when creating a overlayfs container with e.g.:
lxc-create -n c -t busybox -B overlayfs
still left bdev->type set to dir and so the code for retrieving the lower dir in
do_bdev_create() was skipped. But by setting lxc.rootfs.backend on container
creation we force bdev->type to be set to e.g. overlayfs and the code gets
executed thereby exposing the bug.
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Serge Hallyn [Tue, 5 Apr 2016 14:24:36 +0000 (09:24 -0500)]
Merge pull request #944 from brauner/bugfix_branch
use correct "overlayfs" instead of "ovl"
Christian Brauner [Tue, 5 Apr 2016 14:05:29 +0000 (16:05 +0200)]
use correct "overlayfs" instead of "ovl"
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Stéphane Graber [Tue, 5 Apr 2016 02:44:50 +0000 (22:44 -0400)]
Merge pull request #943 from tenforward/japanese
doc: Add lxc.rootfs.backend in Japanese lxc.container.conf(5)
KATOH Yasufumi [Tue, 5 Apr 2016 02:04:59 +0000 (11:04 +0900)]
doc: Add lxc.rootfs.backend in Japanese lxc.container.conf(5)
Update for commit
f903986
Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
Stéphane Graber [Mon, 4 Apr 2016 03:04:53 +0000 (23:04 -0400)]
Merge pull request #942 from ysbnim/master
Add a document of lxc.rootfs.backend in Korean manpage
Sungbae Yoo [Mon, 4 Apr 2016 02:26:19 +0000 (11:26 +0900)]
Add a document of lxc.rootfs.backend in Korean manpage
Update for commit
f903986
Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Stéphane Graber [Sun, 3 Apr 2016 16:57:22 +0000 (12:57 -0400)]
Merge pull request #941 from evgeni/spelling
fix spelling mistakes spotted by Debian's lintian
Evgeni Golov [Sun, 3 Apr 2016 16:49:54 +0000 (18:49 +0200)]
fix spelling mistakes spotted by Debian's lintian
Signed-off-by: Evgeni Golov <evgeni@debian.org>
Christian Brauner [Sun, 3 Apr 2016 16:35:11 +0000 (18:35 +0200)]
Merge pull request #936 from overlayfs/btrfs_recursive_destroy
fix btrfs_recursive_destroy
Oleg Freedholm [Sun, 3 Apr 2016 15:15:58 +0000 (01:15 +1000)]
store errno immediately after ioctl
Signed-off-by: Oleg Freedholm <overlayfs@gmail.com>
Stéphane Graber [Sun, 3 Apr 2016 03:52:04 +0000 (23:52 -0400)]
Merge pull request #940 from hallyn/2016-04-02/bdev.4
switch user facing name to lxc.rootfs.backend
Serge Hallyn [Sun, 3 Apr 2016 03:05:09 +0000 (22:05 -0500)]
document lxc.rootfs.backend
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Sun, 3 Apr 2016 02:32:34 +0000 (21:32 -0500)]
switch user facing name to lxc.rootfs.backend
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Christian Brauner [Sun, 3 Apr 2016 02:03:26 +0000 (04:03 +0200)]
Merge pull request #939 from hallyn/2016-04-02/bdev.3
rootfs.bdev_type: implement get and clear
Serge Hallyn [Sun, 3 Apr 2016 01:43:35 +0000 (20:43 -0500)]
rootfs.bdev_type: implement get and clear
clear is just set(x, ""), but before this patch that didn't work bc
"" is nota valid bdev type.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Christian Brauner [Sat, 2 Apr 2016 21:29:07 +0000 (23:29 +0200)]
Merge pull request #938 from hallyn/2016-04-02/bdev.2
use more accurate bdev_type name for rootfs.bdev
Serge Hallyn [Sat, 2 Apr 2016 21:08:18 +0000 (16:08 -0500)]
use more accurate bdev_type name for rootfs.bdev
It'll make future code reading easier.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Christian Brauner [Sat, 2 Apr 2016 21:06:58 +0000 (23:06 +0200)]
Merge pull request #937 from hallyn/2016-04-02/bdev
2016 04 02/bdev
Serge Hallyn [Sat, 2 Apr 2016 20:47:43 +0000 (15:47 -0500)]
honor lxc.rootfs.bdev
If that is specified, then we only use the specified backing store type.
This can be useful if you know that lxc.rootfs is a directory type and
you do not want lxc to waste time searching for zfs, btrfs, etc.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Sat, 2 Apr 2016 20:41:24 +0000 (15:41 -0500)]
add a lxc.rootfs.bdev option (not yet honored)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Oleg Freedhom [Sat, 2 Apr 2016 16:18:54 +0000 (16:18 +0000)]
fix btrfs_recursive_destroy
A change in kernel 4.2 caused btrfs_recursive_destroy to
fail to delete unprivileged containers. This patch restores
the pre-kernel-4.2 behaviour. Ref: Issue 935.
Signed-off-by: Oleg Freedhom <overlayfs@gmail.com>
Stéphane Graber [Thu, 31 Mar 2016 22:10:51 +0000 (18:10 -0400)]
change version to 2.0.0.rc15 in configure.ac
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Thu, 31 Mar 2016 18:50:04 +0000 (14:50 -0400)]
Merge pull request #931 from n-eiling/pageserver-support
c/r: support for the criu pageserver
Niklas Eiling [Wed, 30 Mar 2016 13:39:45 +0000 (15:39 +0200)]
fixed indentation and comments
Signed-off-by: Niklas Eiling <niklas.eiling@rwth-aachen.de>
Christian Brauner [Thu, 31 Mar 2016 10:56:11 +0000 (12:56 +0200)]
Merge pull request #934 from GreatFruitOmsk/master
Fix buffer overflow in do_start()
Aleksandr Mezin [Thu, 31 Mar 2016 10:46:03 +0000 (16:46 +0600)]
Fix buffer overflow in do_start()
Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
Niklas Eiling [Wed, 30 Mar 2016 10:32:02 +0000 (12:32 +0200)]
c/r: support for the criu pageserver
this enables lxc to perform "disk-less migrations" where memory pages are sent directly to the destination machine instead of being written to the sources filesystem first.
For this, the migrate_opts struct has been added the strings "pageserver_address" and "pageserver_port" so that criu can be told where to look for a pageserver.
Signed-off-by: Niklas Eiling <niklas.eiling@rwth-aachen.de>
Serge Hallyn [Wed, 30 Mar 2016 23:44:36 +0000 (18:44 -0500)]
Merge pull request #932 from n-eiling/criu-log-fix
fix possible buffer overflow
Niklas Eiling [Wed, 30 Mar 2016 21:28:43 +0000 (23:28 +0200)]
use snprintf instead of strncat
Signed-off-by: Niklas Eiling <niklas.eiling@rwth-aachen.de>
Stéphane Graber [Wed, 30 Mar 2016 20:53:28 +0000 (16:53 -0400)]
Merge pull request #933 from evgeni/update-debian-releases
update Debian release names
Evgeni Golov [Wed, 30 Mar 2016 20:50:48 +0000 (22:50 +0200)]
update Debian release names
Squeeze is EOL now, Stretch is the upcoming stable
Signed-off-by: Evgeni Golov <evgeni@golov.de>
Niklas Eiling [Wed, 30 Mar 2016 18:10:21 +0000 (20:10 +0200)]
fix possible buffer overflow
strncat only returns its first argument and not the end of the written string.
Thus "buf-pos" is always 0 and consquently no range check is performed.
Signed-off-by: Niklas Eiling <niklas.eiling@rwth-aachen.de>
Serge Hallyn [Wed, 30 Mar 2016 16:19:44 +0000 (11:19 -0500)]
Merge pull request #929 from brauner/2016-03-27/mmap_file_to_str
use smarter error handling for lxc_strmmap()
Christian Brauner [Wed, 30 Mar 2016 16:07:38 +0000 (18:07 +0200)]
use common lxc ordering for included headers
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Serge Hallyn [Wed, 30 Mar 2016 16:06:02 +0000 (11:06 -0500)]
Merge pull request #930 from brauner/2016-03-30/ignore_all_so
also ingore *.so.*
Christian Brauner [Wed, 30 Mar 2016 05:57:34 +0000 (07:57 +0200)]
use smarter error handling for lxc_strmmap()
Additionally, fix the comment for lxc_strmmap() and cleanup #includes in
utils.{c,h}.
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Christian Brauner [Wed, 30 Mar 2016 08:17:39 +0000 (10:17 +0200)]
also ingore *.so.*
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Christian Brauner [Wed, 30 Mar 2016 05:49:55 +0000 (07:49 +0200)]
Merge pull request #928 from stgraber/master
lxc-ubuntu: Fix building on secondary architectures
Stéphane Graber [Wed, 30 Mar 2016 05:25:53 +0000 (01:25 -0400)]
lxc-ubuntu: Fix building on secondary architectures
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Wed, 30 Mar 2016 01:31:14 +0000 (21:31 -0400)]
change version to 2.0.0.rc14 in configure.ac
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Serge Hallyn [Tue, 29 Mar 2016 16:11:37 +0000 (11:11 -0500)]
Merge pull request #926 from brauner/2016-03-27/mmap_file_to_str
add funs to mmap() files to \0-terminated strings
Christian Brauner [Tue, 29 Mar 2016 06:50:27 +0000 (08:50 +0200)]
better naming for mmap helpers
Rename lxc_mmap()/lxc_munmap() to lxc_strmmap()/lxc_strmunmap().
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Christian Brauner [Sun, 27 Mar 2016 16:42:24 +0000 (18:42 +0200)]
use lxc_mmap() and lxc_munmap()
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Christian Brauner [Sun, 27 Mar 2016 16:41:51 +0000 (18:41 +0200)]
add funs to mmap() files to \0-terminated strings
In order to do this we make use of the MAP_FIXED flag of mmap(). MAP_FIXED
should be safe to use when it replaces an already existing mapping. To this
end, we establish an anonymous mapping that is one byte larger than the
underlying file. The pages handed to us are zero filled. Now we establish a
fixed-address mapping starting at the address we received from our anonymous
mapping and replace all bytes excluding the additional \0-byte with the file.
This allows us to use normal string-handling function. The idea implemented
here is similar to how shared libraries are mapped.
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Stéphane Graber [Tue, 29 Mar 2016 05:25:51 +0000 (01:25 -0400)]
Merge pull request #927 from tych0/only-use-host-devnull-no-autodev
start: only use host's /dev/null when absolutely necessary
Tycho Andersen [Tue, 29 Mar 2016 00:43:20 +0000 (18:43 -0600)]
start: only use host's /dev/null when absolutely necessary
See comments for details, but basically, only use the host's /dev/null when
absolutely necessary (i.e. there is no reasonable /dev/null in the
container).
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Stéphane Graber [Sat, 26 Mar 2016 17:05:51 +0000 (13:05 -0400)]
Merge pull request #924 from evgeni/default-ubuntu-mirror
always provide a default mirror for debootstraping Ubuntu
Stéphane Graber [Sat, 26 Mar 2016 17:04:58 +0000 (13:04 -0400)]
Merge pull request #925 from evgeni/debian-main-only
only enable Debian's main repository by default
Evgeni Golov [Sat, 26 Mar 2016 10:28:52 +0000 (11:28 +0100)]
only enable Debian's main repository by default
This inverts the logic done in
c2a85d0 to default to "main only" and allow enabling contrib and non-free on user request.
Closes: #625
Signed-off-by: Evgeni Golov <evgeni@debian.org>
Evgeni Golov [Sat, 26 Mar 2016 09:52:32 +0000 (10:52 +0100)]
always provide a default mirror for debootstraping Ubuntu
debootstrap sometimes selects the wrong mirror due to [1]
[1] https://bugs.debian.org/819300
Signed-off-by: Evgeni Golov <evgeni@debian.org>
Christian Brauner [Sat, 26 Mar 2016 09:13:58 +0000 (10:13 +0100)]
Merge pull request #922 from evgeni/httpredir.debian.org
use httpredir.debian.org as the default Debian mirror
Evgeni Golov [Sat, 26 Mar 2016 08:46:13 +0000 (09:46 +0100)]
use httpredir.debian.org as the default Debian mirror
http.debian.net is an alias anyways and httpredir.debian.org is the official name of the service
Signed-off-by: Evgeni Golov <evgeni@debian.org>
Christian Brauner [Fri, 25 Mar 2016 17:18:10 +0000 (18:18 +0100)]
Merge pull request #920 from thtanaka/timezone-fix
Timezone inside the container is not the same as the host
Christian Brauner [Fri, 25 Mar 2016 17:13:47 +0000 (18:13 +0100)]
Merge pull request #919 from amezin/master
Fix installation of out-of-tree (VPATH) builds
Thomas Tanaka [Fri, 25 Mar 2016 16:53:33 +0000 (09:53 -0700)]
Timezone inside the container is not the same as the host
In OL6, it is missing /etc/sysconfig/clock
Tested-by: Deepak Patel <deepak.patel@oracle.com>
Signed-off-by: Thomas Tanaka <thomas.tanaka@oracle.com>
Aleksandr Mezin [Fri, 25 Mar 2016 13:30:49 +0000 (19:30 +0600)]
Fix installation of out-of-tree (VPATH) builds
Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
Serge Hallyn [Fri, 25 Mar 2016 04:45:15 +0000 (21:45 -0700)]
Merge pull request #917 from amezin/master
Fix daemonized containers without autodev and/or /dev mount
Aleksandr Mezin [Thu, 24 Mar 2016 17:22:32 +0000 (23:22 +0600)]
start: open /dev/null from "host" /dev
Sometimes, a container doesn't have /dev/null.
For example, I have this problem with Android container.
This fixes #910 (github) for me.
Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
Aleksandr Mezin [Thu, 24 Mar 2016 17:20:42 +0000 (23:20 +0600)]
utils: split null_stdfds() to open_devnull() and set_stdfds()
Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
Bogdan Purcareata [Thu, 24 Mar 2016 11:54:27 +0000 (11:54 +0000)]
lxc-busybox: Remove warning for dynamically linked Busybox
The warning has been present since commit
32b37181ea (with no purpose stated).
Support for dynamically linked Busybox has been added since commit
bf6cc73696 .
Haven't encountered any issues with dynamically linked Busybox in my last
2 years' testing.
Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Thu, 24 Mar 2016 16:38:51 +0000 (12:38 -0400)]
Merge pull request #916 from ojkastl/20160324_Fix_path_to_lxc-net_config
lxc.spec.in: fixed hardcoded path to lxc-net config file
Aleksandr Mezin [Thu, 24 Mar 2016 11:55:03 +0000 (17:55 +0600)]
start: use LXC_SYNC_ERROR to report errors.
This gives more meaningful error message than "invalid sequence".
Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
Aleksandr Mezin [Thu, 24 Mar 2016 11:54:26 +0000 (17:54 +0600)]
sync: add LXC_SYNC_ERROR to report errors from another process.
Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
Johannes Kastl [Thu, 24 Mar 2016 08:26:28 +0000 (09:26 +0100)]
lxc.spec.in: fixed hardcoded path to lxc-net config file
Signed-off-by: Johannes Kastl <git@ojkastl.de>
Christian Brauner [Thu, 24 Mar 2016 07:13:12 +0000 (08:13 +0100)]
Merge pull request #914 from brauner/2016-03-23/Purcarea_Bogdan
lxc-busybox: Touch /etc/fstab in the container rootfs
Bogdan Purcareata [Tue, 22 Mar 2016 13:33:57 +0000 (13:33 +0000)]
lxc-busybox: Touch /etc/fstab in the container rootfs
Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
Serge Hallyn [Wed, 23 Mar 2016 16:53:35 +0000 (09:53 -0700)]
Merge pull request #911 from brauner/2016-03-23/Purcarea_Bogdan
open_without_symlink: Don't SYSERROR on something else than ELOOP