]>
git.ipfire.org Git - thirdparty/lxc.git/log
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>
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
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>
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>
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
Christian Brauner [Sun, 5 Jul 2020 19:04:07 +0000 (21:04 +0200)]
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
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>
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
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>
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
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>
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>
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>
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>
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>
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"
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>
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
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>
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>
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
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>
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
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>
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>
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
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>
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}
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)
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>
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>
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>
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>
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
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>
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>
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>
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
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>
Christian Brauner [Wed, 24 Jun 2020 16:43:22 +0000 (18:43 +0200)]
Merge pull request #3458 from stgraber/master
lxc-net: Set broadcast
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>
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
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>
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
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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
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
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>
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>
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()
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>
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>
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>
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>
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>
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
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>
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
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Thomas Parrott [Mon, 8 Jun 2020 12:24:08 +0000 (13:24 +0100)]
macro: Adds UINT_TO_PTR and PTR_TO_USHORT helpers
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Christian Brauner [Wed, 3 Jun 2020 10:54:32 +0000 (12:54 +0200)]
Merge pull request #3434 from tomponline/tp-copying
.gitignore: Ignores COPYING file created by make
Thomas Parrott [Wed, 3 Jun 2020 10:06:12 +0000 (11:06 +0100)]
.gitignore: Ignores COPYING file created by make
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Christian Brauner [Tue, 2 Jun 2020 13:03:36 +0000 (15:03 +0200)]
Merge pull request #3432 from smoser/fix/lxc-usernsexec-test-do-create-user
lxc-test-usernsexec: If user is root, then create and use non-root user.