]> git.ipfire.org Git - thirdparty/lxc.git/log
thirdparty/lxc.git
5 years agocheckconfig: Show LXC version in output. 3480/head
Ruben Jenster [Wed, 8 Jul 2020 09:25:39 +0000 (11:25 +0200)] 
checkconfig: Show LXC version in output.

Signed-off-by: Ruben Jenster <r.jenster@drachenfels.de>
5 years agoMerge pull request #3479 from brauner/2020-07-06/fixes
Stéphane Graber [Mon, 6 Jul 2020 10:51:04 +0000 (06:51 -0400)] 
Merge pull request #3479 from brauner/2020-07-06/fixes

openpty: improve implementation and handling of platforms without it

5 years agoopenpty: improve implementation and handling of platforms without it 3479/head
Christian Brauner [Mon, 6 Jul 2020 08:54:46 +0000 (10:54 +0200)] 
openpty: improve implementation and handling of platforms without it

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #3478 from brauner/2020-07-05/fixes
Stéphane Graber [Mon, 6 Jul 2020 01:14:22 +0000 (21:14 -0400)] 
Merge pull request #3478 from brauner/2020-07-05/fixes

openpty: fix faulty rename

5 years agoopenpty: fix faulty rename 3478/head
Christian Brauner [Sun, 5 Jul 2020 21:42:31 +0000 (23:42 +0200)] 
openpty: fix faulty rename

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #3477 from brauner/2020-07-05/fixes
Stéphane Graber [Sun, 5 Jul 2020 21:29:32 +0000 (17:29 -0400)] 
Merge pull request #3477 from brauner/2020-07-05/fixes

tree-wide: update terminal terminology once more

5 years agotree-wide: s/pts/pty/g 3477/head
Christian Brauner [Sun, 5 Jul 2020 20:00:11 +0000 (22:00 +0200)] 
tree-wide: s/pts/pty/g

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agotree-wide: s/ptmx/ptx/g
Christian Brauner [Sun, 5 Jul 2020 19:54:32 +0000 (21:54 +0200)] 
tree-wide: s/ptmx/ptx/g

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #3476 from brauner/2020-07-05/fixes
Stéphane Graber [Sun, 5 Jul 2020 19:24:23 +0000 (15:24 -0400)] 
Merge pull request #3476 from brauner/2020-07-05/fixes

cgroups: handle empty bpf log buffer

5 years agocgroups: handle empty bpf log buffer 3476/head
Christian Brauner [Sun, 5 Jul 2020 19:04:07 +0000 (21:04 +0200)] 
cgroups: handle empty bpf log buffer

Link: https://launchpadlibrarian.net/487274879/buildlog_ubuntu-eoan-amd64.lxc_1:4.0.3+master~20200705-1541-0ubuntu1~eoan_BUILDING.txt.gz
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #3475 from brauner/2020-07-05/fixes
Stéphane Graber [Sun, 5 Jul 2020 15:28:48 +0000 (11:28 -0400)] 
Merge pull request #3475 from brauner/2020-07-05/fixes

cgroups: fix bpf device program generation

5 years agocgroups: fix bpf device program generation 3475/head
Christian Brauner [Sun, 5 Jul 2020 08:49:58 +0000 (10:49 +0200)] 
cgroups: fix bpf device program generation

Closes: #3473.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #3474 from brauner/2020-07-03/fixes
Stéphane Graber [Fri, 3 Jul 2020 13:42:10 +0000 (09:42 -0400)] 
Merge pull request #3474 from brauner/2020-07-03/fixes

api-extensions: add seccomp_allow_deny_syntax extension

5 years agoapi-extensions: add seccomp_allow_deny_syntax extension 3474/head
Christian Brauner [Fri, 3 Jul 2020 13:14:15 +0000 (15:14 +0200)] 
api-extensions: add seccomp_allow_deny_syntax extension

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #3472 from brauner/2020-07-03/fixes
Stéphane Graber [Fri, 3 Jul 2020 12:22:30 +0000 (08:22 -0400)] 
Merge pull request #3472 from brauner/2020-07-03/fixes

