]> git.proxmox.com Git - mirror_lxc.git/log
mirror_lxc.git
5 years agoAvoid double lxc-freeze/unfreeze
Rachid Koucha [Sat, 26 Jan 2019 22:46:34 +0000 (23:46 +0100)]
Avoid double lxc-freeze/unfreeze

If we call lxc-freeze multiple times for an already frozen container, LXC
triggers useless freezing by writing into the "freezer.state" cgroup file.
This is the same when we call lxc-unfreeze multiple times.
Checking the current state with a LXC_CMD_GET_STATE
(calling c->state) would permit to check if the container is FROZEN
or not.

Signed-off-by: Rachid Koucha <rachid.koucha@gmail.com>
5 years agoMerge pull request #2794 from brauner/2019-01-21/revert_seccomp_fuckup
Wolfgang Bumiller [Mon, 21 Jan 2019 14:33:05 +0000 (15:33 +0100)]
Merge pull request #2794 from brauner/2019-01-21/revert_seccomp_fuckup

Revert "seccomp: add rules for specified architecture only"

5 years agoRevert "seccomp: add rules for specified architecture only"
Christian Brauner [Mon, 21 Jan 2019 13:58:43 +0000 (14:58 +0100)]
Revert "seccomp: add rules for specified architecture only"

This reverts commit f1bcfc796e0a4a04b36284f6261afff59123b1aa.

The reverted branch breaks starting all seccomp confined containers. Not
even a containers with our standard seccomp profile starts correctly.
This is strong evidence that these changes have never been tested even
with a standard workload. That is unacceptable!

We are still happy to merge that feature but going forward we want tests
that verify that standard workloads and new features work correctly.
seccomp is a crucial part of our security story and I will not let the
be compromised by missing tests!

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #2786 from lifeng68/fix_seccomp
Christian Brauner [Mon, 21 Jan 2019 11:18:25 +0000 (13:18 +0200)]
Merge pull request #2786 from lifeng68/fix_seccomp

seccomp: add rules for specified architecture only

5 years agoseccomp: add rules for specified architecture only
LiFeng [Wed, 16 Jan 2019 10:07:59 +0000 (05:07 -0500)]
seccomp: add rules for specified architecture only

If the architecture is specified in the seccomp configuration, like:
```
2
whitelist errno 1
[x86_64]
accept allow
accept4 allow
```
We shoud add rules only for amd64 instead of add rules for
x32/i386/amd64.

1. If the [arch] was not specified in seccomp config, add seccomp rules
for all all compat architectures.
2. If the [arch] specified in seccomp config irrelevant to native host
arch, the rules will be ignored.
3. If specified [all] in seccomp config, add seccomp rules for all
compat architectures.
4. If specified [arch] as same as native host arch, add seccomp rules
for the native host arch.
5. If specified [arch] was not native host arch, but compat to host
arch, add seccomp rules for the specified arch only, NOT add seccomp
rules for native arch.

Signed-off-by: LiFeng <lifeng68@huawei.com>
5 years agoMerge pull request #2792 from kubiko/fix-android-hooks
Christian Brauner [Fri, 18 Jan 2019 09:04:48 +0000 (11:04 +0200)]
Merge pull request #2792 from kubiko/fix-android-hooks

Fixing hooks functionality Android where 'sh' is placed under /system

5 years agoMerge pull request #2791 from kubiko/handle-android-loop
Christian Brauner [Fri, 18 Jan 2019 09:04:27 +0000 (11:04 +0200)]
Merge pull request #2791 from kubiko/handle-android-loop

Handle alternative loop device location on Android

5 years agoHandle alternative loop device location on Android
ondra [Fri, 11 Jan 2019 14:45:38 +0000 (14:45 +0000)]
Handle alternative loop device location on Android

Signed-off-by: ondra <ondrak@localhost.localdomain>
5 years agoFixing hooks functionality Android where 'sh' is placed under /system/bin
ondra [Fri, 11 Jan 2019 16:42:13 +0000 (16:42 +0000)]
Fixing hooks functionality Android where 'sh' is placed under /system/bin

