- 07 Dec, 2019 2 commits
-
-
Rachid Koucha authored
"busy" field is assigned with the command socket descriptor when the terminal is in use. So, use "-1" to disable it. Signed-off-by:Rachid Koucha <rachid.koucha@gmail.com>
-
Maximilian Blenk authored
When parsing mount options e.g. from lxc.mount.entry the specified options are mapped to the flags constants. To do so, the strings are compared to the options contained in mount_opt. However, when comparing the strings, the length of the string is not checked. That entails that the option "rootcontext=selinux-context" is mapped to the mount option read-only (ro). This commit fixes this issue by checking if a '=' is contained in the specified option and additionally comparing the length of the strings. Signed-off-by:Maximilian Blenk <Maximilian.Blenk@bmw.de>
-
- 05 Dec, 2019 4 commits
-
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
The current attach.c codepath which handles moving the attaching process into the container's cgroups allocates a whole new struct cgroup_ops and goes through the trouble of reparsing the whole cgroup layout. That's costly and wasteful. My plan has always been to move this into the command api by getting fds for attaching back but but it's not worth going through that hazzle for non-unified hosts. On pure unified hosts however - being the future - we can just attach through a single fd so there's no need to allocate and setup struct cgroup_ops. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
- 04 Dec, 2019 3 commits
-
-
Christian Brauner authored
This reverts commit ecaf0c7b. I somehow accidently did a double-backport. Signed-off-by:
Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
On pure unified systemd we can use a single file descriptor to interact with the cgroup filesystem. Add a method to retrieve it and as a start use it in our unified attach codepath. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
- 03 Dec, 2019 6 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>
-
dongxinhua authored
Signed-off-by:dongxinhua <dongxinhua@huawei.com>
-
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
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
- 02 Dec, 2019 25 commits
-
-
Christian Brauner authored
This causes compilation failures due to a bad cherry-pick. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
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
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
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
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
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
Add a bpf-based device controller implementation. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
LiFeng authored
Signed-off-by:LiFeng <lifeng68@huawei.com>
-
Balázs Póka authored
Signed-off-by:Balázs Póka <poka@idata.hu>
-
Rachid Koucha authored
"above" was used instead of "below" Signed-off-by:Rachid Koucha <rachid.koucha@gmail.com>
-
Christian Brauner authored
BugLink: https://bugs.launchpad.net/bugs/1848587 The latter device has been removed apparently. Signed-off-by:
Christian Brauner <christian.brauner@ubuntu.com>
-
Fabrice Fontaine authored
Commit 3b5a0eeb reverted 3aa72711 resulting in lxc being unable to be built on toolchain without SSP support Fixes: - http://autobuild.buildroot.org/results/57945f54ffbc5c8764b6891a4516c4907e56ab97Signed-off-by:
Fabrice Fontaine <fontaine.fabrice@gmail.com>
-
Aaditya Murthy authored
Fixed the documentation to say that cgroupv2 uses a unified hierarchy Signed-off-by:Aaditya Murthy <amurthy123@utexas.edu>
-
Christian Brauner authored
Closes: https://github.com/lxc/lxd/issues/6408Signed-off-by:
Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Serge Hallyn authored
Signed-off-by:Serge Hallyn <shallyn@cisco.com>
-
Florian Margaine authored
lxc2 broke this feature for lxc-execute, and lxc3 broke it for lxc-attach. This adds a test making sure we don't do the same mistake a third time. Signed-off-by:Florian Margaine <florian@platform.sh>
-
Wolfgang Bumiller authored
Callers expect a NULL on error, and with PR #3171 marking the pointer as __do_free, we now return a pointer to freed memory here otherwise. Signed-off-by:Wolfgang Bumiller <w.bumiller@proxmox.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Patrick Havelange authored
In case the internal memfd_create has to be used, make sure we don't clash with the already existing memfd_create function from glibc. This can happen if this glibc function is a stub. In this case, at ./configure time, the test for this function will return false, however the declaration of that function is still available. This leads to compilation errors. Signed-off-by:Patrick Havelange <patrick.havelange@essensium.com>
-
Thomas Parrott authored
Partially reverts 65b92ea5 so that trying to destroy a non-existent container gives an error message. Signed-off-by:
Thomas Parrott <thomas.parrott@canonical.com>
-
KATOH Yasufumi authored
Update for commit 767bd70aSigned-off-by:
KATOH Yasufumi <karma@jazz.email.ne.jp>
-