fixes

5 years agocgroup2_devices: fix access rule parsing 3472/head
Christian Brauner [Fri, 3 Jul 2020 11:40:28 +0000 (13:40 +0200)] 
cgroup2_devices: fix access rule parsing

Closes: #3473.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agocgroups: use empty {} to initialize struct
Christian Brauner [Fri, 3 Jul 2020 11:40:12 +0000 (13:40 +0200)] 
cgroups: use empty {} to initialize struct

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoseccomp: support allowlist/denylist in profiles
Christian Brauner [Fri, 3 Jul 2020 11:18:36 +0000 (13:18 +0200)] 
seccomp: support allowlist/denylist in profiles

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agocgroups: update terminology II
Christian Brauner [Fri, 3 Jul 2020 11:01:40 +0000 (13:01 +0200)] 
cgroups: update terminology II

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agocgroups: update terminology
Christian Brauner [Fri, 3 Jul 2020 10:56:48 +0000 (12:56 +0200)] 
cgroups: update terminology

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #3469 from johanneskastl/20200630_Kastl_fix_gpg_option
Stéphane Graber [Wed, 1 Jul 2020 12:44:06 +0000 (08:44 -0400)] 
Merge pull request #3469 from johanneskastl/20200630_Kastl_fix_gpg_option

templates/lxc-download.in: use GPG option "--receive-keys"

5 years agotemplates/lxc-download.in: use GPG option --receive-keys instead of --recv-keys 3469/head
Johannes Kastl [Tue, 30 Jun 2020 17:13:04 +0000 (19:13 +0200)] 
templates/lxc-download.in: use GPG option --receive-keys instead of --recv-keys

Signed-off-by: Johannes Kastl <kastl@b1-systems.de>
5 years agoMerge pull request #3468 from johanneskastl/20200630_Kastl_fix_shell_download_template
Stéphane Graber [Tue, 30 Jun 2020 20:18:44 +0000 (16:18 -0400)] 
Merge pull request #3468 from johanneskastl/20200630_Kastl_fix_shell_download_template

templates/lxc-download.in: fix wrong if-condition

5 years agotemplates/lxc-download.in: make shellcheck happy 3468/head
Johannes Kastl [Tue, 30 Jun 2020 16:55:15 +0000 (18:55 +0200)] 
templates/lxc-download.in: make shellcheck happy