Signed-off-by: ondra <ondrak@localhost.localdomain>
5 years agoMerge pull request #2788 from tanyifeng/fix_mem_leak
Christian Brauner [Thu, 17 Jan 2019 09:50:11 +0000 (11:50 +0200)]
Merge pull request #2788 from tanyifeng/fix_mem_leak

conf.c: fix memory leak and mount error

5 years agoMerge pull request #2789 from lifeng68/fix_memory_leak
Christian Brauner [Thu, 17 Jan 2019 09:49:41 +0000 (11:49 +0200)]
Merge pull request #2789 from lifeng68/fix_memory_leak

Fix memory leak in cgroup_exit

5 years agoFix memory leak in cgroup_exit
LiFeng [Thu, 17 Jan 2019 10:48:16 +0000 (05:48 -0500)]
Fix memory leak in cgroup_exit

Add free memory pointed by struct cgroup_ops *ops

Signed-off-by: LiFeng <lifeng68@huawei.com>
5 years agoconf.c: fix memory leak and mount error
t00416110 [Thu, 17 Jan 2019 09:16:22 +0000 (17:16 +0800)]
conf.c: fix memory leak and mount error

1. cleanup namespace memory
2. fix bug when ro mount not setted, mount propagation will be skipped.

Signed-off-by: t00416110 <tanyifeng1@huawei.com>
5 years agoMerge pull request #2785 from lifeng68/fix_return
Christian Brauner [Wed, 16 Jan 2019 09:12:48 +0000 (11:12 +0200)]
Merge pull request #2785 from lifeng68/fix_return

start: __lxc_start return -1 when start fails

5 years agostart: __lxc_start return -1 when start fails
LiFeng [Tue, 15 Jan 2019 12:25:00 +0000 (07:25 -0500)]
start: __lxc_start return -1 when start fails

Signed-off-by: LiFeng <lifeng68@huawei.com>
5 years agoMerge pull request #2781 from brauner/hn-veth-uid
Wolfgang Bumiller [Fri, 11 Jan 2019 09:31:25 +0000 (10:31 +0100)]
Merge pull request #2781 from brauner/hn-veth-uid

network: prefix veth interface name with uid info

5 years agonetwork: prefix veth interface name with uid info
hn [Tue, 8 Jan 2019 20:23:41 +0000 (21:23 +0100)]
network: prefix veth interface name with uid info

Signed-off-by: Hajo Noerenberg <hajo-github@noerenberg.de>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #2780 from brauner/2019-01-10/cgroupns_skip_on_einval
Stéphane Graber [Thu, 10 Jan 2019 16:09:27 +0000 (11:09 -0500)]
Merge pull request #2780 from brauner/2019-01-10/cgroupns_skip_on_einval

start: handle missing CLONE_NEWCGROUP

5 years agostart: handle missing CLONE_NEWCGROUP
Christian Brauner [Thu, 10 Jan 2019 12:35:42 +0000 (13:35 +0100)]
start: handle missing CLONE_NEWCGROUP

If cgroup namespaces are not supported we should just record it in the
log and move on.

Cc: Ondrej Kubik <ondrej.kubik@canonical.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #2777 from brauner/2019-01-09/cgfsng_with_no_controllers
Wolfgang Bumiller [Thu, 10 Jan 2019 12:39:23 +0000 (13:39 +0100)]
Merge pull request #2777 from brauner/2019-01-09/cgfsng_with_no_controllers

cgroups: try to handle layouts with no cgroups

5 years agocgroups: try to handle layouts with no cgroups
Christian Brauner [Tue, 8 Jan 2019 22:56:50 +0000 (23:56 +0100)]
cgroups: try to handle layouts with no cgroups

Cc: Ondrej Kubik <ondrej.kubik@canonical.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #2775 from kubiko/android-fix-compile
Christian Brauner [Tue, 8 Jan 2019 17:14:20 +0000 (18:14 +0100)]
Merge pull request #2775 from kubiko/android-fix-compile

Fixing compile error when compiling for android

5 years agoFixing compile error when compiling for android
Ondrej Kubik [Tue, 8 Jan 2019 17:00:36 +0000 (17:00 +0000)]
Fixing compile error when compiling for android

Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
5 years agoMerge pull request #2774 from hn/master
Christian Brauner [Tue, 8 Jan 2019 14:57:29 +0000 (15:57 +0100)]
Merge pull request #2774 from hn/master

