]> git.ipfire.org Git - thirdparty/lxc.git/log
thirdparty/lxc.git
6 years agoraw_syscalls: add initial support for pidfd_send_signal() 2977/head
Christian Brauner [Mon, 6 May 2019 08:49:31 +0000 (10:49 +0200)] 
raw_syscalls: add initial support for pidfd_send_signal()

Well, I added this syscall so we better use it. :)

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agoMerge pull request #2974 from brauner/master
Stéphane Graber [Sun, 5 May 2019 04:20:06 +0000 (00:20 -0400)] 
Merge pull request #2974 from brauner/master

tree-wide: make socket SOCK_CLOEXEC

6 years agoMerge pull request #2975 from brauner/2019-05-04/returns_twice
Stéphane Graber [Sun, 5 May 2019 04:19:51 +0000 (00:19 -0400)] 
Merge pull request #2975 from brauner/2019-05-04/returns_twice

compiler: add __returns_twice attribute

6 years agocompiler: add __returns_twice attribute 2975/head
Christian Brauner [Sat, 4 May 2019 11:35:51 +0000 (13:35 +0200)] 
compiler: add __returns_twice attribute

The returns_twice attribute tells the compiler that a function may return more
than one time. The compiler will ensure that all registers are dead before
calling such a function and will emit a warning about the variables that may be
clobbered after the second return from the function. Examples of such functions
are setjmp and vfork. The longjmp-like counterpart of such function, if any,
might need to be marked with the noreturn attribute.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agoMerge pull request #2973 from tomponline/tp-gw-dev
Christian Brauner [Sat, 4 May 2019 10:56:45 +0000 (12:56 +0200)] 
Merge pull request #2973 from tomponline/tp-gw-dev

network: Adds gateway device route mode

6 years agoMerge pull request #2968 from tomponline/tp-ipvlan-l2proxy
Christian Brauner [Fri, 3 May 2019 19:09:37 +0000 (21:09 +0200)] 
Merge pull request #2968 from tomponline/tp-ipvlan-l2proxy

network: Static routes for IPVLAN with L2PROXY

6 years agonetwork: Adds ipvlan static routes for l2proxy mode 2968/head
tomponline [Wed, 1 May 2019 16:59:23 +0000 (17:59 +0100)] 
network: Adds ipvlan static routes for l2proxy mode

Signed-off-by: tomponline <thomas.parrott@canonical.com>
6 years agotree-wide: make socket SOCK_CLOEXEC 2974/head
Christian Brauner [Fri, 3 May 2019 18:35:02 +0000 (20:35 +0200)] 
tree-wide: make socket SOCK_CLOEXEC

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agonetwork: Adds gateway device route mode 2973/head
tomponline [Fri, 3 May 2019 09:21:45 +0000 (10:21 +0100)] 
network: Adds gateway device route mode

Adds ability to specify "dev" as the gateway value, which will cause a device route to be set as default gateway.

Signed-off-by: tomponline <thomas.parrott@canonical.com>
6 years agoMerge pull request #2964 from tomponline/tp-l2proxy
Christian Brauner [Fri, 3 May 2019 10:36:00 +0000 (12:36 +0200)] 
Merge pull request #2964 from tomponline/tp-l2proxy

network: Adds layer 2 (ARP/NDP) proxy mode

6 years agoMerge pull request #2972 from brauner/2019-05-02/seccomp_notify_mem_fd
Stéphane Graber [Thu, 2 May 2019 20:56:10 +0000 (16:56 -0400)] 
Merge pull request #2972 from brauner/2019-05-02/seccomp_notify_mem_fd

seccomp: send process memory fd

6 years agoMerge pull request #2971 from hallyn/2019-05-01/nsshare.2
Christian Brauner [Thu, 2 May 2019 20:55:51 +0000 (22:55 +0200)] 
Merge pull request #2971 from hallyn/2019-05-01/nsshare.2

namespaces: allow a pathname to a nsfd for namespace to share