Signed-off-by: Johannes Kastl <kastl@b1-systems.de>
5 years agotemplates/lxc-download.in: fix wrong if condition (use the result of the gpg command...
Johannes Kastl [Tue, 30 Jun 2020 16:51:20 +0000 (18:51 +0200)] 
templates/lxc-download.in: fix wrong if condition (use the result of the gpg command, not the result when executing the result of the gpg command)

Signed-off-by: Johannes Kastl <kastl@b1-systems.de>
5 years agoMerge pull request #3466 from alivenets/fix-no-new-privs
Christian Brauner [Tue, 30 Jun 2020 08:18:01 +0000 (10:18 +0200)] 
Merge pull request #3466 from alivenets/fix-no-new-privs

attach: set no_new_privs flag after LSM label

5 years agoattach: set no_new_privs flag after LSM label 3466/head
Alexander Livenets [Mon, 29 Jun 2020 22:06:20 +0000 (00:06 +0200)] 
attach: set no_new_privs flag after LSM label

In `start.c:1284`, no_new_privs flag is set after LSM label is set.
Also, in `lxc.container.conf` documentation it is written that:
```
Note that PR_SET_NO_NEW_PRIVS is applied after the container has
changed into its intended AppArmor profile or SElinux context.
```
This commit fixes the behavior of `lxc_attach` by moving
`PR_SET_NO_NEW_PRIVS` set logic after LSM for the process is configured;

Closes #3393

Signed-off-by: Alexander Livenets <a.livenets@gmail.com>
5 years agoMerge pull request #3465 from brauner/2020-06-19/clone_into_cgroup
Stéphane Graber [Mon, 29 Jun 2020 13:24:34 +0000 (09:24 -0400)] 
Merge pull request #3465 from brauner/2020-06-19/clone_into_cgroup

clone_into_cgroup: fixes

5 years agostart: use __aligned_u64 3465/head
Christian Brauner [Mon, 29 Jun 2020 12:52:54 +0000 (14:52 +0200)] 
start: use __aligned_u64

Closes: Coverity 1465044.
Closes: Coverity 1465046.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agostart: initialize cgroup_fd
Christian Brauner [Mon, 29 Jun 2020 12:51:02 +0000 (14:51 +0200)] 
start: initialize cgroup_fd

Fixes: Coverity 1465045.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #3464 from brauner/2020-06-19/clone_into_cgroup
Stéphane Graber [Mon, 29 Jun 2020 12:24:00 +0000 (08:24 -0400)] 
Merge pull request #3464 from brauner/2020-06-19/clone_into_cgroup

lxc: support CLONE_INTO_CGROUP

5 years agolxc: support CLONE_INTO_CGROUP 3464/head
Christian Brauner [Mon, 29 Jun 2020 09:34:01 +0000 (11:34 +0200)] 
lxc: support CLONE_INTO_CGROUP

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #3463 from brauner/2020-06-26/fixes
Stéphane Graber [Fri, 26 Jun 2020 13:33:03 +0000 (09:33 -0400)] 
Merge pull request #3463 from brauner/2020-06-26/fixes

confile: handle overflow in lxc.time.offset.{boot,monotonic}

5 years agoMerge pull request #3462 from tenforward/japanese
Stéphane Graber [Fri, 26 Jun 2020 12:45:55 +0000 (08:45 -0400)] 
Merge pull request #3462 from tenforward/japanese

Update Japanese lxc.container.conf(5)

5 years agostart: preserve time namespace 3463/head
Christian Brauner [Fri, 26 Jun 2020 08:39:47 +0000 (10:39 +0200)] 
start: preserve time namespace

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoconfile: handle overflow in lxc.time.offset.{boot,monotonic}
Christian Brauner [Fri, 26 Jun 2020 08:08:32 +0000 (10:08 +0200)] 
confile: handle overflow in lxc.time.offset.{boot,monotonic}

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agodoc: Add lxc.time.offset.* to Japanese lxc.container.conf(5) 3462/head
KATOH Yasufumi [Fri, 26 Jun 2020 05:24:28 +0000 (14:24 +0900)] 
doc: Add lxc.time.offset.* to Japanese lxc.container.conf(5)

and fix a type in English man page.
Update for commit 7fb5a8dfd2dcacd840921fcecdaad34cefad7a68

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
5 years agodoc: Add veth vlan bridge options to Japanese lxc.container.conf(5)
KATOH Yasufumi [Fri, 26 Jun 2020 05:10:03 +0000 (14:10 +0900)] 
doc: Add veth vlan bridge options to Japanese lxc.container.conf(5)

Update for commit a789ca4c24190f903d80b077b3cae766e932b2ad

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
5 years agoMerge pull request #3461 from brauner/2020-06-25/time_namespace
Stéphane Graber [Fri, 26 Jun 2020 00:15:50 +0000 (20:15 -0400)] 
Merge pull request #3461 from brauner/2020-06-25/time_namespace

time namespace support

5 years agodoc: add lxc.time.offset.{boot,monotonic} 3461/head
Christian Brauner [Thu, 25 Jun 2020 22:46:04 +0000 (00:46 +0200)] 
doc: add lxc.time.offset.{boot,monotonic}

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoapi: add time_namespace extension
Christian Brauner [Thu, 25 Jun 2020 22:45:18 +0000 (00:45 +0200)] 
api: add time_namespace extension

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agolxc: add time namespace support
Christian Brauner [Thu, 25 Jun 2020 12:39:29 +0000 (14:39 +0200)] 
lxc: add time namespace support

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #3460 from brauner/2020-06-25/fixes
Stéphane Graber [Thu, 25 Jun 2020 16:14:41 +0000 (12:14 -0400)] 
Merge pull request #3460 from brauner/2020-06-25/fixes

commands: don't flood logs

5 years agocommands: don't flood logs 3460/head
Christian Brauner [Thu, 25 Jun 2020 14:30:09 +0000 (16:30 +0200)] 
commands: don't flood logs

We're ignoring commands that we don't know about. They used to be fatal. Not
anymore.

Closes: #3459.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #3458 from stgraber/master
Christian Brauner [Wed, 24 Jun 2020 16:43:22 +0000 (18:43 +0200)] 
Merge pull request #3458 from stgraber/master

lxc-net: Set broadcast

5 years agolxc-net: Set broadcast 3458/head
Stéphane Graber [Tue, 23 Jun 2020 23:24:54 +0000 (19:24 -0400)] 
lxc-net: Set broadcast

Closes #3457

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
5 years agoMerge pull request #3456 from brauner/2020-06-23/lxc_stop_fixes
Christian Brauner [Tue, 23 Jun 2020 09:45:23 +0000 (11:45 +0200)] 
Merge pull request #3456 from brauner/2020-06-23/lxc_stop_fixes

lxccontainer: fix non-blocking container stop

5 years agolxccontainer: fix non-blocking container stop 3456/head
Robert Vogelgesang [Tue, 23 Jun 2020 08:51:33 +0000 (10:51 +0200)] 
lxccontainer: fix non-blocking container stop

Stopping a lxc container with without waiting on it was broken in master. This
patch fixes it.

Signed-off-by: Robert Vogelgesang <vogel@folz.de>
5 years agoMerge pull request #3454 from brauner/master
Stéphane Graber [Fri, 19 Jun 2020 23:08:19 +0000 (19:08 -0400)] 
Merge pull request #3454 from brauner/master

tree-wide: variable naming update

5 years agotest: update terminology 3454/head
Christian Brauner [Fri, 19 Jun 2020 21:59:46 +0000 (23:59 +0200)] 
test: update terminology

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agodoc: update terminology
Christian Brauner [Fri, 19 Jun 2020 21:58:15 +0000 (23:58 +0200)] 
doc: update terminology

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoCODING_STYLE: adapt code example
Christian Brauner [Fri, 19 Jun 2020 21:55:56 +0000 (23:55 +0200)] 
CODING_STYLE: adapt code example

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoopenpty: adapt variable naming
Christian Brauner [Fri, 19 Jun 2020 21:54:07 +0000 (23:54 +0200)] 
openpty: adapt variable naming

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #3453 from stgraber/master
Christian Brauner [Thu, 18 Jun 2020 15:56:52 +0000 (17:56 +0200)] 
Merge pull request #3453 from stgraber/master

network: Rename primary to master

5 years agonetwork: Rename primary to master 3453/head
Stéphane Graber [Thu, 18 Jun 2020 14:28:57 +0000 (10:28 -0400)] 
network: Rename primary to master

The previous change made things confusing by impliying there may be a
secondary when VLAN/IPVLAN/bridge members can only have a single parent
device.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
5 years agoRevert "nl: fix memory leak"
Stéphane Graber [Thu, 18 Jun 2020 14:22:02 +0000 (10:22 -0400)] 
Revert "nl: fix memory leak"

This reverts commit 9d05339487f4e9c4e7f700f963c161a4d9977ae4.

This causes a double-free as the variable is already using __do_free.

Closes #3452

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
5 years agotree-wide: use "primary" in networking code
Christian Brauner [Thu, 18 Jun 2020 08:06:55 +0000 (10:06 +0200)] 
tree-wide: use "primary" in networking code

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agotree-wide: wipe references to questionable apis from our public logs
Christian Brauner [Thu, 18 Jun 2020 07:53:34 +0000 (09:53 +0200)] 
tree-wide: wipe references to questionable apis from our public logs

We can't do anything about the established kernel API but we can at least not
propagate the terminology.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agotree-wide: use "ptmx" and "pts" as terminal terms
Christian Brauner [Wed, 17 Jun 2020 21:55:32 +0000 (23:55 +0200)] 
tree-wide: use "ptmx" and "pts" as terminal terms

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #3449 from gaurav1086/nl_fix_mem_leak
Christian Brauner [Wed, 17 Jun 2020 21:15:25 +0000 (23:15 +0200)] 
Merge pull request #3449 from gaurav1086/nl_fix_mem_leak

nl: fix memory leak

5 years agoMerge pull request #3450 from gaurav1086/containertests_fix_null_ptr_deref
Christian Brauner [Sun, 14 Jun 2020 07:28:39 +0000 (09:28 +0200)] 
Merge pull request #3450 from gaurav1086/containertests_fix_null_ptr_deref

containertests: fix null pointer defereference

5 years agocontainertests: fix null pointer defereference 3450/head
Gaurav Singh [Sat, 13 Jun 2020 23:15:50 +0000 (19:15 -0400)] 
containertests: fix null pointer defereference

Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
5 years agonl: fix memory leak 3449/head
Gaurav Singh [Sat, 13 Jun 2020 18:06:04 +0000 (14:06 -0400)] 
nl: fix memory leak

Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
5 years agoMerge pull request #3446 from brauner/2020-06-10/fixes_2
Stéphane Graber [Thu, 11 Jun 2020 17:54:05 +0000 (13:54 -0400)] 
Merge pull request #3446 from brauner/2020-06-10/fixes_2

conf: kill old chown_mapped_root()

5 years agolxccontainer: remove pointless string duplication 3446/head
Christian Brauner [Thu, 11 Jun 2020 15:34:08 +0000 (17:34 +0200)] 
lxccontainer: remove pointless string duplication

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoconf: kill old chown_mapped_root()
Christian Brauner [Wed, 10 Jun 2020 21:33:59 +0000 (23:33 +0200)] 
conf: kill old chown_mapped_root()

It's now a wrapper around userns_exec_mapped_root() which allows us to avoid
fork() + exec() lxc-usernsexec makes things way nicer to test with ASAN etc.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoconf: add some more logging to userns_exec_mapped_root()
Christian Brauner [Thu, 11 Jun 2020 16:05:55 +0000 (18:05 +0200)] 
conf: add some more logging to userns_exec_mapped_root()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoconf: always use target_fd in userns_exec_mapped_root()
Christian Brauner [Thu, 11 Jun 2020 16:05:33 +0000 (18:05 +0200)] 
conf: always use target_fd in userns_exec_mapped_root()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoconf: remove faulty flags
Christian Brauner [Thu, 11 Jun 2020 15:30:00 +0000 (17:30 +0200)] 
conf: remove faulty flags

If we set O_RDWR we won't be able to open directories and if we set O_PATH we
won't be able to chown.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #3444 from brauner/2020-06-10/fixes
Stéphane Graber [Wed, 10 Jun 2020 17:10:46 +0000 (13:10 -0400)] 
Merge pull request #3444 from brauner/2020-06-10/fixes

cgroups: initialize lxc.pivot cpuset

5 years agocgroups: initialize lxc.pivot cpuset 3444/head
Christian Brauner [Wed, 10 Jun 2020 15:40:56 +0000 (17:40 +0200)] 
cgroups: initialize lxc.pivot cpuset

Closes: #3443.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
5 years agoMerge pull request #3442 from tomponline/tp-veth-vlan-coverity
Christian Brauner [Tue, 9 Jun 2020 13:43:18 +0000 (15:43 +0200)] 
Merge pull request #3442 from tomponline/tp-veth-vlan-coverity

Coverity fixes for veth vlan

5 years agonetwork: Adds calls to free_ovs_veth_vlan_args in setup_veth_ovs_bridge_vlan 3442/head
Thomas Parrott [Tue, 9 Jun 2020 12:04:21 +0000 (13:04 +0100)] 
network: Adds calls to free_ovs_veth_vlan_args in setup_veth_ovs_bridge_vlan

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agonetwork: Fix int type in log message
Thomas Parrott [Tue, 9 Jun 2020 12:03:37 +0000 (13:03 +0100)] 
network: Fix int type in log message

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agonetwork: Adds free_ovs_veth_vlan_args and allows trunks field to be freed
Thomas Parrott [Tue, 9 Jun 2020 12:02:54 +0000 (13:02 +0100)] 
network: Adds free_ovs_veth_vlan_args and allows trunks field to be freed

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agonetwork: Removes unused ip_proxy_args
Thomas Parrott [Tue, 9 Jun 2020 12:01:36 +0000 (13:01 +0100)] 
network: Removes unused ip_proxy_args

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agonetwork: Fix coverity issue, dont initialise string pointers in setup_veth_ovs_bridge...
Thomas Parrott [Tue, 9 Jun 2020 11:03:40 +0000 (12:03 +0100)] 
network: Fix coverity issue, dont initialise string pointers in setup_veth_ovs_bridge_vlan

This is needed by lxc_ovs_setup_bridge_vlan_exec.

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agonetwork: Fix coverity issue, leaking data in lxc_ovs_setup_bridge_vlan_exec
Thomas Parrott [Tue, 9 Jun 2020 11:03:06 +0000 (12:03 +0100)] 
network: Fix coverity issue, leaking data in lxc_ovs_setup_bridge_vlan_exec

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agoconfile: Fix coverity issue, missing return in get_config_net_veth_vlan_tagged_id
Thomas Parrott [Tue, 9 Jun 2020 11:01:41 +0000 (12:01 +0100)] 
confile: Fix coverity issue, missing return in get_config_net_veth_vlan_tagged_id

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agoMerge pull request #3439 from tomponline/tp-nic-veth-vlan-ovs
Christian Brauner [Tue, 9 Jun 2020 09:38:36 +0000 (11:38 +0200)] 
Merge pull request #3439 from tomponline/tp-nic-veth-vlan-ovs

NIC: Veth OVS bridge VLAN support

5 years agonetwork: Updates instantiate_veth to support OVS VLAN setup 3439/head
Thomas Parrott [Mon, 8 Jun 2020 10:34:43 +0000 (11:34 +0100)] 
network: Updates instantiate_veth to support OVS VLAN setup

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agonetwork: Adds OVS VLAN setup functions
Thomas Parrott [Mon, 8 Jun 2020 10:34:27 +0000 (11:34 +0100)] 
network: Adds OVS VLAN setup functions

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agonetwork: Updates netlink_open handling in lxc_ipvlan_create 3435/head
Thomas Parrott [Tue, 9 Jun 2020 08:18:55 +0000 (09:18 +0100)] 
network: Updates netlink_open handling in lxc_ipvlan_create

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agodoc: Adds documentation for veth vlan bridge options
Thomas Parrott [Thu, 4 Jun 2020 14:59:58 +0000 (15:59 +0100)] 
doc: Adds documentation for veth vlan bridge options

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agonetwork: Updates instantiate_veth to set bridge vlan settings
Thomas Parrott [Wed, 3 Jun 2020 16:45:47 +0000 (17:45 +0100)] 
network: Updates instantiate_veth to set bridge vlan settings

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agonetwork: Adds bridge vlan management functions
Thomas Parrott [Wed, 3 Jun 2020 16:45:30 +0000 (17:45 +0100)] 
network: Adds bridge vlan management functions

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agotests: Adds test for lxc.net.0.veth.vlan.tagged.id config key
Thomas Parrott [Thu, 4 Jun 2020 13:14:43 +0000 (14:14 +0100)] 
tests: Adds test for lxc.net.0.veth.vlan.tagged.id config key

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agotests: Adds test for bridge vlan "none" value
Thomas Parrott [Thu, 4 Jun 2020 14:27:48 +0000 (15:27 +0100)] 
tests: Adds test for bridge vlan "none" value

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agotests: Adds test for lxc.net.0.veth.vlan.id config key
Thomas Parrott [Wed, 3 Jun 2020 10:08:41 +0000 (11:08 +0100)] 
tests: Adds test for lxc.net.0.veth.vlan.id config key

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agoconfile/utils: Adds freeing of priv.veth_attr.vlan_tagged_ids
Thomas Parrott [Wed, 3 Jun 2020 16:44:34 +0000 (17:44 +0100)] 
confile/utils: Adds freeing of priv.veth_attr.vlan_tagged_ids

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agoconfile/utils: Adds veth vlan tagged ID tracing to lxc_log_configured_netdevs
Thomas Parrott [Thu, 4 Jun 2020 14:30:34 +0000 (15:30 +0100)] 
confile/utils: Adds veth vlan tagged ID tracing to lxc_log_configured_netdevs

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agoconfile/utils: Adds veth mode and vlan ID tracing to lxc_log_configured_netdevs
Thomas Parrott [Wed, 3 Jun 2020 10:07:15 +0000 (11:07 +0100)] 
confile/utils: Adds veth mode and vlan ID tracing to lxc_log_configured_netdevs

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agoconfile: Adds validation for lxc.net.veth.vlan.tagged.id
Thomas Parrott [Wed, 3 Jun 2020 16:44:13 +0000 (17:44 +0100)] 
confile: Adds validation for lxc.net.veth.vlan.tagged.id

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agoconfile: Adds validation for lxc.net.veth.vlan.id
Thomas Parrott [Wed, 3 Jun 2020 10:06:49 +0000 (11:06 +0100)] 
confile: Adds validation for lxc.net.veth.vlan.id

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agonetwork: Adds veth vlan_id, vlan_id_set and vlan_tagged_ids
Thomas Parrott [Wed, 3 Jun 2020 10:08:19 +0000 (11:08 +0100)] 
network: Adds veth vlan_id, vlan_id_set and vlan_tagged_ids

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agomacro: Adds BRIDGE_VLAN_ID_MAX constant
Thomas Parrott [Thu, 4 Jun 2020 16:02:03 +0000 (17:02 +0100)] 
macro: Adds BRIDGE_VLAN_ID_MAX constant

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agomacro: Adds constant for BRIDGE_VLAN_NONE mode
Thomas Parrott [Thu, 4 Jun 2020 14:27:20 +0000 (15:27 +0100)] 
macro: Adds constant for BRIDGE_VLAN_NONE mode

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agomacro: Adds bridge VLAN constants
Thomas Parrott [Wed, 3 Jun 2020 16:44:55 +0000 (17:44 +0100)] 
macro: Adds bridge VLAN constants

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agoapi/extensions: Adds network_bridge_vlan API extension
Thomas Parrott [Thu, 4 Jun 2020 13:16:09 +0000 (14:16 +0100)] 
api/extensions: Adds network_bridge_vlan API extension

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
5 years agonetwork: Adds check for bridge link interface existence in instantiate_veth
Thomas Parrott [Wed, 3 Jun 2020 10:26:35 +0000 (11:26 +0100)] 
network: Adds check for bridge link interface existence in instantiate_veth

To avoid misleading errors about openvswitch when non-existent bridge link interface specified.

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>