- 08 Aug, 2015 4 commits
-
-
Christian Brauner authored
- This enables the user to destroy a container with all its snapshots without having to use lxc-snapshot first to destroy all snapshots. (The enum values DESTROY and SNAP from the previous commit are reused here again.) - Some unification regarding the usage of exit() and return has been done. Signed-off-by:Christian Brauner <christianvanbrauner@gmail.com>
-
Christian Brauner authored
"NAME for name of the container" becomes "NAME of the container" Signed-off-by:Christian Brauner <christianvanbrauner@gmail.com>
-
Christian Brauner authored
Passing the LXC_CLONE_KEEPNAME flag to do_lxcapi_clone() was not respected. We wrap clear_unexp_config_line() and set_config_item_line() in an appropriate if-condition. Signed-off-by:Christian Brauner <christianvanbrauner@gmail.com>
-
Christian Brauner authored
- This commit adapts lxc-clone to be similiar in usage and feel to the other lxc-* executables. It builds on the previous extension of the lxc_argument struct and now uses the default lxc_arguments_parse() function. - Options which were not used have been removed. - The LXC_CLONE_KEEPNAME flag was not respected in the previous version of lxc-clone. The culprit is a missing if-condition in lxccontainer.c. As this requires a change in one of the API functions in lxccontainer.c it will be addressed in a follow-up commit. Signed-off-by:Christian Brauner <christianvanbrauner@gmail.com>
-
- 07 Aug, 2015 1 commit
-
-
Christian Brauner authored
- lxc_snapshot.c lacked necessary members in the associated lxc_arguments struct in arguments.h. This commit extends the lxc_arguments struct to include several parameters used by lxc-snapshot which allows a rewrite that is more consistent with the rest of the lxc-* executables. - All tests have been moved beyond the call to lxc_log_init() to allow for the messages to be printed or saved. - Some small changes to the my_args struct. (The enum task is set to SNAP (for snapshot) per default and variables illustrating the usage of the command line flags are written in all caps.) - arguments.h has been extended to accommodate a rewrite of lxc-clone Signed-off-by:Christian Brauner <christianvanbrauner@gmail.com>
-
- 05 Aug, 2015 4 commits
-
-
Stéphane Graber authored
templates: lxc-opensuse, use rpm to determine build version
-
Stéphane Graber authored
Fix error message when cannot find an lxc-init
-
Jiri Slaby authored
zypper info's output is not usable for several reasons: * it is localized -- there is no "Version: " in my output * it shows results both from the repo and local system So use plain rpm to determine whether build is installed and if proper version is in place. Signed-off-by:Jiri Slaby <jslaby@suse.cz>
-
Nicolas Cornu authored
lxc-init has been renamed init.lxc so adapt error message Signed-off-by:Nicolas Cornu <ncornu@aldebaran.com>
-
- 04 Aug, 2015 6 commits
-
-
Natanael Copa authored
We need specify which hashing algorithm was used to create the signature we check. Fixes #609 Signed-off-by:
Natanael Copa <ncopa@alpinelinux.org> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
Stéphane Graber authored
Add option to rename container to lxc-clone
-
Stéphane Graber authored
Update Korean manuals
-
Sungbae Yoo authored
Update for commit 7cab33b1Signed-off-by:
Sungbae Yoo <sungbae.yoo@samsung.com>
-
Sungbae Yoo authored
Update for commit 2cf7c05aSigned-off-by:
Sungbae Yoo <sungbae.yoo@samsung.com>
-
Sungbae Yoo authored
Update for commit 1940bff4Signed-off-by:
Sungbae Yoo <sungbae.yoo@samsung.com>
-
- 03 Aug, 2015 6 commits
-
-
Christian Brauner authored
This commit adds an -R, --rename option to lxc-clone to rename a container. As c->rename calls do_lxcapi_rename() which in turn calls do_lxcapi_clone() it seemed best to implement it in lxc-clone rather than lxc-snapshot which also calls do_lxcapi_clone(). Some additional unification regarding the usage of return vs exit() in main() was done. Signed-off-by:Christian Brauner <christianvanbrauner@gmail.com>
-
Stéphane Graber authored
Update man pages
-
KATOH Yasufumi authored
lxc-user-nic command cannot use common options. Signed-off-by:KATOH Yasufumi <karma@jazz.email.ne.jp>
-
KATOH Yasufumi authored
Signed-off-by:KATOH Yasufumi <karma@jazz.email.ne.jp>
-
KATOH Yasufumi authored
Signed-off-by:KATOH Yasufumi <karma@jazz.email.ne.jp>
-
Stéphane Graber authored
Add -P lxcpath and --version to lxc-ls manpage
-
- 01 Aug, 2015 1 commit
-
-
Christian Brauner authored
lxc-ls takes -P lxcpath and --version as arguments but it did not specify these options on the manpages. Signed-off-by:Christian Brauner <christianvanbrauner@gmail.com>
-
- 29 Jul, 2015 1 commit
-
-
Serge Hallyn authored
seccomp: simplify and fix rule parsing
-
- 23 Jul, 2015 1 commit
-
-
Wolfgang Bumiller authored
1) Two checks on amd64 for whether compat_ctx has already been generated were redundant, as compat_ctx is generally generated before entering the parsing loop. 2) With introduction of reject_force_umount the check for whether the syscall has the same id on both native and compat archs results in false behavior as this is an internal keyword and thus produces a -1 on seccomp_syscall_resolve_name_arch(). The result was that it was added to the native architecture twice and never to the 32 bit architecture, causing it to have no effect on 32 bit containers on 64 bit hosts. 3) I do not see a reason to care about whether the syscalls have the same number on the two architectures. On the one hand this check was there to avoid adding it to two archs (and effectively leaving one arch unprotected), while on the other hand it seemed to be okay to add it to the same arch *twice*. The entire architecture checking branches are now reduced to three simple cases: 'native', 'non-native' and 'all'. With 'all' adding to both architectures regardless of the syscall ID. Also note that libseccomp had a bug in its architecture checking, so architecture related filters weren't working as expected before version 2.2.2, which may have contributed to the confusion in the original architecture-related code. Signed-off-by:Wolfgang Bumiller <w.bumiller@proxmox.com>
-
- 22 Jul, 2015 3 commits
-
-
Stéphane Graber authored
Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
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>
-
- 21 Jul, 2015 2 commits
-
-
Stéphane Graber authored
lxc-ubuntu-cloud: support passing vendor-data
-
Scott Moser authored
vendor-data is supported in Ubuntu cloud images in trusty and later. This allows the user to pass it in on create or clone. Signed-off-by:Scott Moser <smoser@ubuntu.com>
-
- 20 Jul, 2015 1 commit
-
-
Stéphane Graber authored
Use /dev/loop-control if it exists
-
- 19 Jul, 2015 4 commits
-
-
Stéphane Graber authored
The Fedora 22 squashfs doesn't appear to work, the Fedora 21 isn't available, so lets use the fedora archive mirror and pull the good old Fedora 20 squashfs. 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
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>
-
- 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>
-
- 14 Jul, 2015 1 commit
-
-
Stéphane Graber authored
fix container creation from ansible lxc_containers module
-
- 13 Jul, 2015 1 commit
-
-
Alex Punco authored
Signed-off-by:Alex Punco <punco@selectel.ru>
-
- 03 Jul, 2015 1 commit
-
-
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>
-
- 01 Jul, 2015 2 commits
-
-
Stéphane Graber authored
debian template: reconfigure locales
-
有张纸 authored
Signed-off-by:feng xiahou <xiahoufeng@yahoo.com>
-