6 years agoseccomp: send process memory fd 2972/head
Christian Brauner [Thu, 2 May 2019 15:06:00 +0000 (17:06 +0200)] 
seccomp: send process memory fd

There's an inherent race when reading a process's memory. The easiest way is to
have liblxc get an fd and check that the race was one, send it to the caller
(They are free to ignore it if they don't use recvmsg()).

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agonamespaces: allow a pathname to a nsfd for namespace to share 2971/head
Serge Hallyn [Thu, 2 May 2019 01:17:23 +0000 (18:17 -0700)] 
namespaces: allow a pathname to a nsfd for namespace to share

Signed-off-by: Serge Hallyn <shallyn@cisco.com>
6 years agonetwork: Adds layer 2 (ARP/NDP) proxy mode 2964/head
tomponline [Tue, 30 Apr 2019 13:25:27 +0000 (14:25 +0100)] 
network: Adds layer 2 (ARP/NDP) proxy mode

Adds the lxc.net.[i].l2proxy flag that can be either 0 or 1.

Defaults to 0.

This, when used with lxc.net.[i].link, will add IP neighbour proxy entries on the linked device
for any IPv4 and IPv6 addresses on the container's network device.

Additionally, for IPv6 addresses it will check the following sysctl values and fail with an error if not set:

net.ipv6.conf.[link].proxy_ndp=1
net.ipv6.conf.[link].forwarding=1

Signed-off-by: tomponline <thomas.parrott@canonical.com>
6 years agoMerge pull request #2969 from brauner/2019-05-01/seccomp_fixes
Stéphane Graber [Wed, 1 May 2019 16:44:48 +0000 (12:44 -0400)] 
Merge pull request #2969 from brauner/2019-05-01/seccomp_fixes

seccomp: ensure fields are set to 0

6 years agoseccomp: ensure fields are set to 0 2969/head
Christian Brauner [Wed, 1 May 2019 16:35:58 +0000 (18:35 +0200)] 
seccomp: ensure fields are set to 0

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agoMerge pull request #2950 from tomponline/tp-ipvlan
Christian Brauner [Wed, 1 May 2019 16:24:56 +0000 (18:24 +0200)] 
Merge pull request #2950 from tomponline/tp-ipvlan

network: Adds IPVLAN support

6 years agonetwork: Adds IPVLAN support 2950/head
tomponline [Fri, 26 Apr 2019 10:26:45 +0000 (11:26 +0100)] 
network: Adds IPVLAN support

Example usage:

lxc.net[i].type=ipvlan
lxc.net[i].ipvlan.mode=[l3|l3s|l2] (defaults to l3)
lxc.net[i].ipvlan.flags=[bridge|private|vepa] (defaults to bridge)
lxc.net[i].link=eth0
lxc.net[i].flags=up

Signed-off-by: tomponline <thomas.parrott@canonical.com>
6 years agoMerge pull request #2967 from brauner/2019-05-01/seccomp_notifier_api_removal
Stéphane Graber [Wed, 1 May 2019 03:16:46 +0000 (23:16 -0400)] 
Merge pull request #2967 from brauner/2019-05-01/seccomp_notifier_api_removal

seccomp: remove alignment requirements

6 years agoseccomp: remove alignment requirements 2967/head
Christian Brauner [Wed, 1 May 2019 00:04:02 +0000 (02:04 +0200)] 
seccomp: remove alignment requirements

since apparently there are insane programming languages out there that just
silently remove packed members in structs.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agoMerge pull request #2966 from brauner/2019-05-01/seccomp_notifier_api_removal
Stéphane Graber [Tue, 30 Apr 2019 23:42:33 +0000 (19:42 -0400)] 
Merge pull request #2966 from brauner/2019-05-01/seccomp_notifier_api_removal

seccomp: don't commit to an api just yet

6 years agoseccomp: don't commit to an api just yet 2966/head
Christian Brauner [Tue, 30 Apr 2019 23:17:49 +0000 (01:17 +0200)] 
seccomp: don't commit to an api just yet

I'm not sure that I want to be married (to this layout) just yet.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agoMerge pull request #2965 from brauner/2019-05-01/seccomp_notifier_fixes
Stéphane Graber [Tue, 30 Apr 2019 22:53:21 +0000 (18:53 -0400)] 
Merge pull request #2965 from brauner/2019-05-01/seccomp_notifier_fixes

seccomp: notifier fixes

6 years agoseccomp: notifier fixes 2965/head
Christian Brauner [Tue, 30 Apr 2019 22:36:41 +0000 (00:36 +0200)] 
seccomp: notifier fixes

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agoMerge pull request #2961 from tomponline/tp-static-net-funcs
Christian Brauner [Tue, 30 Apr 2019 09:46:24 +0000 (11:46 +0200)] 
Merge pull request #2961 from tomponline/tp-static-net-funcs

network: Makes some routing functions static

6 years agonetwork: Makes some routing functions static 2961/head
tomponline [Tue, 30 Apr 2019 09:30:58 +0000 (10:30 +0100)] 
network: Makes some routing functions static

The following functions can be made static for consistency:

lxc_ipv4_dest_add
lxc_ipv6_dest_add
lxc_ip_route_dest_add (renamed)

Signed-off-by: tomponline <thomas.parrott@canonical.com>
6 years agoMerge pull request #2960 from tomponline/tp-seccomp-apiext-docs
Christian Brauner [Tue, 30 Apr 2019 09:17:40 +0000 (11:17 +0200)] 
Merge pull request #2960 from tomponline/tp-seccomp-apiext-docs

docs: Adds missing doc entries for seccomp related API extensions

6 years agodocs: Adds missing doc entries for seccomp related API extensions 2960/head
tomponline [Tue, 30 Apr 2019 09:14:55 +0000 (10:14 +0100)] 
docs: Adds missing doc entries for seccomp related API extensions

Signed-off-by: tomponline <thomas.parrott@canonical.com>
6 years agoMerge pull request #2949 from tomponline/tp-veth-routes
Christian Brauner [Mon, 29 Apr 2019 15:15:38 +0000 (17:15 +0200)] 
Merge pull request #2949 from tomponline/tp-veth-routes

network: Adds veth static routes feature

6 years agoMerge pull request #2957 from tomponline/tp-macvlan-mode
Christian Brauner [Mon, 29 Apr 2019 14:17:42 +0000 (16:17 +0200)] 
Merge pull request #2957 from tomponline/tp-macvlan-mode

network: Fixes bug in macvlan mode selection

6 years agonetwork: Fixes bug in macvlan mode selection 2957/head
tomponline [Mon, 29 Apr 2019 14:11:17 +0000 (15:11 +0100)] 
network: Fixes bug in macvlan mode selection

Signed-off-by: tomponline <thomas.parrott@canonical.com>
6 years agoMerge pull request #2956 from brauner/2019-04-29/seccomp_trap_cleanup
Stéphane Graber [Mon, 29 Apr 2019 13:47:29 +0000 (09:47 -0400)] 
Merge pull request #2956 from brauner/2019-04-29/seccomp_trap_cleanup

seccomp: cleanup

6 years agoseccomp: cleanup 2956/head
Christian Brauner [Mon, 29 Apr 2019 08:16:01 +0000 (10:16 +0200)] 
seccomp: cleanup

Simplify and cleanup some of the seccomp code. This mainly focuses on removing
the open coding of various seccomp settings all over the code place in favor of
centralized helpers.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agoMerge pull request #2955 from tomponline/tp-ignore-test-build
Stéphane Graber [Mon, 29 Apr 2019 12:59:32 +0000 (08:59 -0400)] 
Merge pull request #2955 from tomponline/tp-ignore-test-build

tests: Updates .gitignore to ignore test build artefacts

6 years agoMerge pull request #2954 from tomponline/tp-vlan-hook
Stéphane Graber [Mon, 29 Apr 2019 12:59:20 +0000 (08:59 -0400)] 
Merge pull request #2954 from tomponline/tp-vlan-hook

network: Fixes vlan hook script

6 years agotests: Updates .gitignore to ignore test build artefacts 2955/head
tomponline [Mon, 29 Apr 2019 08:49:07 +0000 (09:49 +0100)] 
tests: Updates .gitignore to ignore test build artefacts

Signed-off-by: tomponline <thomas.parrott@canonical.com>
6 years agonetwork: Fixes vlan hook script 2954/head
tomponline [Mon, 29 Apr 2019 08:44:57 +0000 (09:44 +0100)] 
network: Fixes vlan hook script

Signed-off-by: tomponline <thomas.parrott@canonical.com>
6 years agonetwork: Adds support host side veth device static routes 2949/head
tomponline [Thu, 25 Apr 2019 11:47:17 +0000 (12:47 +0100)] 
network: Adds support host side veth device static routes

Adds the following new config keys:

lxc.net.[i].veth.ipv4.route
lxc.net.[i].veth.ipv6.route
E.g.

lxc.net.0.veth.ipv4.route = 192.0.2.1/32
lxc.net.0.veth.ipv4.route = 192.0.3.0/24
lxc.net.0.veth.ipv6.route = 2001:db8::1/128
lxc.net.0.veth.ipv6.route = 2001:db8:2::/64

Signed-off-by: tomponline <thomas.parrott@canonical.com>
6 years agoMerge pull request #2951 from tomponline/tp-typo
Stéphane Graber [Fri, 26 Apr 2019 18:45:10 +0000 (14:45 -0400)] 
Merge pull request #2951 from tomponline/tp-typo

network: Fixes a little typo in an error message

6 years agoMerge pull request #2952 from tomponline/tp-vlan-upscript
Stéphane Graber [Fri, 26 Apr 2019 18:44:55 +0000 (14:44 -0400)] 
Merge pull request #2952 from tomponline/tp-vlan-upscript

network: Adds hook handling for vlan network type

6 years agonetwork: Adds upscript handling for vlan network type 2952/head
tomponline [Fri, 26 Apr 2019 17:01:53 +0000 (18:01 +0100)] 
network: Adds upscript handling for vlan network type

Signed-off-by: tomponline <thomas.parrott@canonical.com>
6 years agonetwork: Fixes a little typo in an error message 2951/head
tomponline [Fri, 26 Apr 2019 16:49:32 +0000 (17:49 +0100)] 
network: Fixes a little typo in an error message

Signed-off-by: tomponline <thomas.parrott@canonical.com>
6 years agoMerge pull request #2947 from brauner/2019-04-18/seccomp_trap
Stéphane Graber [Thu, 25 Apr 2019 22:44:37 +0000 (18:44 -0400)] 
Merge pull request #2947 from brauner/2019-04-18/seccomp_trap

seccomp: SECCOMP_RET_USER_NOTIF support

6 years agostart: silence clang 2947/head
Christian Brauner [Thu, 25 Apr 2019 15:20:39 +0000 (17:20 +0200)] 
start: silence clang

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agoapi_extensions: add seccomp_notify
Christian Brauner [Thu, 25 Apr 2019 13:25:23 +0000 (15:25 +0200)] 
api_extensions: add seccomp_notify

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agodoc: add lxc.seccomp.notify.proxy
Christian Brauner [Thu, 25 Apr 2019 14:40:40 +0000 (16:40 +0200)] 
doc: add lxc.seccomp.notify.proxy

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agoseccomp: send default answer and try to reconnect
Christian Brauner [Thu, 25 Apr 2019 13:53:14 +0000 (15:53 +0200)] 
seccomp: send default answer and try to reconnect

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agoconfile: add lxc.seccomp.notify.proxy
Christian Brauner [Thu, 25 Apr 2019 12:51:51 +0000 (14:51 +0200)] 
confile: add lxc.seccomp.notify.proxy

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agoseccomp: SECCOMP_RET_USER_NOTIF support
Christian Brauner [Sun, 21 Apr 2019 19:03:51 +0000 (21:03 +0200)] 
seccomp: SECCOMP_RET_USER_NOTIF support

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agoMerge pull request #2948 from pgauret/patch-1
Christian Brauner [Wed, 24 Apr 2019 16:30:43 +0000 (18:30 +0200)] 
Merge pull request #2948 from pgauret/patch-1

Fix 'zfs get' command order

6 years agoFix 'zfs get' command order 2948/head
pgauret [Wed, 24 Apr 2019 16:29:21 +0000 (18:29 +0200)] 
Fix 'zfs get' command order

Another case of calling 'zfs get' which requires reordering arguments to work with latest zfs.

Signed-off-by: Paul Gauret <pgauret@yahoo.com>
6 years agoMerge pull request #2946 from tych0/remove-bad-doc
Christian Brauner [Tue, 23 Apr 2019 15:08:13 +0000 (17:08 +0200)] 
Merge pull request #2946 from tych0/remove-bad-doc

lxc-start: remove bad doc

6 years agolxc-start: remove bad doc 2946/head
Tycho Andersen [Tue, 23 Apr 2019 14:48:29 +0000 (08:48 -0600)] 
lxc-start: remove bad doc

We don't in fact exit(1) if this is not specified, and it wouldn't make
sense to, since most people probably don't specify this.

Signed-off-by: Tycho Andersen <tycho@tycho.ws>
6 years agoMerge pull request #2945 from brauner/2019-04-19/netns_getifaddrs_adapt_to_kernel_changes
Stéphane Graber [Fri, 19 Apr 2019 17:58:23 +0000 (13:58 -0400)] 
Merge pull request #2945 from brauner/2019-04-19/netns_getifaddrs_adapt_to_kernel_changes

netns_getifaddrs: adapt to kernel changes

6 years agonetns_getifaddrs: adapt to kernel changes 2945/head
Christian Brauner [Fri, 19 Apr 2019 13:24:51 +0000 (15:24 +0200)] 
netns_getifaddrs: adapt to kernel changes

s/NETLINK_DUMP_STRICT_CHK/NETLINK_GET_STRICT_CHK/g

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agoMerge pull request #2943 from brauner/master
Stéphane Graber [Wed, 17 Apr 2019 17:29:07 +0000 (18:29 +0100)] 
Merge pull request #2943 from brauner/master

configure: s/LDLAGS/LDFLAGS/

6 years agoconfigure: s/LDLAGS/LDFLAGS/ 2943/head
Christian Brauner [Wed, 17 Apr 2019 17:12:07 +0000 (19:12 +0200)] 
configure: s/LDLAGS/LDFLAGS/

I apparently cannot spell.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agoMerge pull request #2940 from brauner/master
Stéphane Graber [Wed, 17 Apr 2019 07:49:05 +0000 (08:49 +0100)] 
Merge pull request #2940 from brauner/master

raw_syscalls: lxc_raw_clone() account for different trap number on 32bit SPARC

6 years agoMerge pull request #2941 from flx42/reorder-mounts
Christian Brauner [Tue, 16 Apr 2019 22:29:28 +0000 (00:29 +0200)] 
Merge pull request #2941 from flx42/reorder-mounts

conf: do lxc.mount.entry mounts right after lxc.mount.fstab

6 years agoMerge pull request #2942 from flx42/nvidia-hook-handle-spaces-env
Christian Brauner [Tue, 16 Apr 2019 22:00:18 +0000 (00:00 +0200)] 
Merge pull request #2942 from flx42/nvidia-hook-handle-spaces-env

hooks/nvidia: handle spaces in NVIDIA_REQUIRE variables

6 years agoconf: do lxc.mount.entry mounts right after lxc.mount.fstab 2941/head
Felix Abecassis [Tue, 16 Apr 2019 21:40:03 +0000 (14:40 -0700)] 
conf: do lxc.mount.entry mounts right after lxc.mount.fstab

These configuration options use the same syntax and therefore it seems
more intuitive to have the same behavior for both of them, which is
not the case today since mount hooks and autodev mounts are called
between the two.

See: https://github.com/lxc/lxc/issues/2932

Signed-off-by: Felix Abecassis <fabecassis@nvidia.com>
6 years agoraw_syscalls: lxc_raw_clone() 2940/head
Christian Brauner [Tue, 16 Apr 2019 21:32:03 +0000 (23:32 +0200)] 
raw_syscalls: lxc_raw_clone()

Account for different trap number on 32bit SPARC.

Link: https://bugs.gentoo.org/656368
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agohooks/nvidia: handle spaces in NVIDIA_REQUIRE variables 2942/head
Felix Abecassis [Tue, 16 Apr 2019 20:58:51 +0000 (13:58 -0700)] 
hooks/nvidia: handle spaces in NVIDIA_REQUIRE variables

Previously, environment variables with a space where splitted.

Signed-off-by: Felix Abecassis <fabecassis@nvidia.com>
6 years agoMerge pull request #2938 from pgauret/patch-1
Christian Brauner [Mon, 15 Apr 2019 22:22:41 +0000 (00:22 +0200)] 
Merge pull request #2938 from pgauret/patch-1

Update zfs.c

6 years agostorage: update zfs 2938/head
pgauret [Mon, 15 Apr 2019 07:18:42 +0000 (09:18 +0200)] 
storage: update zfs

Change zfs arguments. This also works with older zfs versions, tested with
zfs 0.7.9-3 on Ubuntu 18.10.

Closes #2916.

Signed-off-by: Paul Gauret <pgauret@yahoo.com>
[christian.brauner@ubuntu.com: adapt commit message and add Signed-off-by for Paul]
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agoMerge pull request #2937 from brauner/2019-04-14/issue_2912
Stéphane Graber [Sun, 14 Apr 2019 18:07:34 +0000 (14:07 -0400)] 
Merge pull request #2937 from brauner/2019-04-14/issue_2912

storage: prevent unitialized variable warning

6 years agoMerge pull request #2936 from brauner/2019-04-14/issue_2935
Stéphane Graber [Sun, 14 Apr 2019 18:03:59 +0000 (14:03 -0400)] 
Merge pull request #2936 from brauner/2019-04-14/issue_2935

cgroups: fix potential nullderef

6 years agostorage: prevent unitialized variable warning 2937/head
Christian Brauner [Sun, 14 Apr 2019 13:46:12 +0000 (15:46 +0200)] 
storage: prevent unitialized variable warning

We can simply fix this issue by switching to our cleanup macros instead of
manually freeing the memory.

Closes #2912.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agocgroups: fix potential nullderef 2936/head
Christian Brauner [Sun, 14 Apr 2019 13:30:22 +0000 (15:30 +0200)] 
cgroups: fix potential nullderef

The child_path variable is initialized very late in the function so jumping to
the on_error label would cause a nullderef. With the cleanup macros we can
simplify this function to simply do direct returns and avoid that whole issue.

Closes #2935.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agoMerge pull request #2934 from brauner/2019-04-13/simplify_and_test
Stéphane Graber [Sat, 13 Apr 2019 17:49:30 +0000 (13:49 -0400)] 
Merge pull request #2934 from brauner/2019-04-13/simplify_and_test

attach: use tighter scope for fd variable

6 years agoattach: use tighter scope for fd variable 2934/head
Christian Brauner [Sat, 13 Apr 2019 17:08:49 +0000 (19:08 +0200)] 
attach: use tighter scope for fd variable

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agoMerge pull request #2928 from yosukesan/api_doc_generation_fails_under_out_of_source_...
Christian Brauner [Sat, 6 Apr 2019 13:14:31 +0000 (15:14 +0200)] 
Merge pull request #2928 from yosukesan/api_doc_generation_fails_under_out_of_source_build#2927

fix: #2927 api doc generation fails under out of source build.

6 years agoMerge pull request #2926 from tenforward/japanese
Christian Brauner [Sat, 6 Apr 2019 05:21:03 +0000 (07:21 +0200)] 
Merge pull request #2926 from tenforward/japanese

doc: update Japanese lxc-user-nic manpage

6 years agofix: #2927 api doc generation fails under out of source build. 2928/head
yosukesan [Sat, 6 Apr 2019 03:42:41 +0000 (12:42 +0900)] 
fix: #2927 api doc generation fails under out of source build.

Signed-off-by: yosukesan <y.otsuki30@gmail.com>
6 years agodoc: update Japanese lxc-user-nic manpage 2926/head
KATOH Yasufumi [Fri, 5 Apr 2019 17:00:53 +0000 (02:00 +0900)] 
doc: update Japanese lxc-user-nic manpage

Update for commit db74bbd

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
6 years agoMerge pull request #2924 from brauner/2019-04-05/lxc_user_nice_update
Stéphane Graber [Fri, 5 Apr 2019 16:32:39 +0000 (12:32 -0400)] 
Merge pull request #2924 from brauner/2019-04-05/lxc_user_nice_update

lxc-user-nic: update

6 years agolxc-user-nic: validate request 2924/head
Christian Brauner [Fri, 5 Apr 2019 12:11:43 +0000 (14:11 +0200)] 
lxc-user-nic: validate request

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Cc: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
6 years agodoc: update lxc-user-nic manpage
Christian Brauner [Fri, 5 Apr 2019 12:01:12 +0000 (14:01 +0200)] 
doc: update lxc-user-nic manpage

Closes #1823.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Cc: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
6 years agolxc-user-nic: small tweaks
Christian Brauner [Fri, 5 Apr 2019 11:30:28 +0000 (13:30 +0200)] 
lxc-user-nic: small tweaks

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Cc: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
6 years agoMerge pull request #2923 from flx42/more-pdeathsig-fixes
Christian Brauner [Thu, 4 Apr 2019 14:50:41 +0000 (16:50 +0200)] 
Merge pull request #2923 from flx42/more-pdeathsig-fixes

More pdeathsig fixes

6 years agoFix monitor pdeathsig handling 2923/head
Felix Abecassis [Thu, 4 Apr 2019 04:12:38 +0000 (21:12 -0700)] 
Fix monitor pdeathsig handling

Signed-off-by: Felix Abecassis <fabecassis@nvidia.com>
6 years agoFix user namespace pdeathsig handling
Felix Abecassis [Thu, 4 Apr 2019 04:09:53 +0000 (21:09 -0700)] 
Fix user namespace pdeathsig handling

Signed-off-by: Felix Abecassis <fabecassis@nvidia.com>
6 years agoMerge pull request #2922 from brauner/2019-04-02/ovs_fixes
Stéphane Graber [Wed, 3 Apr 2019 03:08:12 +0000 (23:08 -0400)] 
Merge pull request #2922 from brauner/2019-04-02/ovs_fixes

network: fix network device removal

6 years agonetwork: fix network device removal 2922/head
Christian Brauner [Tue, 2 Apr 2019 21:26:59 +0000 (23:26 +0200)] 
network: fix network device removal

Closes #2849.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agoMerge pull request #2920 from tenforward/update_docs
Christian Brauner [Wed, 27 Mar 2019 14:13:46 +0000 (07:13 -0700)] 
Merge pull request #2920 from tenforward/update_docs

Update docs

6 years agodoc: Add the description of apparmor profile generation to man pages 2920/head
KATOH Yasufumi [Wed, 27 Mar 2019 07:56:20 +0000 (16:56 +0900)] 
doc: Add the description of apparmor profile generation to man pages

Only add to English and Japanese man pages.

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
6 years agodoc: Add lxc.rootfs.managed to lxc.container.conf(5)
KATOH Yasufumi [Wed, 27 Mar 2019 07:52:53 +0000 (16:52 +0900)] 
doc: Add lxc.rootfs.managed to lxc.container.conf(5)

Only add to English and Japanese man pages.

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
6 years agodoc: Add lxc.cgroup.relative to lxc.container.conf(5)
KATOH Yasufumi [Wed, 27 Mar 2019 06:53:17 +0000 (15:53 +0900)] 
doc: Add lxc.cgroup.relative to lxc.container.conf(5)

Only English and Japanese man pages.

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
6 years agoMerge pull request #2911 from tomponline/tp-2019-03-19/lvcreate
Christian Brauner [Wed, 27 Mar 2019 01:09:33 +0000 (18:09 -0700)] 
Merge pull request #2911 from tomponline/tp-2019-03-19/lvcreate

lvm: Updates lvcreate to wipe signatures if supported

6 years agoMerge pull request #2910 from tomponline/tp-2019-03-19/travis
Christian Brauner [Tue, 26 Mar 2019 11:32:14 +0000 (04:32 -0700)] 
Merge pull request #2910 from tomponline/tp-2019-03-19/travis

Travis: Adds -Wall and -Werror cflags flags to automatic build.

6 years agolvm: Updates lvcreate to wipe signatures if supported, fallbacks to old command if... 2911/head
tomponline [Tue, 19 Mar 2019 18:14:25 +0000 (18:14 +0000)] 
lvm: Updates lvcreate to wipe signatures if supported, fallbacks to old command if not.

Signed-off-by: tomponline <tomp@tomp.uk>
6 years agoMerge pull request #2917 from tych0/check-init-pid-failures
Christian Brauner [Mon, 25 Mar 2019 19:55:56 +0000 (12:55 -0700)] 
Merge pull request #2917 from tych0/check-init-pid-failures

lxccontainer: check do_lxcapi_init_pid() for failure

6 years agolxccontainer: check do_lxcapi_init_pid() for failure 2917/head
Tycho Andersen [Mon, 25 Mar 2019 18:08:02 +0000 (12:08 -0600)] 
lxccontainer: check do_lxcapi_init_pid() for failure

This function can fail, because it uses the command API. If it does fail,
we get weird errors about not being able to open strange proc paths:

xc authyldapservice-c8020e20-e203-e852-90ef-4d378e8d1444 20190323163231.386 ERROR    lxc_utils - utils.c:switch_to_ns:1184 - No such file or directory - failed to open /proc/-104/ns/net

So let's check for errors before then.

Signed-off-by: Tycho Andersen <tycho@tycho.ws>
6 years agotravis: Attempt to fix src/lxc/cmd/lxc_init.c:251: undefined reference to `pthread_si... 2910/head
tomponline [Tue, 19 Mar 2019 13:38:55 +0000 (13:38 +0000)] 
travis: Attempt to fix src/lxc/cmd/lxc_init.c:251: undefined reference to `pthread_sigmask

Signed-off-by: tomponline <tomp@tomp.uk>
6 years agoattach: Adds ATTR_UNUSED to fd variable assignment to avoid clang unused variable...
tomponline [Tue, 19 Mar 2019 12:28:46 +0000 (12:28 +0000)] 
attach: Adds ATTR_UNUSED to fd variable assignment to avoid clang unused variable warnings.

Signed-off-by: tomponline <tomp@tomp.uk>
6 years agoTravis: Adds -Wall and -Werror gcc flags to automatic build.
tomponline [Tue, 19 Mar 2019 11:40:47 +0000 (11:40 +0000)] 
Travis: Adds -Wall and -Werror gcc flags to automatic build.

Signed-off-by: tomponline <tomp@tomp.uk>
6 years agoMerge pull request #2907 from brauner/2019-03-12/asan_support
Stéphane Graber [Tue, 12 Mar 2019 23:49:54 +0000 (19:49 -0400)] 
Merge pull request #2907 from brauner/2019-03-12/asan_support

hardening: enable address sanitizer build

6 years agohardening: enable address sanitizer build 2907/head
Christian Brauner [Tue, 12 Mar 2019 19:58:09 +0000 (20:58 +0100)] 
hardening: enable address sanitizer build

This adds --{disable,enable}-asan. It is disabled by default.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
6 years agoMerge pull request #2903 from flx42/fix-pid-namespace-pdeathsig-handling
Christian Brauner [Tue, 12 Mar 2019 09:38:15 +0000 (10:38 +0100)] 
Merge pull request #2903 from flx42/fix-pid-namespace-pdeathsig-handling

Fix PID namespace pdeathsig handling