]>
git.ipfire.org Git - thirdparty/lxc.git/log
Christian Brauner [Wed, 6 Apr 2016 11:08:06 +0000 (13:08 +0200)]
lxc_mount_auto_mounts(): free memory on failure
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Stéphane Graber [Tue, 5 Apr 2016 22:39:44 +0000 (18:39 -0400)]
Merge pull request #947 from brauner/bugfix_branch
add more error handling + cleanup copy_storage()
Christian Brauner [Tue, 5 Apr 2016 21:53:49 +0000 (23:53 +0200)]
add more error handling + cleanup copy_storage()
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Serge Hallyn [Tue, 5 Apr 2016 19:09:51 +0000 (14:09 -0500)]
Merge pull request #945 from brauner/bugfix_branch
set lxc.rootfs.backend on container creation
Christian Brauner [Tue, 5 Apr 2016 18:43:02 +0000 (20:43 +0200)]
set lxc.rootfs.backend on copy/snapshot as well
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Christian Brauner [Tue, 5 Apr 2016 17:23:12 +0000 (19:23 +0200)]
set lxc.rootfs.backend on container creation
Since specifying lxc.rootfs.backend can lead to performance improvements we
always set it during container creation.
This also fixes a bug. do_bdev_create() tried to be smart and retrieve the lower
directory when bdev->type == overlayfs or aufs thereby cutting the path.
However, this operation is done in ovl_mount() and aufs_mount() and both
functions need the full src path for this. The bug didn't show before because
when creating a overlayfs container with e.g.:
lxc-create -n c -t busybox -B overlayfs
still left bdev->type set to dir and so the code for retrieving the lower dir in
do_bdev_create() was skipped. But by setting lxc.rootfs.backend on container
creation we force bdev->type to be set to e.g. overlayfs and the code gets
executed thereby exposing the bug.
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Serge Hallyn [Tue, 5 Apr 2016 14:24:36 +0000 (09:24 -0500)]
Merge pull request #944 from brauner/bugfix_branch
use correct "overlayfs" instead of "ovl"
Christian Brauner [Tue, 5 Apr 2016 14:05:29 +0000 (16:05 +0200)]
use correct "overlayfs" instead of "ovl"
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Stéphane Graber [Tue, 5 Apr 2016 02:44:50 +0000 (22:44 -0400)]
Merge pull request #943 from tenforward/japanese
doc: Add lxc.rootfs.backend in Japanese lxc.container.conf(5)
KATOH Yasufumi [Tue, 5 Apr 2016 02:04:59 +0000 (11:04 +0900)]
doc: Add lxc.rootfs.backend in Japanese lxc.container.conf(5)
Update for commit
f903986
Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
Stéphane Graber [Mon, 4 Apr 2016 03:04:53 +0000 (23:04 -0400)]
Merge pull request #942 from ysbnim/master
Add a document of lxc.rootfs.backend in Korean manpage
Sungbae Yoo [Mon, 4 Apr 2016 02:26:19 +0000 (11:26 +0900)]
Add a document of lxc.rootfs.backend in Korean manpage
Update for commit
f903986
Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Stéphane Graber [Sun, 3 Apr 2016 16:57:22 +0000 (12:57 -0400)]
Merge pull request #941 from evgeni/spelling
fix spelling mistakes spotted by Debian's lintian
Evgeni Golov [Sun, 3 Apr 2016 16:49:54 +0000 (18:49 +0200)]
fix spelling mistakes spotted by Debian's lintian
Signed-off-by: Evgeni Golov <evgeni@debian.org>
Christian Brauner [Sun, 3 Apr 2016 16:35:11 +0000 (18:35 +0200)]
Merge pull request #936 from overlayfs/btrfs_recursive_destroy
fix btrfs_recursive_destroy
Oleg Freedholm [Sun, 3 Apr 2016 15:15:58 +0000 (01:15 +1000)]
store errno immediately after ioctl
Signed-off-by: Oleg Freedholm <overlayfs@gmail.com>
Stéphane Graber [Sun, 3 Apr 2016 03:52:04 +0000 (23:52 -0400)]
Merge pull request #940 from hallyn/2016-04-02/bdev.4
switch user facing name to lxc.rootfs.backend
Serge Hallyn [Sun, 3 Apr 2016 03:05:09 +0000 (22:05 -0500)]
document lxc.rootfs.backend
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Sun, 3 Apr 2016 02:32:34 +0000 (21:32 -0500)]
switch user facing name to lxc.rootfs.backend
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Christian Brauner [Sun, 3 Apr 2016 02:03:26 +0000 (04:03 +0200)]
Merge pull request #939 from hallyn/2016-04-02/bdev.3
rootfs.bdev_type: implement get and clear
Serge Hallyn [Sun, 3 Apr 2016 01:43:35 +0000 (20:43 -0500)]
rootfs.bdev_type: implement get and clear
clear is just set(x, ""), but before this patch that didn't work bc
"" is nota valid bdev type.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Christian Brauner [Sat, 2 Apr 2016 21:29:07 +0000 (23:29 +0200)]
Merge pull request #938 from hallyn/2016-04-02/bdev.2
use more accurate bdev_type name for rootfs.bdev
Serge Hallyn [Sat, 2 Apr 2016 21:08:18 +0000 (16:08 -0500)]
use more accurate bdev_type name for rootfs.bdev
It'll make future code reading easier.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Christian Brauner [Sat, 2 Apr 2016 21:06:58 +0000 (23:06 +0200)]
Merge pull request #937 from hallyn/2016-04-02/bdev
2016 04 02/bdev
Serge Hallyn [Sat, 2 Apr 2016 20:47:43 +0000 (15:47 -0500)]
honor lxc.rootfs.bdev
If that is specified, then we only use the specified backing store type.
This can be useful if you know that lxc.rootfs is a directory type and
you do not want lxc to waste time searching for zfs, btrfs, etc.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Sat, 2 Apr 2016 20:41:24 +0000 (15:41 -0500)]
add a lxc.rootfs.bdev option (not yet honored)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Oleg Freedhom [Sat, 2 Apr 2016 16:18:54 +0000 (16:18 +0000)]
fix btrfs_recursive_destroy
A change in kernel 4.2 caused btrfs_recursive_destroy to
fail to delete unprivileged containers. This patch restores
the pre-kernel-4.2 behaviour. Ref: Issue 935.
Signed-off-by: Oleg Freedhom <overlayfs@gmail.com>
Stéphane Graber [Thu, 31 Mar 2016 22:10:51 +0000 (18:10 -0400)]
change version to 2.0.0.rc15 in configure.ac
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Thu, 31 Mar 2016 18:50:04 +0000 (14:50 -0400)]
Merge pull request #931 from n-eiling/pageserver-support
c/r: support for the criu pageserver
Niklas Eiling [Wed, 30 Mar 2016 13:39:45 +0000 (15:39 +0200)]
fixed indentation and comments
Signed-off-by: Niklas Eiling <niklas.eiling@rwth-aachen.de>
Christian Brauner [Thu, 31 Mar 2016 10:56:11 +0000 (12:56 +0200)]
Merge pull request #934 from GreatFruitOmsk/master
Fix buffer overflow in do_start()
Aleksandr Mezin [Thu, 31 Mar 2016 10:46:03 +0000 (16:46 +0600)]
Fix buffer overflow in do_start()
Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
Niklas Eiling [Wed, 30 Mar 2016 10:32:02 +0000 (12:32 +0200)]
c/r: support for the criu pageserver
this enables lxc to perform "disk-less migrations" where memory pages are sent directly to the destination machine instead of being written to the sources filesystem first.
For this, the migrate_opts struct has been added the strings "pageserver_address" and "pageserver_port" so that criu can be told where to look for a pageserver.
Signed-off-by: Niklas Eiling <niklas.eiling@rwth-aachen.de>
Serge Hallyn [Wed, 30 Mar 2016 23:44:36 +0000 (18:44 -0500)]
Merge pull request #932 from n-eiling/criu-log-fix
fix possible buffer overflow
Niklas Eiling [Wed, 30 Mar 2016 21:28:43 +0000 (23:28 +0200)]
use snprintf instead of strncat
Signed-off-by: Niklas Eiling <niklas.eiling@rwth-aachen.de>
Stéphane Graber [Wed, 30 Mar 2016 20:53:28 +0000 (16:53 -0400)]
Merge pull request #933 from evgeni/update-debian-releases
update Debian release names
Evgeni Golov [Wed, 30 Mar 2016 20:50:48 +0000 (22:50 +0200)]
update Debian release names
Squeeze is EOL now, Stretch is the upcoming stable
Signed-off-by: Evgeni Golov <evgeni@golov.de>
Niklas Eiling [Wed, 30 Mar 2016 18:10:21 +0000 (20:10 +0200)]
fix possible buffer overflow
strncat only returns its first argument and not the end of the written string.
Thus "buf-pos" is always 0 and consquently no range check is performed.
Signed-off-by: Niklas Eiling <niklas.eiling@rwth-aachen.de>
Serge Hallyn [Wed, 30 Mar 2016 16:19:44 +0000 (11:19 -0500)]
Merge pull request #929 from brauner/2016-03-27/mmap_file_to_str
use smarter error handling for lxc_strmmap()
Christian Brauner [Wed, 30 Mar 2016 16:07:38 +0000 (18:07 +0200)]
use common lxc ordering for included headers
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Serge Hallyn [Wed, 30 Mar 2016 16:06:02 +0000 (11:06 -0500)]
Merge pull request #930 from brauner/2016-03-30/ignore_all_so
also ingore *.so.*
Christian Brauner [Wed, 30 Mar 2016 05:57:34 +0000 (07:57 +0200)]
use smarter error handling for lxc_strmmap()
Additionally, fix the comment for lxc_strmmap() and cleanup #includes in
utils.{c,h}.
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Christian Brauner [Wed, 30 Mar 2016 08:17:39 +0000 (10:17 +0200)]
also ingore *.so.*
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Christian Brauner [Wed, 30 Mar 2016 05:49:55 +0000 (07:49 +0200)]
Merge pull request #928 from stgraber/master
lxc-ubuntu: Fix building on secondary architectures
Stéphane Graber [Wed, 30 Mar 2016 05:25:53 +0000 (01:25 -0400)]
lxc-ubuntu: Fix building on secondary architectures
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Wed, 30 Mar 2016 01:31:14 +0000 (21:31 -0400)]
change version to 2.0.0.rc14 in configure.ac
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Serge Hallyn [Tue, 29 Mar 2016 16:11:37 +0000 (11:11 -0500)]
Merge pull request #926 from brauner/2016-03-27/mmap_file_to_str
add funs to mmap() files to \0-terminated strings
Christian Brauner [Tue, 29 Mar 2016 06:50:27 +0000 (08:50 +0200)]
better naming for mmap helpers
Rename lxc_mmap()/lxc_munmap() to lxc_strmmap()/lxc_strmunmap().
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Christian Brauner [Sun, 27 Mar 2016 16:42:24 +0000 (18:42 +0200)]
use lxc_mmap() and lxc_munmap()
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Christian Brauner [Sun, 27 Mar 2016 16:41:51 +0000 (18:41 +0200)]
add funs to mmap() files to \0-terminated strings
In order to do this we make use of the MAP_FIXED flag of mmap(). MAP_FIXED
should be safe to use when it replaces an already existing mapping. To this
end, we establish an anonymous mapping that is one byte larger than the
underlying file. The pages handed to us are zero filled. Now we establish a
fixed-address mapping starting at the address we received from our anonymous
mapping and replace all bytes excluding the additional \0-byte with the file.
This allows us to use normal string-handling function. The idea implemented
here is similar to how shared libraries are mapped.
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Stéphane Graber [Tue, 29 Mar 2016 05:25:51 +0000 (01:25 -0400)]
Merge pull request #927 from tych0/only-use-host-devnull-no-autodev
start: only use host's /dev/null when absolutely necessary
Tycho Andersen [Tue, 29 Mar 2016 00:43:20 +0000 (18:43 -0600)]
start: only use host's /dev/null when absolutely necessary
See comments for details, but basically, only use the host's /dev/null when
absolutely necessary (i.e. there is no reasonable /dev/null in the
container).
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Stéphane Graber [Sat, 26 Mar 2016 17:05:51 +0000 (13:05 -0400)]
Merge pull request #924 from evgeni/default-ubuntu-mirror
always provide a default mirror for debootstraping Ubuntu
Stéphane Graber [Sat, 26 Mar 2016 17:04:58 +0000 (13:04 -0400)]
Merge pull request #925 from evgeni/debian-main-only
only enable Debian's main repository by default
Evgeni Golov [Sat, 26 Mar 2016 10:28:52 +0000 (11:28 +0100)]
only enable Debian's main repository by default
This inverts the logic done in
c2a85d0 to default to "main only" and allow enabling contrib and non-free on user request.
Closes: #625
Signed-off-by: Evgeni Golov <evgeni@debian.org>
Evgeni Golov [Sat, 26 Mar 2016 09:52:32 +0000 (10:52 +0100)]
always provide a default mirror for debootstraping Ubuntu
debootstrap sometimes selects the wrong mirror due to [1]
[1] https://bugs.debian.org/819300
Signed-off-by: Evgeni Golov <evgeni@debian.org>
Christian Brauner [Sat, 26 Mar 2016 09:13:58 +0000 (10:13 +0100)]
Merge pull request #922 from evgeni/httpredir.debian.org
use httpredir.debian.org as the default Debian mirror
Evgeni Golov [Sat, 26 Mar 2016 08:46:13 +0000 (09:46 +0100)]
use httpredir.debian.org as the default Debian mirror
http.debian.net is an alias anyways and httpredir.debian.org is the official name of the service
Signed-off-by: Evgeni Golov <evgeni@debian.org>
Christian Brauner [Fri, 25 Mar 2016 17:18:10 +0000 (18:18 +0100)]
Merge pull request #920 from thtanaka/timezone-fix
Timezone inside the container is not the same as the host
Christian Brauner [Fri, 25 Mar 2016 17:13:47 +0000 (18:13 +0100)]
Merge pull request #919 from amezin/master
Fix installation of out-of-tree (VPATH) builds
Thomas Tanaka [Fri, 25 Mar 2016 16:53:33 +0000 (09:53 -0700)]
Timezone inside the container is not the same as the host
In OL6, it is missing /etc/sysconfig/clock
Tested-by: Deepak Patel <deepak.patel@oracle.com>
Signed-off-by: Thomas Tanaka <thomas.tanaka@oracle.com>
Aleksandr Mezin [Fri, 25 Mar 2016 13:30:49 +0000 (19:30 +0600)]
Fix installation of out-of-tree (VPATH) builds
Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
Serge Hallyn [Fri, 25 Mar 2016 04:45:15 +0000 (21:45 -0700)]
Merge pull request #917 from amezin/master
Fix daemonized containers without autodev and/or /dev mount
Aleksandr Mezin [Thu, 24 Mar 2016 17:22:32 +0000 (23:22 +0600)]
start: open /dev/null from "host" /dev
Sometimes, a container doesn't have /dev/null.
For example, I have this problem with Android container.
This fixes #910 (github) for me.
Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
Aleksandr Mezin [Thu, 24 Mar 2016 17:20:42 +0000 (23:20 +0600)]
utils: split null_stdfds() to open_devnull() and set_stdfds()
Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
Bogdan Purcareata [Thu, 24 Mar 2016 11:54:27 +0000 (11:54 +0000)]
lxc-busybox: Remove warning for dynamically linked Busybox
The warning has been present since commit
32b37181ea (with no purpose stated).
Support for dynamically linked Busybox has been added since commit
bf6cc73696 .
Haven't encountered any issues with dynamically linked Busybox in my last
2 years' testing.
Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Thu, 24 Mar 2016 16:38:51 +0000 (12:38 -0400)]
Merge pull request #916 from ojkastl/20160324_Fix_path_to_lxc-net_config
lxc.spec.in: fixed hardcoded path to lxc-net config file
Aleksandr Mezin [Thu, 24 Mar 2016 11:55:03 +0000 (17:55 +0600)]
start: use LXC_SYNC_ERROR to report errors.
This gives more meaningful error message than "invalid sequence".
Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
Aleksandr Mezin [Thu, 24 Mar 2016 11:54:26 +0000 (17:54 +0600)]
sync: add LXC_SYNC_ERROR to report errors from another process.
Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
Johannes Kastl [Thu, 24 Mar 2016 08:26:28 +0000 (09:26 +0100)]
lxc.spec.in: fixed hardcoded path to lxc-net config file
Signed-off-by: Johannes Kastl <git@ojkastl.de>
Christian Brauner [Thu, 24 Mar 2016 07:13:12 +0000 (08:13 +0100)]
Merge pull request #914 from brauner/2016-03-23/Purcarea_Bogdan
lxc-busybox: Touch /etc/fstab in the container rootfs
Bogdan Purcareata [Tue, 22 Mar 2016 13:33:57 +0000 (13:33 +0000)]
lxc-busybox: Touch /etc/fstab in the container rootfs
Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
Serge Hallyn [Wed, 23 Mar 2016 16:53:35 +0000 (09:53 -0700)]
Merge pull request #911 from brauner/2016-03-23/Purcarea_Bogdan
open_without_symlink: Don't SYSERROR on something else than ELOOP
Christian Brauner [Wed, 23 Mar 2016 15:37:09 +0000 (16:37 +0100)]
open_without_symlink: Don't SYSERROR on something else than ELOOP
The open_without_symlink routine has been specifically created to prevent
mounts with synlinks as source or destination. Keep SYSERROR'ing in that
particular scenario, but leave error handling to calling functions for the
other ones - e.g. optional bind mount when the source dir doesn't exist
throws a nasty error.
Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
Stéphane Graber [Tue, 22 Mar 2016 21:22:23 +0000 (17:22 -0400)]
change version to 2.0.0.rc13 in configure.ac
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Christian Brauner [Tue, 22 Mar 2016 15:47:00 +0000 (16:47 +0100)]
Merge pull request #908 from tych0/fix-907
Fix 907
Tycho Andersen [Tue, 22 Mar 2016 15:24:01 +0000 (09:24 -0600)]
c/r: rename restore & friends to __criu_restore
Hopefully this will avoid name collisions with any user binaries, since
criu is just an implementation detail.
Closes #907
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Tycho Andersen [Tue, 22 Mar 2016 15:22:39 +0000 (09:22 -0600)]
lxc-checkpoint: make things static when they can be
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Serge Hallyn [Mon, 21 Mar 2016 23:39:05 +0000 (16:39 -0700)]
Merge pull request #906 from tych0/fix-console-none-migration
Fix console none migration
Tycho Andersen [Mon, 21 Mar 2016 22:52:02 +0000 (16:52 -0600)]
c/r: don't fail if there is no console_fd on restore
If we set lxc.console=none, this fd won't exist, so let's not fail if it
doesn't. We already partially handled this case correctly, so let's
actually handle it correctly :)
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Tycho Andersen [Mon, 21 Mar 2016 22:50:39 +0000 (16:50 -0600)]
c/r: don't pass --ext-mount-map flag when console=none
We don't pass anything on the restore side since we didn't save anything,
but the restore side will expect something if we pass this. Instead, let's
not pass anything.
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Stéphane Graber [Mon, 21 Mar 2016 20:44:45 +0000 (16:44 -0400)]
change version to 2.0.0.rc12 in configure.ac
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Fri, 18 Mar 2016 20:12:45 +0000 (16:12 -0400)]
Merge pull request #902 from tych0/better-criu-logging
Better criu logging
Tycho Andersen [Fri, 18 Mar 2016 19:13:17 +0000 (13:13 -0600)]
c/r: print criu's stdout when it fails
In particular, when CRIU fails before it has its log completely initialized
(e.g. if the log directory doesn't exist, or if the argument parser fails),
it prints this to stdout. Let's log that.
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Tycho Andersen [Fri, 18 Mar 2016 16:19:36 +0000 (10:19 -0600)]
c/r: log the exact command we exec
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Stéphane Graber [Fri, 18 Mar 2016 03:11:50 +0000 (23:11 -0400)]
change version to 2.0.0.rc11 in configure.ac
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Christian Brauner [Thu, 17 Mar 2016 22:01:45 +0000 (23:01 +0100)]
Merge pull request #901 from stgraber/master
download: Bump to compat level 3
Stéphane Graber [Thu, 17 Mar 2016 21:41:14 +0000 (17:41 -0400)]
download: Bump to compat level 3
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Thu, 17 Mar 2016 20:02:47 +0000 (16:02 -0400)]
Merge pull request #900 from tych0/dont-always-create-console
autodev: don't always create /dev/console
Tycho Andersen [Thu, 17 Mar 2016 11:14:43 +0000 (05:14 -0600)]
autodev: don't always create /dev/console
In particular, only create /dev/console when it is set to "none".
Otherwise, we will bind mount a pts device later, so let's just leave it.
Also, when bind mounting the pts device, let's create /dev/console if it
doesn't exist, since it may not already exist due to the above :)
v2: s/ot/to
v3: add O_EXCL so we actually get EEXIST, use the right condition for
mount_console (we want to compare against console.path, not
console.name, and console.path can be null)
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Stéphane Graber [Thu, 17 Mar 2016 06:53:44 +0000 (02:53 -0400)]
Merge pull request #899 from hallyn/2016-03-16/cgroupauto.2
cgfsng: include sys/mount.h
Serge Hallyn [Thu, 17 Mar 2016 06:12:57 +0000 (23:12 -0700)]
cgfsng: two fixes for cgroup-full
We need to pass nosuid+nexec+nodev to remount to stop the kernel
from denying it.
When remounting the container's path read-write, use the right dest
path.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Thu, 17 Mar 2016 04:27:24 +0000 (21:27 -0700)]
include bdev.h
for the define of RELATIME for android
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Thu, 17 Mar 2016 04:22:00 +0000 (21:22 -0700)]
use hierarchy base path not just controller cgroup
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Thu, 17 Mar 2016 03:54:38 +0000 (20:54 -0700)]
cgfsng: include sys/mount.h
to hopefully define RELATIME for android
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Stéphane Graber [Thu, 17 Mar 2016 02:58:33 +0000 (22:58 -0400)]
Merge pull request #898 from hallyn/2016-03-16/cgroupauto
2016 03 16/cgroupauto
Serge Hallyn [Thu, 17 Mar 2016 02:05:06 +0000 (19:05 -0700)]
no variable decl in for loop
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Wed, 16 Mar 2016 06:02:10 +0000 (23:02 -0700)]
cgroups: try to load cgmanager first
If cgmanager is running, use it. This allows the admin to simply
stop cgmanager if they don't want to use it. The other way there
is no way to choose to use cgmanager.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Wed, 16 Mar 2016 06:01:42 +0000 (23:01 -0700)]
implement lxc.mount.auto = cgroup for cgfsng
Also add testcase for each of the cgroup{,-full}:{rw,ro,mixed} cases.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Christian Brauner [Wed, 16 Mar 2016 22:35:34 +0000 (23:35 +0100)]
Merge pull request #897 from hallyn/2016-03-16/aa
Prevent access to pci devices