trivial fix: unprivileged veth devices (e.g. vethFWABHX) never contain 'Z' char

5 years agofix: unprivileged veth devices (e.g. vethFWABHX) never contain 'Z' character in the...
hn [Mon, 7 Jan 2019 18:42:02 +0000 (19:42 +0100)]
fix: unprivileged veth devices (e.g. vethFWABHX) never contain 'Z' character in the randomly generated device name part because for modulo one does not need to substract 1 from strlen().

Signed-off-by: Hajo Noerenberg <hajo-github@noerenberg.de>
5 years agoMerge pull request #2753 from brauner/2018-12-13/remove_sigwinch_cmd
Stéphane Graber [Mon, 7 Jan 2019 23:34:37 +0000 (00:34 +0100)]
Merge pull request #2753 from brauner/2018-12-13/remove_sigwinch_cmd

terminal: remove sigwinch command

5 years agoMerge pull request #2755 from brauner/2018-12-16/rootfs_managed
Stéphane Graber [Mon, 7 Jan 2019 23:34:16 +0000 (00:34 +0100)]
Merge pull request #2755 from brauner/2018-12-16/rootfs_managed

storage: do not destroy pre-existing rootfs

5 years agoMerge pull request #2773 from brauner/2018-01-09/fix_cgroup_deletion
Stéphane Graber [Mon, 7 Jan 2019 23:33:57 +0000 (00:33 +0100)]
Merge pull request #2773 from brauner/2018-01-09/fix_cgroup_deletion

cgfsng: do not free container_full_path on error

5 years agoMerge pull request #2770 from brauner/2018-01-07/container_copy
Stéphane Graber [Mon, 7 Jan 2019 23:33:47 +0000 (00:33 +0100)]
Merge pull request #2770 from brauner/2018-01-07/container_copy

lxccontainer: fix container copy

5 years agoMerge pull request #2771 from brauner/2018-01-07/seccomp_nesting_support
Stéphane Graber [Mon, 7 Jan 2019 23:33:04 +0000 (00:33 +0100)]
Merge pull request #2771 from brauner/2018-01-07/seccomp_nesting_support

confile: add lxc.seccomp.allow_nesting

5 years agocgfsng: do not free container_full_path on error
Christian Brauner [Mon, 7 Jan 2019 15:08:26 +0000 (16:08 +0100)]
cgfsng: do not free container_full_path on error

Closes #2741.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoconfile: add lxc.seccomp.allow_nesting
Christian Brauner [Mon, 7 Jan 2019 14:10:52 +0000 (15:10 +0100)]
confile: add lxc.seccomp.allow_nesting

This adds the lxc.seccomp.allow_nesting api extension. If
lxc.seccomp.allow_nesting is set to 1 then seccomp profiles will be
stacked. This way nested containers can load their own seccomp policy on
top of the policy that the outer container might have applied.

Cc: Simon Fels <simon.fels@canonical.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agolxccontainer: fix container copy
Christian Brauner [Mon, 7 Jan 2019 12:37:06 +0000 (13:37 +0100)]
lxccontainer: fix container copy

We need to strip the prefix from the container's source path before
trying to update the file.

Closes #2380.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #2768 from caglar10ur/revert-2763-dangling
Christian Brauner [Sun, 6 Jan 2019 11:39:17 +0000 (12:39 +0100)]
Merge pull request #2768 from caglar10ur/revert-2763-dangling

Revert "Set c to NULL after freeing it"

5 years agoRevert "Set c to NULL after freeing it"
S.Çağlar Onur [Sat, 5 Jan 2019 20:22:17 +0000 (12:22 -0800)]
Revert "Set c to NULL after freeing it"

Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
5 years agoMerge pull request #2767 from Blub/2019-01-04/use-syserror-on-write-error
Christian Brauner [Fri, 4 Jan 2019 11:52:38 +0000 (12:52 +0100)]
Merge pull request #2767 from Blub/2019-01-04/use-syserror-on-write-error

conf: use SYSERROR on lxc_write_to_file errors

