- 27 Jan, 2018 1 commit
-
-
Stéphane Graber authored
The package has pretty much always been iproute2 with iproute being an alias for it, the alias is now gone so we need to use iproute2. Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
- 26 Jan, 2018 6 commits
-
-
Christian Brauner authored
Unpriv fixups
-
Tycho Andersen authored
Signed-off-by:Tycho Andersen <tycho@tycho.ws>
-
Tycho Andersen authored
In particular, if we are already in a user namespace we are unprivileged, and doing things like moving the physical nics back to the host netns won't work. Let's do the same thing LXD does if euid == 0: inspect /proc/self/uid_map and see what that says. Signed-off-by:Tycho Andersen <tycho@tycho.ws>
-
Tycho Andersen authored
Consider the case where we're running in a user namespace but in the host's mount ns with the host's filesystem (something like lxc-usernsexec ... lxc-execute ...), in this case, we'll be euid 0, but we can't actually write to /run. Let's improve this locking check to make sure we can actually write to /run before we decide to actually use it as our locking dir. Signed-off-by:Tycho Andersen <tycho@tycho.ws>
-
Christian Brauner authored
[cgfsng] show wrong errno
-
duguhaotian authored
lxc_cgroup_set_data: h = get_hierarchy(controller); if h is NULL, now errno is old, it donot set new one. And then, cgfsng_setup_limits: if (lxc_cgroup_set_data(cg->subsystem, cg->value, d)) { if (do_devices && (errno == EACCES || errno == EPERM)) { WARN("Error setting %s to %s for %s", cg->subsystem, cg->value, d->name); continue; } SYSERROR("Error setting %s to %s for %s", cg->subsystem, cg->value, d->name); goto out; } SYSERROR will show old errno, make me confused. Signed-off-by:duguhaotian <duguhaotian@gmail.com>
-
- 24 Jan, 2018 1 commit
-
-
Stéphane Graber authored
bugfixes
-
- 23 Jan, 2018 2 commits
-
-
Christian Brauner authored
network.c: Remove ip_forward_set and callers
-
Marcos Paulo de Souza authored
The last user of ip_forward_set, lxc_ip_forward_on and lxc_ip_forward_off was in 2009: commit 92d38522 Author: Daniel Lezcano <dlezcano@fr.ibm.com> Date: Thu Oct 22 15:33:40 2009 +0200 remove test directory These functions are not called anymore. Signed-off-by:
Marcos Paulo de Souza <marcos.souza.org@gmail.com>
-
- 22 Jan, 2018 6 commits
-
-
Christian Brauner authored
Create console when the rootfs is NULL
-
LiFeng authored
Add check whether handler->conf->console.path is 'none' Signed-off-by:LiFeng <lifeng68@huawei.com>
-
Christian Brauner authored
Modify .gitignore
-
LiFeng authored
Add: src/tests/lxc-test-api-reboot src/tests/lxc-test-criu-check-feature src/tests/lxc-test-raw-clone src/tests/lxc-test-share-ns src/tests/lxc-test-state-server Signed-off-by:LiFeng <lifeng68@huawei.com>
-
Christian Brauner authored
doc: Update Japanese lxc-attach(1) and lxc.container.conf(5)
-
KATOH Yasufumi authored
* Update for commit ba2be1a8 (attach: move pty allocation into api) * Update for commit 5757588f (manpage: correct lxc.log.file conf option) Signed-off-by:
KATOH Yasufumi <karma@jazz.email.ne.jp>
-
- 21 Jan, 2018 5 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
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
remove logically dead code Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
do not call close on bad fd Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
- 20 Jan, 2018 9 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
avoid (however unlikely) double free Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
remove logically dead code 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
storage: treat return value from ops->destroy as int
-
- 19 Jan, 2018 10 commits
-
-
Christian Brauner authored
manpage: correct lxc.log.file conf option
-
Christian Brauner authored
unlink lxc-init
-
Michael McCracken authored
r->ops->destroy() returns an int, -1 on error. When assigned to a bool, this becomes true and hides errors. Signed-off-by:Michael McCracken <mikmccra@cisco.com>
-
Tycho Andersen authored
It's sort of an implementation detail that this exists at all, and we should probably not pollute the container's mount tables or FS with this. Signed-off-by:Tycho Andersen <tycho@tycho.ws>
-
LiFeng authored
Signed-off-by:LiFeng <lifeng68@huawei.com>
-
Michael McCracken authored
lxc.log.file instead of just lxc.log Signed-off-by:Michael McCracken <mikmccra@cisco.com>
-
Serge Hallyn authored
Propagate exit code for app containers
-
Tycho Andersen authored
Signed-off-by:Tycho Andersen <tycho@tycho.ws>
-
Tycho Andersen authored
Now that we have things propagated through init and liblxc correctly, at least in non-daemon mode, we can exit with the actual exit status of the task, instead of always succeeding, which is not so helpful. Signed-off-by:Tycho Andersen <tycho@tycho.ws>
-
Tycho Andersen authored
This seems slightly counter-intuitive, but IMO it's what we want. Basically, ->start() should succeed if the container is spawned correctly (similar to how golang's exec.Cmd.Start() returns nil if the thing spawns correctly), and users can check error_num (i.e. golang's exec.Cmd.Wait()) to see how it exited. This preserves previous behavior, which basically was that start was always successful if the thing actually launched. Since we never kept track of exit codes, this would always succeed too. Now that we do, it doesn't, and this change is required. Signed-off-by:Tycho Andersen <tycho@tycho.ws>
-