- 08 Jan, 2016 4 commits
-
-
Serge Hallyn authored
This way the lxcfs mount hook can know whether lxc knows about cgroup namespaces. Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com>
-
Serge Hallyn authored
Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com> --- Changelog 20160104: only try if kernel supports cgns.
-
Serge Hallyn authored
We'll probably want to make this configurable with a lxc.cgroupns = [1|0], but for now just always do it. Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com> --- Changelog 20160104: only try to unshare if /proc/self/ns/cgroup exists.
-
Serge Hallyn authored
and continue without them if possible. This allows an unpriv user who only has a few cgroups he owns to still use lxc. This patch only handles cgmanger - we need to handle this in cgfs too. Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com>
-
- 06 Jan, 2016 1 commit
-
-
Serge Hallyn authored
Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com>
-
- 04 Jan, 2016 15 commits
-
-
Serge Hallyn authored
Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com>
-
Serge Hallyn authored
Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com>
-
Serge Hallyn authored
Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com>
-
Serge Hallyn authored
Closes #1459 Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
Stéphane Graber authored
fix buffer overflow in ifaddrs.c
-
Stéphane Graber authored
python-lxc: Call PyOS_AfterFork after attaching to a container
-
Stéphane Graber authored
Fix #520 - multiple instances of agetty on systemd.
-
Wim Coekaerts authored
nlmsg_reserve() might return NULL if (nlmsg_len + tlen > nlmsg->cap) return NULL; Also set err = -ENOMEM where appropriate Signed-off-by:Wim Coekaerts <wim.coekaerts@oracle.com> Acked-by:
Serge E. Hallyn <serge.hallyn@ubuntu.com>
-
KATOH Yasufumi authored
* Add long options if not be written * Remove optional tags in OPTIONS section Signed-off-by:
KATOH Yasufumi <karma@jazz.email.ne.jp> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
KATOH Yasufumi authored
only add to English and Japanese docs. Signed-off-by:
KATOH Yasufumi <karma@jazz.email.ne.jp> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
Wim Coekaerts authored
network.c:is_wlan() File Leak f f initialized at line 156 with fopen f leaks when fopen(path, r) != NULL at line 156 and physname == NULL at line 163. Signed-off-by:
Wim Coekaerts <wim.coekaerts@oracle.com> Acked-by:
Stéphane Graber <stgraber@ubuntu.com> Acked-by:
Serge E. Hallyn <serge.hallyn@ubuntu.com>
-
Wim Coekaerts authored
while highly unlikely to happen... char version[1024]; fscanf(.. %[1024] .., version ); should leave room for null termination Signed-off-by:
Wim Coekaerts <wim.coekaerts@oracle.com> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
KATOH Yasufumi authored
* remove unavailable options (-w, -r) * remove overlapped option (-P) * classify options according to bdev type Signed-off-by:
KATOH Yasufumi <karma@jazz.email.ne.jp> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
Marko Hauptvogel authored
From b24b0e16848fbb93402a08efa3950cd59272b8da Mon Sep 17 00:00:00 2001 From: Marko Hauptvogel <marko.hauptvogel@googlemail.com> Date: Sun, 3 Jan 2016 23:07:19 +0100 Subject: [PATCH] Documenting valueless lxc.cap.drop behaviour Undocummented behaviour since 7d0eb87e. Signed-off-by:
Marko Hauptvogel <marko.hauptvogel@googlemail.com> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
Wim Coekaerts authored
Linux for SPARC is a free community Linux distribution for SPARC hosted by Oracle. See : https://oss.oracle.com/projects/linux-sparc While the distribution is based on Oracle Linux it does have some differences and since it's not actually Oracle Linux I decided to add a separate template rather than having the Oracle Linux template also support Linux for SPARC. This patch adds the lxc-template for Linux for SPARC and it also adds Linux for SPARC in the configure.ac as a distribution target to build. Signed-off-by:
Wim Coekaerts <wim.coekaerts@oracle.com> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
- 01 Jan, 2016 1 commit
-
-
Aron Podrigal authored
Fixes issue with double tty login lxc-console Ref #520, #484 Signed-off-by:Aron Podrigal <aronp@guaranteedplus.com>
-
- 30 Dec, 2015 1 commit
-
-
tw19881113@gmail.com authored
jenkins: ok to test Signed-off-by:Tw <tw19881113@gmail.com>
-
- 28 Dec, 2015 11 commits
-
-
Serge Hallyn authored
split bdev into modules: btrfs + rsync
-
Christian Brauner authored
Using #include <sys/types.h> is not sufficient to guarantee that __le64 and other types are defined. Signed-off-by:Christian Brauner <christian.brauner@mailbox.org>
-
Christian Brauner authored
The struct struct ovl_rsync_data { struct bdev *orig; struct bdev *new; }; is simply a duplicate of struct rsync_data { struct bdev *orig; struct bdev *new; }; So let's replace any references to ovl_rsync_data with rsync_data. Signed-off-by:Christian Brauner <christian.brauner@mailbox.org>
-
Christian Brauner authored
The functions: - do_rsync(); - rsync_delta(); - rsync_delta_wrapper(); - rsync_rootfs(); - rsync_rootfs_wrapper(); and the structs - struct rsync_data; - struct rsync_data_char; move from bdev.{c,h} to lxcrsync.{c.h}. All functions previously declared as static become public. lxcrsync.{c,h} should allow for a reasonable amount of abstraction regarding our rsync functions. Some of the functions could easily be abstracted. Adapt Makefile.am to include lxcrsync.{c,h}. Signed-off-by:Christian Brauner <christian.brauner@mailbox.org>
-
Christian Brauner authored
Declare - btrfs_same_fs(); - btrfs_snapshot(); extern instead of static in lxcbtrfs.h. They are defined in lxcbtrfs.c. Forward declare/put - struct bdev; /* defined in bdev.h */ - struct bdev_specs; /* defined in lxccontainer.h */ - struct lxc_conf; /* defined conf.h */ as incomplete types in lxcbtrfs.h so that functions declared and defined in lxcbtrfs.{c,h} have access to it. Declare - dir_new_path(); in lxcbtrfs.c. It is defined in lxccontainer.c. Move definition of struct - struct rsync_data_char; from bdev.c to bdev.h because the functions in lxcbtrfs.{c,h} need to access it. Signed-off-by:Christian Brauner <christian.brauner@mailbox.org>
-
Christian Brauner authored
Create a module for btrfs: lxcbtrfs.{c,h}. The functions: - get_btrfs_subvol_path() - btrfs_list_get_path_rootid() - is_btrfs_fs() - btrfs_detect() - btrfs_mount() - btrfs_umount() - btrfs_subvolume_create() - btrfs_same_fs() - btrfs_snapshot() - btrfs_snapshot_wrapper() - btrfs_clonepaths() - btrfs_do_destroy_subvol() - get_btrfs_tree_idx() - my_btrfs_tree *create_my_btrfs_tree() - update_tree_node() - add_btrfs_tree_node() - free_btrfs_tree() - do_remove_btrfs_children() - btrfs_recursive_destroy() - btrfs_try_remove_subvol() - btrfs_destroy() - btrfs_create() and the structs: - struct mytree_node - struct my_btrfs_tree move from bdev.{c,h} to lxcbtrfs.{c,h}. Rename the header file - lxc-btrfs.h --> lxcbtrfs.h Adapt Makefile.am to include lxcbtrfs.{c,h} and remove lxc-btrfs.h. Signed-off-by:Christian Brauner <christian.brauner@mailbox.org>
-
Christian Brauner authored
Using #include <sys/types.h> is not sufficient to guarantee that __le64 and other types are defined. Signed-off-by:Christian Brauner <christian.brauner@mailbox.org>
-
Christian Brauner authored
The struct struct ovl_rsync_data { struct bdev *orig; struct bdev *new; }; is simply a duplicate of struct rsync_data { struct bdev *orig; struct bdev *new; }; So let's replace any references to ovl_rsync_data with rsync_data. Signed-off-by:Christian Brauner <christian.brauner@mailbox.org>
-
Christian Brauner authored
The functions: - do_rsync(); - rsync_delta(); - rsync_delta_wrapper(); - rsync_rootfs(); - rsync_rootfs_wrapper(); and the structs - struct rsync_data; - struct rsync_data_char; move from bdev.{c,h} to lxcrsync.{c.h}. All functions previously declared as static become public. lxcrsync.{c,h} should allow for a reasonable amount of abstraction regarding our rsync functions. Some of the functions could easily be abstracted. Adapt Makefile.am to include lxcrsync.{c,h}. Signed-off-by:Christian Brauner <christian.brauner@mailbox.org>
-
Christian Brauner authored
Declare - btrfs_same_fs(); - btrfs_snapshot(); extern instead of static in lxcbtrfs.h. They are defined in lxcbtrfs.c. Forward declare/put - struct bdev; /* defined in bdev.h */ - struct bdev_specs; /* defined in lxccontainer.h */ - struct lxc_conf; /* defined conf.h */ as incomplete types in lxcbtrfs.h so that functions declared and defined in lxcbtrfs.{c,h} have access to it. Declare - dir_new_path(); in lxcbtrfs.c. It is defined in lxccontainer.c. Move definition of struct - struct rsync_data_char; from bdev.c to bdev.h because the functions in lxcbtrfs.{c,h} need to access it. Signed-off-by:Christian Brauner <christian.brauner@mailbox.org>
-
Christian Brauner authored
Create a module for btrfs: lxcbtrfs.{c,h}. The functions: - get_btrfs_subvol_path() - btrfs_list_get_path_rootid() - is_btrfs_fs() - btrfs_detect() - btrfs_mount() - btrfs_umount() - btrfs_subvolume_create() - btrfs_same_fs() - btrfs_snapshot() - btrfs_snapshot_wrapper() - btrfs_clonepaths() - btrfs_do_destroy_subvol() - get_btrfs_tree_idx() - my_btrfs_tree *create_my_btrfs_tree() - update_tree_node() - add_btrfs_tree_node() - free_btrfs_tree() - do_remove_btrfs_children() - btrfs_recursive_destroy() - btrfs_try_remove_subvol() - btrfs_destroy() - btrfs_create() and the structs: - struct mytree_node - struct my_btrfs_tree move from bdev.{c,h} to lxcbtrfs.{c,h}. Rename the header file - lxc-btrfs.h --> lxcbtrfs.h Adapt Makefile.am to include lxcbtrfs.{c,h} and remove lxc-btrfs.h. Signed-off-by:Christian Brauner <christian.brauner@mailbox.org>
-
- 24 Dec, 2015 1 commit
-
-
Danil Osherov authored
As lxc_attach() calls fork() PyOS_AfterFork should be called in the new process if the Python interpreter will continue to be used. Signed-off-by:Danil Osherov <shindo@yandex-team.ru>
-
- 23 Dec, 2015 2 commits
-
-
Serge Hallyn authored
Fix swap calculation (#737)
-
Eva Charlotte Mayer authored
Signed-off-by:Eva Charlotte Mayer <eva-charlotte.mayer@posteo.de>
-
- 21 Dec, 2015 4 commits
-
-
Stéphane Graber authored
Note that LXC 2.0 remains backward compatible with 1.0, so the ABI version is 1.2, not 2.0. Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
KATOH Yasufumi authored
Signed-off-by:
KATOH Yasufumi <karma@jazz.email.ne.jp> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
Sungbae Yoo authored
Update for commit 60656b37Signed-off-by:
Sungbae Yoo <sungbae.yoo@samsung.com> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
Sungbae Yoo authored
Update for commit a8dfe4e0 and 6039eaa2Signed-off-by:
Sungbae Yoo <sungbae.yoo@samsung.com> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-