5 years agoconf: use SYSERROR on lxc_write_to_file errors
Wolfgang Bumiller [Fri, 4 Jan 2019 11:05:49 +0000 (12:05 +0100)]
conf: use SYSERROR on lxc_write_to_file errors

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
5 years agoMerge pull request #2763 from caglar10ur/dangling
Christian Brauner [Wed, 26 Dec 2018 19:53:59 +0000 (20:53 +0100)]
Merge pull request #2763 from caglar10ur/dangling

Set c to NULL after freeing it

5 years agoSet c to NULL after freeing it
S.Çağlar Onur [Wed, 26 Dec 2018 19:18:31 +0000 (11:18 -0800)]
Set c to NULL after freeing it

Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
5 years agoMerge pull request #2757 from brauner/2018-12-17/mount_injection_file
Stéphane Graber [Mon, 17 Dec 2018 15:14:31 +0000 (10:14 -0500)]
Merge pull request #2757 from brauner/2018-12-17/mount_injection_file

lxccontainer: fix mount api (mount_injection_file)

5 years agolxccontainer: fix mount api (mount_injection_file)
Christian Brauner [Mon, 17 Dec 2018 10:45:58 +0000 (11:45 +0100)]
lxccontainer: fix mount api (mount_injection_file)

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agostorage: do not destroy pre-existing rootfs
Christian Brauner [Sun, 16 Dec 2018 17:40:22 +0000 (18:40 +0100)]
storage: do not destroy pre-existing rootfs

Closes #2752.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoRe-enable lxc_devel
Stéphane Graber [Thu, 13 Dec 2018 23:20:10 +0000 (18:20 -0500)]
Re-enable lxc_devel

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
5 years agoRelease LXC 3.1.0
Stéphane Graber [Thu, 13 Dec 2018 23:12:33 +0000 (18:12 -0500)]
Release LXC 3.1.0

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
5 years agoterminal: remove sigwinch command
Christian Brauner [Thu, 13 Dec 2018 14:44:36 +0000 (15:44 +0100)]
terminal: remove sigwinch command

SIGWINCH is handled in lxc_terminal_signalfd_cb().

I cannot for the life of me figure out what this is supposed to do.
Afaict, it scans a global list that is totally unnecessary and also
let's say you have 100 ttys and for a single one SIGWINCH is sent. In
that case the whole list is walked and two ioctl()s are performed: one
to get window size one to set window size. For 99 of them the window
size hasn't changed.
If we see issues we can revert!

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #2751 from xorond/cgroup
Christian Brauner [Wed, 12 Dec 2018 10:49:46 +0000 (11:49 +0100)]
Merge pull request #2751 from xorond/cgroup

fix #2742: lxc-cgroup not giving output

5 years agotools: add newline to lxc-cgroup output
Christian Brauner [Wed, 12 Dec 2018 10:47:10 +0000 (11:47 +0100)]
tools: add newline to lxc-cgroup output

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agofix lxc-cgroup not giving output
Oguz Bektas [Wed, 12 Dec 2018 09:26:36 +0000 (10:26 +0100)]
fix lxc-cgroup not giving output

lxc-cgroup fails to provide any output since the latest version, this
should fix it

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
5 years agoMerge pull request #2749 from brauner/2018-12-11/storage_utils
Wolfgang Bumiller [Tue, 11 Dec 2018 13:26:11 +0000 (14:26 +0100)]
Merge pull request #2749 from brauner/2018-12-11/storage_utils

storage: src cannot be truncated

5 years agostorage: remove unused function
Christian Brauner [Tue, 11 Dec 2018 10:36:54 +0000 (11:36 +0100)]
storage: remove unused function

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #2747 from ffontaine/master
Christian Brauner [Fri, 7 Dec 2018 06:42:06 +0000 (19:42 +1300)]
Merge pull request #2747 from ffontaine/master

configure.ac: fix build without stack-protector

5 years agoconfigure.ac: fix build without stack-protector
Fabrice Fontaine [Tue, 4 Dec 2018 07:40:05 +0000 (08:40 +0100)]
configure.ac: fix build without stack-protector

Compiler based hardening (including -fstack-protector-strong) are
enabled since version 3.0.3 and
https://github.com/lxc/lxc/commit/2268c27754152aa538db2c9e3753d72d19bcd17a

However, some compilers could missed the needed library (-lssp or
-lssp_nonshared) at linking step so use ax_check_link_flag instead of
ax_check_compile_flag

