]>
git.ipfire.org Git - thirdparty/lxc.git/log
Edênis Freindorfer Azevedo [Sat, 28 Aug 2021 17:59:57 +0000 (14:59 -0300)]
Add completion output for `lxc-ls --fancy-format`.
Signed-off-by: Edênis Freindorfer Azevedo <edenisfa@gmail.com>
Edênis Freindorfer Azevedo [Fri, 27 Aug 2021 20:24:24 +0000 (17:24 -0300)]
Improve name completion handling.
Use regex to handle short option `-n`, since short options can be
combined (e.g. `-nd`) as long as at max one requires an argument.
Also consider the case when the arg for the long option is not given
together with `--name=`.
Signed-off-by: Edênis Freindorfer Azevedo <edenisfa@gmail.com>
Edênis Freindorfer Azevedo [Fri, 27 Aug 2021 12:11:42 +0000 (09:11 -0300)]
Add `compopt` call to `__lxc_piped_args`.
On pair with how other functions do it. Also, be smarter about adding
whitespace when there are no more completions available for the
parameter.
Signed-off-by: Edênis Freindorfer Azevedo <edenisfa@gmail.com>
Edênis Freindorfer Azevedo [Fri, 27 Aug 2021 11:48:38 +0000 (08:48 -0300)]
Use `--running` instead of `--active`.
Commands block if container is frozen.
Signed-off-by: Edênis Freindorfer Azevedo <edenisfa@gmail.com>
Edênis Freindorfer Azevedo [Fri, 27 Aug 2021 11:42:05 +0000 (08:42 -0300)]
Fill missing commands on name completion.
Signed-off-by: Edênis Freindorfer Azevedo <edenisfa@gmail.com>
Christian Brauner [Fri, 3 Sep 2021 14:35:55 +0000 (16:35 +0200)]
build: add tools to meson
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 07:26:52 +0000 (09:26 +0200)]
build: add meson skeleton
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 15:57:39 +0000 (17:57 +0200)]
build: make sure _GNU_SOURCE is set
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 17:05:35 +0000 (19:05 +0200)]
lxc: remove "version.h" inclusion
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 16:04:42 +0000 (18:04 +0200)]
tests: include "version.h"
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 15:47:49 +0000 (17:47 +0200)]
tree-wide: fix config.h inclusion
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 15:29:04 +0000 (17:29 +0200)]
tools: fix build warnings
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 15:05:12 +0000 (17:05 +0200)]
tree-wide: fix lxc header inclusion
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 14:14:16 +0000 (16:14 +0200)]
caps: fix includes
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 14:13:12 +0000 (16:13 +0200)]
tools/lxc_start: fix includes
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 14:12:09 +0000 (16:12 +0200)]
arguments: fix includes
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 14:11:39 +0000 (16:11 +0200)]
initutils: fix includes
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 14:10:44 +0000 (16:10 +0200)]
log: fix includes
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 14:10:35 +0000 (16:10 +0200)]
initutils: fix includes
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 14:10:16 +0000 (16:10 +0200)]
conf: fix includes
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 14:09:56 +0000 (16:09 +0200)]
string_utils: fix includes
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 14:09:43 +0000 (16:09 +0200)]
arguments: fix includes
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 10:57:07 +0000 (12:57 +0200)]
commands_utils: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 10:56:43 +0000 (12:56 +0200)]
file_utils: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 10:54:57 +0000 (12:54 +0200)]
monitor: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 10:53:54 +0000 (12:53 +0200)]
nl: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 10:51:17 +0000 (12:51 +0200)]
uuid: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 10:50:28 +0000 (12:50 +0200)]
seccomp: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 10:12:24 +0000 (12:12 +0200)]
lxcmntent: fix fallthrough
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 10:11:43 +0000 (12:11 +0200)]
netns_ifaddrs: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 09:58:55 +0000 (11:58 +0200)]
start: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 09:43:05 +0000 (11:43 +0200)]
utils: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 09:41:25 +0000 (11:41 +0200)]
terminal: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 09:30:01 +0000 (11:30 +0200)]
lxccontainer: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 09:25:56 +0000 (11:25 +0200)]
network: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 09:09:02 +0000 (11:09 +0200)]
tree-wide: fix public lxc header inclusions
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 09:04:58 +0000 (11:04 +0200)]
commands: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 09:03:07 +0000 (11:03 +0200)]
criu: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 08:49:34 +0000 (10:49 +0200)]
confile_utils: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 08:30:16 +0000 (10:30 +0200)]
tree-wide: fix attach header inclusion
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 08:25:01 +0000 (10:25 +0200)]
conf: fix array initalization
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 08:21:18 +0000 (10:21 +0200)]
conf: fix struct mount_attr initalization
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 08:14:55 +0000 (10:14 +0200)]
string_utils: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 08:14:44 +0000 (10:14 +0200)]
conf: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 08:01:51 +0000 (10:01 +0200)]
lsm: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 07:51:17 +0000 (09:51 +0200)]
attach: fix helper declarations
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 07:42:11 +0000 (09:42 +0200)]
storage: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 07:35:34 +0000 (09:35 +0200)]
confile: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 07:34:59 +0000 (09:34 +0200)]
cgroups: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 07:31:50 +0000 (09:31 +0200)]
syscall_wrapper: fix pivot_root() declaration
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Sep 2021 07:25:56 +0000 (09:25 +0200)]
build: add src/include to build and simplify header inclusions
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 2 Sep 2021 14:21:33 +0000 (16:21 +0200)]
tree-wide: fix build
Fixes: #3960
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 2 Sep 2021 13:57:05 +0000 (15:57 +0200)]
include: make all functions __hidden
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 1 Sep 2021 07:46:58 +0000 (09:46 +0200)]
configure: add sanitizer flags to LDFLAGS as well
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 30 Aug 2021 16:05:29 +0000 (18:05 +0200)]
lxccontainer: don't pass NULL pointer
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 30 Aug 2021 15:55:09 +0000 (17:55 +0200)]
lxccontainer: fail when container can't be loaded
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 30 Aug 2021 13:21:53 +0000 (15:21 +0200)]
lxccontainer: remove useless {}
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 30 Aug 2021 13:19:25 +0000 (15:19 +0200)]
lxccontainer: use free_disarm() in list_all_containers()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 30 Aug 2021 12:37:06 +0000 (14:37 +0200)]
lxc-usernsexec: small tweaks
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 30 Aug 2021 11:52:51 +0000 (13:52 +0200)]
tree-wide: fix list_entry()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Maximilian Blenk [Mon, 23 Aug 2021 13:39:28 +0000 (15:39 +0200)]
attach: Fix -c command
Currently, the -c command (to set the selinux context) seems to be
broken because the passed context is ignored and always overwritten by
the context specified in the config file. The intention behind the -c
imho was to be able to manually overwrite this behavior. This patch
ensures that the selinux context will be set if passed via the command
line.
Signed-off-by: Maximilian Blenk <Maximilian.Blenk@bmw.de>
Christian Brauner [Fri, 27 Aug 2021 14:14:19 +0000 (16:14 +0200)]
lxccontainer: tweak some array handling helpers
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 27 Aug 2021 14:00:45 +0000 (16:00 +0200)]
lxccontainer: improve add_to_clist()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 27 Aug 2021 13:59:39 +0000 (15:59 +0200)]
lxccontainer: improve add_to_array()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 27 Aug 2021 13:12:00 +0000 (15:12 +0200)]
conf: port groups to new list type
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 27 Aug 2021 12:57:51 +0000 (14:57 +0200)]
conf: port hooks to new list type
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 27 Aug 2021 12:51:01 +0000 (14:51 +0200)]
conf: port apparmor to new list type
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 27 Aug 2021 11:08:09 +0000 (13:08 +0200)]
conf: port mounts to new list type
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 27 Aug 2021 09:15:19 +0000 (11:15 +0200)]
cgroups: fix bpf device list
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 27 Aug 2021 08:36:48 +0000 (10:36 +0200)]
network: port ipv6 routes to new list type
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 27 Aug 2021 08:30:55 +0000 (10:30 +0200)]
network: port ipv4 routes to new list type
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 27 Aug 2021 08:17:01 +0000 (10:17 +0200)]
cgroups: fix cgroup settings sorting
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 26 Aug 2021 19:46:58 +0000 (21:46 +0200)]
lxccontainer: align initialization
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 26 Aug 2021 19:39:38 +0000 (21:39 +0200)]
tree-wide: s/ipv{4,6}_list/ipv{4,6}_addresses/g
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 26 Aug 2021 19:35:08 +0000 (21:35 +0200)]
network: port ipv6 addresses to new list type
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 26 Aug 2021 16:15:23 +0000 (18:15 +0200)]
network: port ipv4 to new list type
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 26 Aug 2021 13:25:28 +0000 (15:25 +0200)]
conf: simplify and port caps to new list type
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 26 Aug 2021 12:19:53 +0000 (14:19 +0200)]
cgroup: remove unneeded forward declaration
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 26 Aug 2021 12:19:14 +0000 (14:19 +0200)]
terminal: remove unused struct member
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 26 Aug 2021 12:11:48 +0000 (14:11 +0200)]
conf: port environment to new list type
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 26 Aug 2021 11:38:07 +0000 (13:38 +0200)]
conf: remove unused variables
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 26 Aug 2021 09:11:08 +0000 (11:11 +0200)]
conf: switch to parse_mount_attrs() even for legacy mount()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 26 Aug 2021 09:06:52 +0000 (11:06 +0200)]
conf: support recursive propagation options properly
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 26 Aug 2021 08:47:47 +0000 (10:47 +0200)]
conf: rework recursive mount option handling
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 26 Aug 2021 08:25:48 +0000 (10:25 +0200)]
rootfs: remove "options" member
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 26 Aug 2021 08:17:21 +0000 (10:17 +0200)]
conf: remove unused mountflags nember
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 25 Aug 2021 20:38:18 +0000 (22:38 +0200)]
conf: port id_map to new list type
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 25 Aug 2021 17:20:57 +0000 (19:20 +0200)]
conf: port cgroup settings to new list type
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 25 Aug 2021 16:55:10 +0000 (18:55 +0200)]
conf: port procs to new list type
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 25 Aug 2021 16:47:51 +0000 (18:47 +0200)]
conf: port sysctls to new list type
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 25 Aug 2021 16:38:06 +0000 (18:38 +0200)]
conf: port rlimits to new list type
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 25 Aug 2021 12:38:00 +0000 (14:38 +0200)]
conf: port state_clients to new list type
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 25 Aug 2021 12:47:06 +0000 (14:47 +0200)]
mainloop: port handlers to new list type
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 25 Aug 2021 12:27:09 +0000 (14:27 +0200)]
cgroups: port bpf devices to new list type
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 25 Aug 2021 10:13:40 +0000 (12:13 +0200)]
tree-wide: port network handling to new list type
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 25 Aug 2021 09:11:07 +0000 (11:11 +0200)]
list: add new kernel-based list implementation
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Maximilian Blenk [Tue, 24 Aug 2021 07:55:14 +0000 (09:55 +0200)]
tools: fix elevated privilege handler in lxc-attach
Make sure to return an error when the user requests an LSM profile to be
set while also requesting that elevated LSM privileges are to be used.
Signed-off-by: Maximilian Blenk <Maximilian.Blenk@bmw.de>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 24 Aug 2021 07:54:27 +0000 (09:54 +0200)]
confile: rework lxc_fill_elevated_privileges()
Cc: Maximilian Blenk <Maximilian.Blenk@bmw.de>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 24 Aug 2021 07:44:54 +0000 (09:44 +0200)]
attach_options: add LXC_ATTACH_LSM_LABEL to LXC_ATTACH_LSM flags
Cc: Maximilian Blenk <Maximilian.Blenk@bmw.de>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 24 Aug 2021 07:37:14 +0000 (09:37 +0200)]
tools: align struct initialization
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>