- 07 Jan, 2017 4 commits
-
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
lxc_execute() and lxc-execute where broken when a user tried to switch to a non-root uid/gid. This prevented necessary setup operations like mounting the rootfs which require root in the user namespace. This commit separates switching to root in the user namespace from switching to the requested uid/gid by lxc_execute(). This should be safe: Once we switched to root in the user namespace via setuid() and then switch to a non-root uid/gid in the user namespace for lxc_execute() via setuid() we cannot regain root privileges again. So we can only make us safer (Unless I forget about some very intricate user namespace nonsense; which is not as unlikely as I try to make it sound.). Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
This commit adds lxc_switch_uid_gid() which allows to switch the uid and gid of a process via setuid() and setgid() and lxc_setgroups() which allows to set groups via setgroups(). The main advantage is that they nicely log the switches they perform. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
- 04 Jan, 2017 6 commits
-
-
Stéphane Graber authored
tools: only check for O_RDONLY
-
Stéphane Graber authored
tree-wide: Sic semper assertis!
-
Christian Brauner authored
On some Android systems the lxc folders where containers are stored might be read-only and so checking for O_RDWR, will effectively make the tools useless on these systems, so let's dumb the check down to O_RDONLY. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
python3-lxc: fix api_test.py on s390x
-
Po-Hsu Lin authored
The api_test.py script uses Trusty release by default, which does not have s390x image. Switch to Xenial to solve this. Signed-off-by:Po-Hsu Lin <po-hsu.lin@canonical.com>
-
- 03 Jan, 2017 2 commits
-
-
Stéphane Graber authored
conf: fix suggest_default_idmap()
-
Christian Brauner authored
We need to remove the newline otherwise lxc_safe_uint() will fail as it detects an invalid (non-numeric) char in the string. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
- 29 Dec, 2016 1 commit
-
-
Stéphane Graber authored
tests: skip unpriv tests on broken overlay module
-
- 28 Dec, 2016 1 commit
-
-
Christian Brauner authored
This mainly affects Trusty. The 3.13 kernel has a broken overlay module which does not handle symlinks correctly. This is a problem for containers that use an overlay based rootfs since safe_mount() uses /proc/<pid>/fd/<fd-number> in its calls to mount(). Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
- 19 Dec, 2016 1 commit
-
-
Christian Brauner authored
Add --enable-gnutls option
-
- 18 Dec, 2016 1 commit
-
-
Fabrice Fontaine authored
Previously HAVE_LIBGNUTLS was never set in config.h even if gnutls was detected as AC_CHECK_LIB default action-if-found was overriden by enable_gnutls=yes This patch adds an --enable-gnutls option and will call AC_CHECK_LIB with the default action to write HAVE_LIBGNUTLS in config.h Signed-off-by:Fabrice Fontaine <fabrice.fontaine@orange.com>
-
- 16 Dec, 2016 1 commit
-
-
Serge Hallyn authored
confile: support the network link string pattern matching
-
- 15 Dec, 2016 5 commits
-
-
Christian Brauner authored
do not set insecure passwords
-
Christian Brauner authored
OpenSUSE systemd fixes
-
Evgeni Golov authored
Signed-off-by:Evgeni Golov <evgeni@debian.org>
-
Evgeni Golov authored
Given commit 330ae3d3: lxccontainer: detect if we should send SIGRTMIN+3 This is required by systemd to cleanly shutdown. Other init systems should not have SIGRTMIN+3 in the blocked signals set. we should stop poking around with sigpwr.target for systemd. Signed-off-by:
Evgeni Golov <evgeni@debian.org>
-
Evgeni Golov authored
it might not even be there… Signed-off-by:Evgeni Golov <evgeni@debian.org>
-
- 13 Dec, 2016 1 commit
-
-
fli authored
Enable lxc network config support the following type and link: lxc.network.type = phys lxc.network.link = eth+ Here, the suffix '+' will trigger a string pattern matching and when lxc find any network interfaces name prefixed with "eth" such as "eth0", "eth1", "ethxxxx" and so on, it will try to move them into the container's namespace; If it didn't find any matching, it would do nothing for this configure line. Signed-off-by:fli <fupan.li@windriver.com>
-
- 12 Dec, 2016 8 commits
-
-
Christian Brauner authored
templates: update openSUSE release to 42.2
-
Christian Brauner authored
Debian: powerpc and architecture fixes
-
Terzeus S. Dominguez authored
Removed libgcc_s1 because it breaks container building for openSUSE. Related: openSUSE/obs-build#188 Signed-off-by:Terzeus S. Dominguez <tsdmgz@gmail.com>
-
Santiago Ruano Rincón authored
Signed-off-by:
Santiago Ruano Rincón <santiago@debian.org> Signed-off-by:
Evgeni Golov <evgeni@debian.org>
-
Santiago Ruano Rincón authored
Signed-off-by:
Santiago Ruano Rincón <santiago@debian.org> Signed-off-by:
Evgeni Golov <evgeni@debian.org>
-
Terzeus S. Dominguez authored
Uncommented lxc.aa_profile = unconfined. Otherwise, container fails to start up. Signed-off-by:Terzeus S. Dominguez <tsdmgz@gmail.com>
-
Terzeus S. Dominguez authored
Signed-off-by:Terzeus S. Dominguez <tsdmgz@gmail.com>
-
Terzeus S. Dominguez authored
Aside from adding a 42.2 option, $DISTRO comparisons for Leap have been changed [ exp ] => [[ exp ]] to accomodate pattern matching for future releases. Signed-off-by:Terzeus S. Dominguez <tsdmgz@gmail.com>
-
- 10 Dec, 2016 2 commits
-
-
Stéphane Graber authored
conf, attach: save errno across call to close
-
Wolfgang Bumiller authored
Save errno across some calls to close() since it can be interrupted. Signed-off-by:Wolfgang Bumiller <wry.git@bumiller.com>
-
- 09 Dec, 2016 1 commit
-
-
Stéphane Graber authored
attach: close lsm label file descriptor
-
- 08 Dec, 2016 3 commits
-
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
templates: fix getty service startup
-
- 06 Dec, 2016 3 commits
-
-
Stéphane Graber authored
tools: account for different architectures
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
attach batch mode with -b flag which prints csv output with a timestamp
-