Fixes:
 - http://autobuild.buildroot.org/results/0b90e7dca2984652842832a41abad93ac49a9b86

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
5 years agoMerge pull request #2745 from ffontaine/master
Christian Brauner [Tue, 4 Dec 2018 01:41:24 +0000 (14:41 +1300)]
Merge pull request #2745 from ffontaine/master

stringutils: include stdarg for va_list

5 years agostringutils: include stdarg for va_list
Fabrice Fontaine [Mon, 3 Dec 2018 21:18:16 +0000 (22:18 +0100)]
stringutils: include stdarg for va_list

Fixes:
 - http://autobuild.buildroot.org/results/0b90e7dca2984652842832a41abad93ac49a9b86

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
5 years agoMerge pull request #2743 from 2xsec/build
Christian Brauner [Fri, 30 Nov 2018 07:53:09 +0000 (20:53 +1300)]
Merge pull request #2743 from 2xsec/build

fix install error when using --disable-commands option

5 years agoMerge pull request #2740 from CameronNemo/usernsexec
Christian Brauner [Fri, 30 Nov 2018 07:37:28 +0000 (20:37 +1300)]
Merge pull request #2740 from CameronNemo/usernsexec

lxc-usernsexec: fix default map functionality

5 years agofix install error when using --disable-commands option
2xsec [Fri, 30 Nov 2018 06:31:31 +0000 (15:31 +0900)]
fix install error when using --disable-commands option

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
5 years agolxc-usernsexec: fix default map functionality
Cameron Nemo [Thu, 29 Nov 2018 03:42:29 +0000 (19:42 -0800)]
lxc-usernsexec: fix default map functionality

* Place NULL bytes at the end of strings so that
  lxc_safe_ulong() can parse them correctly

* Only free the newly created id_map on error,
  to avoid passing garbage to lxc_map_ids()

Signed-off-by: Cameron Nemo <camerontnorman@gmail.com>
5 years agoMerge pull request #2739 from tenforward/japanese
Stéphane Graber [Mon, 26 Nov 2018 16:28:04 +0000 (11:28 -0500)]
Merge pull request #2739 from tenforward/japanese

Add allowrunning option into Japanese lxc-copy(1)

5 years agoAdd allowrunning option into Japanese lxc-copy(1)
KATOH Yasufumi [Mon, 26 Nov 2018 16:16:04 +0000 (01:16 +0900)]
Add allowrunning option into Japanese lxc-copy(1)

Update for commit 754076f

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
5 years agoMerge pull request #2737 from 2xsec/docs
Christian Brauner [Fri, 23 Nov 2018 09:59:58 +0000 (22:59 +1300)]
Merge pull request #2737 from 2xsec/docs

doc: Add -a, --allowrunning arg to Korean lxc-copy(1)

5 years agodoc: Add -a, --allowrunning arg to Korean lxc-copy(1)
2xsec [Fri, 23 Nov 2018 09:33:12 +0000 (18:33 +0900)]
doc: Add -a, --allowrunning arg to Korean lxc-copy(1)

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
5 years agoMerge pull request #1943 from bhelm/master
Christian Brauner [Thu, 22 Nov 2018 22:51:47 +0000 (11:51 +1300)]
Merge pull request #1943 from bhelm/master

Added allowrunning command line option for snapshotting running containers

5 years agoMerge pull request #2732 from brauner/2018-11-21/remove_freezer_requirement
Stéphane Graber [Tue, 20 Nov 2018 17:27:16 +0000 (12:27 -0500)]
Merge pull request #2732 from brauner/2018-11-21/remove_freezer_requirement

cgfsng: remove freezer requirement

5 years agocgfsng: remove freezer requirement
Christian Brauner [Tue, 20 Nov 2018 17:06:43 +0000 (18:06 +0100)]
cgfsng: remove freezer requirement

The freezer controller has been made optional in all other codepaths so
don't require it.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #2731 from rst0git/master
Christian Brauner [Tue, 20 Nov 2018 02:19:22 +0000 (15:19 +1300)]
Merge pull request #2731 from rst0git/master

autotools: fix lxc-{create,copy} build

