- 13 Aug, 2015 5 commits
-
-
Stéphane Graber authored
Apparently the paths have changed on the rsync server. Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
Stéphane Graber authored
Switch to Fedora 22 for now. Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
Alex Punco authored
Signed-off-by:Alex Punco <punco@selectel.ru>
-
Wolfgang Bumiller authored
Loop devices can be added on the fly when needed, they're not always created beforehand. The loop-control device can be used to find and allocate the next available number instead of going through the /dev directory contents (which is now only a fallback mechanism). Signed-off-by:Wolfgang Bumiller <w.bumiller@proxmox.com>
-
有张纸 authored
Signed-off-by:feng xiahou <xiahoufeng@yahoo.com>
-
- 22 Jul, 2015 2 commits
-
-
Stéphane Graber authored
A user could otherwise over-mount /proc and prevent the apparmor profile or selinux label from being written which combined with a modified /bin/sh or other commonly used binary would lead to unconfined code execution. Reported-by: Roman Fiedler Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
Serge Hallyn authored
This prevents an unprivileged user to use LXC to create arbitrary file on the filesystem. Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by:
Tyler Hicks <tyhicks@canonical.com> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
- 17 Jul, 2015 1 commit
-
-
Stéphane Graber authored
This fixes some typos, missing newlines and unflushed output leading to duplicate entries when piped (similar to what we had in lxc-info). Reported-by: Marc Gariépy Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
- 01 Jul, 2015 32 commits
-
-
KATOH Yasufumi authored
As the commit 31a882ef, an unprivileged container can use aufs. This patch removes the check for unpriv aufs, and change the path of xino file as an unprivileged user can mount aufs. Signed-off-by:
KATOH Yasufumi <karma@jazz.email.ne.jp> Acked-by:
Serge E. Hallyn <serge.hallyn@ubuntu.com>
-
Serge Hallyn authored
Per pitti's suggestion, use After= to force lxc to wait for lxc-net to finish running. Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com> Reviewed-By:
Martin Pitt <martin.pitt@ubuntu.com>
-
有张纸 authored
debootstrap failed when $GREP_OPTIONS is set, so we need to unset it in the template Signed-off-by: <feng xiahou xiahoufeng@yahoo.com>
-
Stéphane Graber authored
V2 changes: - Keep using /var/lib for the lease file, but making it respect localstatedir - Don't pass an empty --conf-file as that confuses dnsmasq when /etc/dnsmasq.conf doesn't exist or isn't readable. Signed-off-by:
Stéphane Graber <stgraber@ubuntu.com> Acked-by:
Serge E. Hallyn <serge.hallyn@ubuntu.com>
-
Arjun Sreedharan authored
also label and consolidate error conditions for better readability Signed-off-by:
Arjun Sreedharan <arjun024@gmail.com> Acked-by:
Serge E. Hallyn <serge.hallyn@ubuntu.com>
-
有张纸 authored
systemd services like logind and journald need CAP_SETFCAP CAP_SETPCAP
-
Lenz Grimmer authored
Updated centos/fedora/oracle templates to use `hostname` for DHCP_HOSTNAME in /etc/sysconfig/network/ifcfg-eth0, so the container's host name is propagated to the host's DHCP server (e.g. dnsmasq, which also acts as the DNS server). This resolves lxc/lxd#756 Signed-off-by:Lenz Grimmer <lenz@grimmer.com>
-
Dennis Schridde authored
Documents setpcap,sys_admin,sys_resources as breaking systemd, but does not drop them from lxc.cap.drop, as the default init system on Gentoo is OpenRC, thus stuff breaking systemd can be blocked anyway. This also drops setpcap and sys_nice caps, as these are also dropped in other non-systemd distros. Most of the explanatory blurb was copied from other distros' configs. See-Also: https://bugs.gentoo.org/show_bug.cgi?id=551792Signed-Off-By:
Dennis Schridde <devurandom@gmx.net>
-
Serge Hallyn authored
When starting a daemonized container, only the original parent thread should return to the caller. The first forked child immediately exits after forking, but the grandparent child was in some places returning on error - causing a second instance of the calling function. Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by:
Tycho Andersen <tycho.andersen@canonical.com>
-
Sungbae Yoo authored
Signed-off-by:Sungbae Yoo <sungbae.yoo@samsung.com>
-
Dennis Schridde authored
The dev/mqueue and dev/shm directories do not exist when using lxc.autodev, thus they have to be created upon mount. Signed-off-by:Dennis Schridde <devurandom@gmx.net>
-
有张纸 authored
-
Tycho Andersen authored
In various places throughout the code, we want to "nullify" the std fds, opening them to /dev/null or zero or so. Instead, let's unify this code and do it in such a way that Coverity (probably) won't complain. v2: use /dev/null for stdin as well v3: add a comment about use of C's short circuiting v4: axe comment, check errors on dup2, s/quiet/need_null_stdfds Reported-by: Coverity Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
Tycho Andersen authored
Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
Tycho Andersen authored
Reported-by: Coverity Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
Tycho Andersen authored
We're leaking the FILE* here while closing the underlying fd; let's just close the file and thus close both. Reported-by: Coverity Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
Sungbae Yoo authored
Signed-off-by:Sungbae Yoo <sungbae.yoo@samsung.com>
-
Daniel Golle authored
Initialize ret to 0 so compiler no longer complains about monitor.c: In function 'lxc_monitor_open': monitor.c:212:5: error: 'ret' may be used uninitialized in this function [-Werror=maybe-uninitialized] https://github.com/openwrt/packages/issues/1356Signed-off-by:
Daniel Golle <daniel@makrotopia.org>
-
Laurence Rowe authored
Signed-off-by:Laurence Rowe <l@lrowe.co.uk>
-
Serge Hallyn authored
Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com>
-
Serge Hallyn authored
Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com>
-
Stéphane Graber authored
Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
Stéphane Graber authored
Instead of re-defining MS_ options all over the place, just revert the last change to bdev.h so we have all the defines in there again. Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
Stéphane Graber authored
Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
Stéphane Graber authored
Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
Tycho Andersen authored
We use the right path when actually execing criu to checkpoint and restore, but when checking versions we didn't. Let's use the right path. Reported-by:
Dietmar Maurer <dietmar@proxmox.com> Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
Serge Hallyn authored
and don't use it if not. This fixes failure to build with older cgmanager. Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
Serge Hallyn authored
commit 507cee36 moved the close and re-open of fds 0-2 into do_start. But this means that the lxc monitor itself keeps the caller's fds 0-2 open, which is wrong for daemonized containers. Closes #548 Reported-by:
Mathieu Le Marec - Pasquet <kiorky@cryptelium.net> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
Serge Hallyn authored
We were using 'all' controller if current was in all the same cgroup. That doesn't suffice. We'd have to check the target. At that point we may as well just attach controller by controller. An optimization to consider is to check the /proc/initpid/cgroup for all identical controllers. Let's start by just getting it right. Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
Tycho Andersen authored
When restoring, we didn't clean up the pidfile that criu uses to pass us the init pid on error or success; let's do that. Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Acked-by:
Serge E. Hallyn <serge.hallyn@ubuntu.com>
-
Stéphane Graber authored
Until we bump the SONAME to liblxc2, only symbol additions and struct member additions are allowed. Adding struct members in the middle of the struct breaks backward compatibility. This commit makes it clear when struct members were added and moves a few members that were added in the middle of the 1.0 struct to the end of it. Note that unfortunately that means we're breaking backward compatibility between LXC 1.1.0 and the state after this commit, given 1.1 is reasonably new, this is the least damaging way of fixing the problem. Signed-off-by:
Stéphane Graber <stgraber@ubuntu.com> Acked-by:
Serge E. Hallyn <serge.hallyn@ubuntu.com>
-
Dwight Schauer authored
The yum in Centos 5.11 does not know about '--releasever', which is used by: lxc-create ... -- release=VERSION The release version only needs to be set in the outer bootstrap, not the inner one. With this change an lxc-create bootstrap of CentOS 5.11 completes enough to be usable. CentOS 5.11 containers can be created, started, stopped, and networking works. Signed-off-by:Dwight Schauer <das@teegra.net>
-