- 29 Jul, 2016 2 commits
-
-
Baptiste Daroussin authored
Signed-off-by:Baptiste Daroussin <bapt@gandi.net>
-
Baptiste Daroussin authored
To activate it specify lxc.syslog = <afacility> For now the available facilities are: daemon, local[0-7] others will be rejected syslog got only activated after the function that checks for inheritance of fd is passed in order to make sure the syslog fd is not inherited and prevent the creation of the fd is any log have been issued during the checks (which would end up in an infinite loop) Signed-off-by:
Fatih ACAR <fatih.acar@gandi.net> Signed-off-by:
Ahmed Amamou <ahmed@gandi.net> Signed-off-by:
Baptiste Daroussin <bapt@gandi.net> Signed-off-by:
William Dauchy <william@gandi.net>
-
- 28 Jul, 2016 4 commits
-
-
Christian Brauner authored
attach: use setns instead of unshare
-
Stéphane Graber authored
Revert "Merge pull request #1103 from brauner/2016-07-27/fix_android_…
-
Christian Brauner authored
This reverts commit 25796416, reversing changes made to 813d7f14. Contrary to what we suspected the android build errors were not caused by missing wrong relative include paths. Rather, they were caused by autoconf. Signed-off-by:
Christian Brauner <cbrauner@suse.de>
-
oc authored
lxc-checkpoint will fail because process createdy by lxc-attach has incorrect cgroup ns. It needs to use "setns" instead of "unshare" to set cgroup ns. Signed-off-by:Chen Haiquan <oc@yunify.com>
-
- 27 Jul, 2016 2 commits
-
-
Stéphane Graber authored
bdev: include own getline function in bdev.h
-
Christian Brauner authored
Fixes android build error: bdev/bdev.c: In function 'detect_fs': bdev/bdev.c:686:2: error: implicit declaration of function 'getline' [-Werror=implicit-function-declaration] while (getline(&line, &linelen, f) != -1) { ^ Signed-off-by:Christian Brauner <cbrauner@suse.de>
-
- 26 Jul, 2016 2 commits
-
-
Stéphane Graber authored
Add a prefix to the lxc.pc
-
Sergio Schvezov authored
This allows installing to different locations and using the lxc.pc to build using the generated includedir and libdir. Signed-off-by:Sergio Schvezov <sergio.schvezov@ubuntu.com>
-
- 25 Jul, 2016 2 commits
-
-
Stéphane Graber authored
cgfsng: fix is_lxcfs() and is_cgroupfs()
-
Christian Brauner authored
Both functions advertise that they return true when strncmp() == 0 and false when strncmp() != 0 but so far they returned the exact opposite. Signed-off-by:Christian Brauner <cbrauner@suse.de>
-
- 23 Jul, 2016 2 commits
-
-
Christian Brauner authored
lxc-alpine: mount tmpfs under /run
-
Jakub Jirutka authored
When running under grsecurity kernel or userns, it can't be mounted from inside. Signed-off-by:Jakub Jirutka <jakub@jirutka.cz>
-
- 22 Jul, 2016 4 commits
-
-
Stéphane Graber authored
lxc-copy: do not use mkostemp and dprintf
-
Christian Brauner authored
Fixes android builds: DSBINDIR=\"/data/lxc/lxc/sbin\" -I/build/libcap/libcap/include/ -Wall -Werror -MT lxc_copy.o -MD -MP -MF $depbase.Tpo -c -o lxc_copy.o lxc_copy.c &&\ mv -f $depbase.Tpo $depbase.Po lxc_copy.c: In function 'mount_tmpfs': lxc_copy.c:834:2: error: implicit declaration of function 'mkostemp' [-Werror=implicit-function-declaration] fd = mkostemp(premount, O_CLOEXEC); ^ lxc_copy.c:841:2: error: implicit declaration of function 'dprintf' [-Werror=implicit-function-declaration] ret = dprintf(fd, "#! /bin/sh\n" ^ Signed-off-by:Christian Brauner <cbrauner@suse.de>
-
Stéphane Graber authored
c/r: use PRIu64 format specifier
-
Christian Brauner authored
Fixes build failures on arm: criu.c: In function ‘exec_criu’: criu.c:310:4: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint64_t’ [-Werror=format=] ret = sprintf(ghost_limit, "%lu", opts->user->ghost_limit); ^ In file included from criu.c:42:0: log.h:285:9: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint64_t’ [-Werror=format=] struct lxc_log_locinfo locinfo = LXC_LOG_LOCINFO_INIT; \ ^ criu.c:312:5: note: in expansion of macro ‘ERROR’ ERROR("failed to print ghost limit %lu", opts->user->ghost_limit); ^ Signed-off-by:Christian Brauner <cbrauner@suse.de>
-
- 21 Jul, 2016 1 commit
-
-
Stéphane Graber authored
simple enhancements of lxc-debian-template-script
-
- 20 Jul, 2016 8 commits
-
-
Andreas Freudenberg authored
Signed-off-by:Andreas Freudenberg <andreas.freudenberg@licomonch.net>
-
Andreas Freudenberg authored
Signed-off-by:Andreas Freudenberg <andreas.freudenberg@licomonch.net>
-
Andreas Freudenberg authored
Signed-off-by:Andreas Freudenberg <andreas.freudenberg@licomonch.net>
-
Christian Brauner authored
doc: Update Korean lxc-copy(1) to include tmpfs option
-
Sungbae Yoo authored
Update for commit a361e562Signed-off-by:
Sungbae Yoo <sungbae.yoo@samsung.com>
-
Christian Brauner authored
Set up MTU for vlan-type interfaces.
-
Christian Brauner authored
doc: Update Japanese lxc-copy(1) to include tmpfs option
-
KATOH Yasufumi authored
Update for commit a361e562Signed-off-by:
KATOH Yasufumi <karma@jazz.email.ne.jp>
-
- 19 Jul, 2016 5 commits
-
-
Christian Brauner authored
c/r: add support for ghost-limit in CRIU
-
Tycho Andersen authored
This is an old option that we probably should have exposed long ago :) Signed-off-by:Tycho Andersen <tycho.andersen@canonical.com>
-
Serge Hallyn authored
[RFC]: lxccontainer: detect if we should send SIGRTMIN+3
-
Christian Brauner authored
This is required by systemd to cleanly shutdown. Other init systems should not have SIGRTMIN+3 in the blocked signals set. Signed-off-by:Christian Brauner <cbrauner@suse.de>
-
Serge Hallyn authored
lxc-copy: update manpage to include tmpfs option
-
- 18 Jul, 2016 4 commits
-
-
Christian Brauner authored
Signed-off-by:Christian Brauner <cbrauner@suse.de>
-
Serge Hallyn authored
lxc-copy: allow snapshots to be placed on tmpfs
-
Christian Brauner authored
Place an ephemeral container started with -e flag on a tmpfs. Restrictions are that you cannot request the data to be kept while placing the container on a tmpfs, that either overlay or aufs backing storage must be used, and that the storage backend of the original container must be a directory. For ephemeral snapshots backed by overlay or aufs filesystems, a fresh tmpfs is mounted over the containers directory if the user requests it. This should be the easiest options. Anything else would require us to change the current mount-layout of overlay and aufs snapshots. (A standard overlay or aufs snapshot clone currently has the layout: /var/lib/lxc/CLONE_SNAPSHOT/delta0 <-- upperdir /var/lib/lxc/CLONE_SNAPSHOT/rootfs /var/lib/lxc/CLONE_SNAPSHOT/olwork /var/lib/lxc/CLONE_SNAPSHOT/olwork/work <-- workdir with the lowerdir being /var/lib/lxc/CLONE_PARENT/rootfs The fact that upperdir and workdir are not placed in a common subfolder under the container directory has the consequence that we cannot simply mount a fresh tmpfs under upperdir and workdir because overlay expects them to be on the same filesystem.) Because we mount a fresh tmpfs over the directory of the container the updated /etc/hostname file created during the clone residing in the upperdir (currently named "delta0" by default) will be hidden. Hence, if the user requests that the old name is not to be kept for the clone, we recreate this file on the tmpfs. This should be all that is required to restore the exact behaviour we would get with a normal clone. NOTE: If the container is rebooted all changes made to it are lost. This is not easy to prevent since each reboot remounts the rootfs again. Signed-off-by:Christian Brauner <cbrauner@suse.de>
-
Vitaly Lavrov authored
Signed-off-by:Vitaly Lavrov <vel21ripn@gmail.com>
-
- 15 Jul, 2016 2 commits
-
-
Christian Brauner authored
c/r: make local function static
-
Adrian Reber authored
This is a minimal commit which makes the function 'do_restore()' static as it is not used anywhere else in the code. This also removes a trailing space my editor complained about. Signed-off-by:Adrian Reber <areber@redhat.com>
-
- 13 Jul, 2016 1 commit
-
-
Christian Brauner authored
c/r: drop in-flight connections during CRIU dump
-
- 12 Jul, 2016 1 commit
-
-
Adrian Reber authored
Shortly after CRIU 2.3 has been released a patch has been added to skip in-flight TCP connections. In-flight connections are not completely established connections (SYN, SYN-ACK). Skipping in-flight TCP connections means that the client has to re-initiate the connection establishment. This patch stores the CRIU version detected during version check, so that during dump/checkpoint options can be dynamically enabled depending on the available CRIU version. v2: * use the newly introduced criu version interface * add an option to disable skipping in-flight connections Signed-off-by:Adrian Reber <areber@redhat.com>
-