5 years agoautotools: fix lxc-{create,copy} build
Radostin Stoyanov [Tue, 20 Nov 2018 01:10:57 +0000 (01:10 +0000)]
autotools: fix lxc-{create,copy} build

After commit 2b670df lxc-create and lxc-copy fails with "undefined
symbol: get_fssize".

Closes #2730

Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
5 years agoMerge pull request #2728 from brauner/2018-11-19/keyctl_non_fatal
Stéphane Graber [Mon, 19 Nov 2018 02:43:42 +0000 (18:43 -0800)]
Merge pull request #2728 from brauner/2018-11-19/keyctl_non_fatal

utils: make keyring allocation failure non-fatal

5 years agoutils: make keyring allocation failure non-fatal
Christian Brauner [Mon, 19 Nov 2018 02:26:58 +0000 (03:26 +0100)]
utils: make keyring allocation failure non-fatal

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #2727 from Blub/2018-11-16/apparmor.ro-bind-remount-combinations
Christian Brauner [Fri, 16 Nov 2018 16:18:35 +0000 (08:18 -0800)]
Merge pull request #2727 from Blub/2018-11-16/apparmor.ro-bind-remount-combinations

apparmor: allow various remount,bind options

5 years agoapparmor: allow various remount,bind options
Wolfgang Bumiller [Thu, 15 Nov 2018 10:51:34 +0000 (11:51 +0100)]
apparmor: allow various remount,bind options

RW bind mounts need to be restricted for some paths in
order to avoid MAC restriction bypasses, but read-only bind
mounts shouldn't have that problem.

Additionally, combinations of 'nosuid', 'nodev' and
'noexec' flags shouldn't be a problem either and are
required with newer systemd versions, so let's allow those
as long as they're combined with 'ro,remount,bind'.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
5 years agoMerge pull request #2725 from tomponline/tp-lvcreate
Christian Brauner [Thu, 15 Nov 2018 18:48:17 +0000 (10:48 -0800)]
Merge pull request #2725 from tomponline/tp-lvcreate

Adds -qq flags to lvcreate commands

5 years agoAdds -qq flags to lvcreate commands to avoid answer 'no' to ant questions the LVM...
tomponline [Wed, 14 Nov 2018 13:55:18 +0000 (13:55 +0000)]
Adds -qq flags to lvcreate commands to avoid answer 'no' to ant questions the LVM subsystem asks to avoid hanging lxc-create command

Signed-off-by: tomponline <tomp@tomp.uk>
5 years agoMerge pull request #2723 from 2xsec/bugfix
Christian Brauner [Fri, 9 Nov 2018 10:22:19 +0000 (11:22 +0100)]
Merge pull request #2723 from 2xsec/bugfix

pam_cgfs: remove dependency & redundancy functions

5 years agoutils: add errno logs for exception case
2xsec [Fri, 9 Nov 2018 07:10:15 +0000 (16:10 +0900)]
utils: add errno logs for exception case

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
5 years agoutils: fix coding styles
2xsec [Fri, 9 Nov 2018 07:08:37 +0000 (16:08 +0900)]
utils: fix coding styles

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
5 years agopam_cgfs: remove dependency from cap & log
2xsec [Fri, 9 Nov 2018 07:06:33 +0000 (16:06 +0900)]
pam_cgfs: remove dependency from cap & log

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
5 years agocgfs: remove redundancy utils
2xsec [Fri, 9 Nov 2018 05:10:46 +0000 (14:10 +0900)]
cgfs: remove redundancy utils

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
5 years agopam_cgfs: remove redundancy file utils
2xsec [Fri, 9 Nov 2018 04:43:41 +0000 (13:43 +0900)]
pam_cgfs: remove redundancy file utils

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
5 years agoMerge pull request #2722 from brauner/lxc/master
Stéphane Graber [Thu, 8 Nov 2018 19:35:09 +0000 (14:35 -0500)]
Merge pull request #2722 from brauner/lxc/master

conf: s/ty/tty/g

5 years agoconf: s/ty/tty/g
Christian Brauner [Thu, 8 Nov 2018 17:55:16 +0000 (18:55 +0100)]
conf: s/ty/tty/g

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #2720 from 2xsec/bugfix
Christian Brauner [Thu, 8 Nov 2018 10:41:38 +0000 (11:41 +0100)]
Merge pull request #2720 from 2xsec/bugfix

