- 02 Dec, 2020 2 commits
-
-
Stéphane Graber authored
network: fix LXC_NET_NONE cleanup
-
Tycho Andersen authored
We have a case where we have a nested container with LXC_NET_NONE run inside a container that's *also* got no network namespace (run by lxc-usernsexec). The "am I root" check in this function then does not suffice, since the euid of the task is 0 but it does not have privilege over its network namespace, and thus cannot do any of the restore operations: lxc foo 20201201232059.271 TRACE network - network.c:lxc_restore_phys_nics_to_netns:3299 - Moving physical network devices back to parent network namespace lxc foo 20201201232059.271 ERROR network - network.c:lxc_restore_phys_nics_to_netns:3307 - Operation not permitted - Failed to enter network namespace lxc foo 20201201232059.271 ERROR start - start.c:__lxc_start:2045 - Failed to move physical network devices back to parent network namespace Let's check that we indeed did clone the network namespace, and thus have things to restore to their correct namespace before attempting to actually restore them. I suspect it's possible we can also get rid of some of the network namespace preservation stuff in start.c in the LXC_NET_NONE case. Signed-off-by:Tycho Andersen <tycho@tycho.pizza>
-
- 21 Nov, 2020 2 commits
-
-
Stéphane Graber authored
doc: Add lxc.cgroup.dir.monitor.pivot to Japanese man page
-
KATOH Yasufumi authored
Signed-off-by:KATOH Yasufumi <karma@jazz.email.ne.jp>
-
- 18 Nov, 2020 2 commits
-
-
Stéphane Graber authored
commands_utils: fix lxc-wait
-
Christian Brauner authored
Closes: #3570 Fixes: 7792a5b6 ("commands: add additional check to lxc_cmd_sock_get_state()") Signed-off-by:
Christian Brauner <christian.brauner@ubuntu.com>
-
- 17 Nov, 2020 2 commits
-
-
Stéphane Graber authored
file_utils: fix config file parsing
-
Christian Brauner authored
We accidently used the "bytes_to_write" variable after we've written all the bytes at which point it is guaranteed to be 0. Let's use the "bytes_read" variable instead. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
- 16 Nov, 2020 3 commits
-
-
Stéphane Graber authored
conf: improve mountinfo and config parsing
-
Christian Brauner authored
Closes: #3580. Link: https://bugzilla.kernel.org/show_bug.cgi?id=209971Suggested-by:
Joan Bruguera <joanbrugueram@gmail.com> Signed-off-by:
Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
- 13 Nov, 2020 2 commits
-
-
Christian Brauner authored
cgfsng: adjust log level to warn instead of error
-
lifeng68 authored
Signed-off-by:lifeng68 <lifeng68@huawei.com>
-
- 05 Nov, 2020 4 commits
-
-
Stéphane Graber authored
attach: silence stdio permission adjust warnings
-
Christian Brauner authored
Closes: #3576. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Stéphane Graber authored
Add missing free for monitor_pivot_dir.
-
Ruben Jenster authored
Signed-off-by:Ruben Jenster <r.jenster@drachenfels.de>
-
- 02 Nov, 2020 3 commits
-
-
Stéphane Graber authored
seccomp: fixes
-
Christian Brauner authored
Suggested-by:
Jann Horn <jann@thejh.net> Signed-off-by:
Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Suggested-by:
Jann Horn <jann@thejh.net> Signed-off-by:
Christian Brauner <christian.brauner@ubuntu.com>
-
- 28 Oct, 2020 6 commits
-
-
Stéphane Graber authored
coverity fixes
-
Christian Brauner authored
to avoid liblxc stumbling over an smaller struct passed in from an older liblxc. In the future we should version by size but this requires a new attach2(). Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Fixes: Coverity 1465853 Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Fixes: Coverity 1465854 Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Fixes: Coverity 1465855 Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Fixes: Coverity 1465657 Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
- 27 Oct, 2020 11 commits
-
-
Christian Brauner authored
lxc-attach: Enable setting the SELinux context
-
Christian Brauner authored
cgroups: Introduce lxc.cgroup.dir.monitor.pivot - fixes cgroup removal on termination
-
Christian Brauner authored
seccomp: fix pseudo syscalls, improve logging and avoid duplicate processing
-
Christian Brauner authored
tests: Fix compilation with appamor enabled.
-
Christian Brauner authored
lxccontainer: fix lxc_config_item_is_supported
-
Maximilian Blenk authored
Enable lxc-attach to set the SELinux context that the user will end up in when attaching to a container (This can be used to overwrite the context set in the config file). If the option is not used, behavior will be as before Signed-off-by:Maximilian Blenk <Maximilian.Blenk@bmw.de>
-
Ruben Jenster authored
Signed-off-by:Ruben Jenster <r.jenster@drachenfels.de>
-
Ruben Jenster authored
Use exact match instead of longest prefix match to check whether a config item is supported. Signed-off-by:Ruben Jenster <r.jenster@drachenfels.de>
-
Ruben Jenster authored
On termination lxc may fail to remove either lxc.cgroup.dir or lxc.cgroup.dir.monitor, because the monitor process may still be a member of either of these cgroups. The pivot cgroup should not be a member (subpath) of any other container cgroup (dir). because only empty cgroups can be removed. Signed-off-by:Ruben Jenster <r.jenster@drachenfels.de>
-
Ruben Jenster authored
Signed-off-by:Ruben Jenster <r.jenster@drachenfels.de>
-
Ruben Jenster authored
Signed-off-by:Ruben Jenster <r.jenster@drachenfels.de>
-
- 24 Oct, 2020 2 commits
-
-
Stéphane Graber authored
Update Japanese pam_cgfs(8) to reflect lack of support for pure cgroupv2
-
KATOH Yasufumi authored
Update for commit b87ed83bSigned-off-by:
KATOH Yasufumi <karma@jazz.email.ne.jp>
-
- 20 Oct, 2020 1 commit
-
-
Stéphane Graber authored
conf: account for early return when sending devpts fd
-