replace read & write syscalls with nointr functions

5 years agoMerge pull request #2721 from 2xsec/tizen
Christian Brauner [Thu, 8 Nov 2018 10:40:34 +0000 (11:40 +0100)]
Merge pull request #2721 from 2xsec/tizen

dlog: move match_dlog_fds()

5 years agodlog: move match_dlog_fds()
2xsec [Thu, 8 Nov 2018 10:18:41 +0000 (19:18 +0900)]
dlog: move match_dlog_fds()

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
5 years agolog: replace write with lxc_write_nointr
2xsec [Thu, 8 Nov 2018 10:01:03 +0000 (19:01 +0900)]
log: replace write with lxc_write_nointr

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
5 years agocaps: replace read with lxc_read_nointr
2xsec [Thu, 8 Nov 2018 10:00:19 +0000 (19:00 +0900)]
caps: replace read with lxc_read_nointr

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
5 years agoMerge pull request #2719 from ssup2/master
Christian Brauner [Tue, 6 Nov 2018 18:10:25 +0000 (19:10 +0100)]
Merge pull request #2719 from ssup2/master

Fix spacing error in namespace.c

5 years agoFix spacing error in namespace.c
Jungsub [Tue, 6 Nov 2018 14:25:11 +0000 (14:25 +0000)]
Fix spacing error in namespace.c

Signed-off-by: Jungsub Shin supsup5642@tmax.co.kr
5 years agoMerge pull request #2717 from brauner/2018-11-02/fix_android
Stéphane Graber [Fri, 2 Nov 2018 22:40:26 +0000 (18:40 -0400)]
Merge pull request #2717 from brauner/2018-11-02/fix_android

include: correctly include macro.h

5 years agoinclude: correctly include macro.h
Christian Brauner [Fri, 2 Nov 2018 22:20:46 +0000 (23:20 +0100)]
include: correctly include macro.h

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agocoverity: move to separate branch
Christian Brauner [Fri, 2 Nov 2018 11:35:08 +0000 (12:35 +0100)]
coverity: move to separate branch

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #2715 from 2xsec/bugfix
Christian Brauner [Fri, 2 Nov 2018 10:57:20 +0000 (13:57 +0300)]
Merge pull request #2715 from 2xsec/bugfix

lxcmntent: coding rules

5 years agoMerge pull request #2716 from 2xsec/tizen
Christian Brauner [Fri, 2 Nov 2018 10:56:36 +0000 (13:56 +0300)]
Merge pull request #2716 from 2xsec/tizen

log: fix too wide or inconsistent non-owner permissions

5 years agolog: fix too wide or inconsistent non-owner permissions
2xsec [Fri, 2 Nov 2018 06:25:14 +0000 (15:25 +0900)]
log: fix too wide or inconsistent non-owner permissions

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
5 years agostring_utils: coding rules
2xsec [Fri, 2 Nov 2018 06:17:50 +0000 (15:17 +0900)]
string_utils: coding rules

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
5 years agolxcmntent: coding rules
2xsec [Fri, 2 Nov 2018 06:17:14 +0000 (15:17 +0900)]
lxcmntent: coding rules

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
5 years agoMerge pull request #2714 from brauner/2018-11-01/remove_accidental_debug_statements
Stéphane Graber [Thu, 1 Nov 2018 23:58:16 +0000 (19:58 -0400)]
Merge pull request #2714 from brauner/2018-11-01/remove_accidental_debug_statements

confile: remove debug printf()s

5 years agoconfile: remove debug printf()s
Christian Brauner [Thu, 1 Nov 2018 21:50:18 +0000 (22:50 +0100)]
confile: remove debug printf()s

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #2713 from brauner/2018-10-30/mount_injection
Stéphane Graber [Thu, 1 Nov 2018 15:42:11 +0000 (11:42 -0400)]
Merge pull request #2713 from brauner/2018-10-30/mount_injection

conf: expand shmounts lxc.mount.auto option

5 years agolxccontainer: fix temporary path removal
Christian Brauner [Tue, 30 Oct 2018 22:48:14 +0000 (23:48 +0100)]
lxccontainer: fix temporary path removal

Needed-by: https://github.com/lxc/lxd/issues/5227
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>