]> git.proxmox.com Git - mirror_lxc.git/log
mirror_lxc.git
3 years agotree-wide: fix lxc header inclusion
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>
3 years agocaps: fix includes
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>
3 years agotools/lxc_start: fix includes
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>
3 years agoarguments: fix includes
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>
3 years agoinitutils: fix includes
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>
3 years agolog: fix includes
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>
3 years agoinitutils: fix includes
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>
3 years agoconf: fix includes
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>
3 years agostring_utils: fix includes
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>
3 years agoarguments: fix includes
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>
3 years agocommands_utils: fix integer comparisons
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>
3 years agofile_utils: fix integer comparisons
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>
3 years agomonitor: fix integer comparisons
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>
3 years agonl: fix integer comparisons
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>
3 years agouuid: fix integer comparisons
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>
3 years agoseccomp: fix integer comparisons
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>
3 years agolxcmntent: fix fallthrough
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>
3 years agonetns_ifaddrs: fix integer comparisons
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>
3 years agostart: fix integer comparisons
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>
3 years agoutils: fix integer comparisons
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>
3 years agoterminal: fix integer comparisons
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>
3 years agolxccontainer: fix integer comparisons
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>
3 years agonetwork: fix integer comparisons
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>
3 years agotree-wide: fix public lxc header inclusions
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>
3 years agocommands: fix integer comparisons
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>
3 years agocriu: fix integer comparisons
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>
3 years agoconfile_utils: fix integer comparisons
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>
3 years agotree-wide: fix attach header inclusion
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>
3 years agoconf: fix array initalization
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>
3 years agoconf: fix struct mount_attr initalization
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>
3 years agostring_utils: fix integer comparisons
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>
3 years agoconf: fix integer comparisons
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>
3 years agolsm: fix integer comparisons
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>
3 years agoattach: fix helper declarations
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>
3 years agostorage: fix integer comparisons
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>
3 years agoconfile: fix integer comparisons
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>
3 years agocgroups: fix integer comparisons
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>
3 years agosyscall_wrapper: fix pivot_root() declaration
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>
3 years agobuild: add src/include to build and simplify header inclusions
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>
3 years agoMerge pull request #3962 from brauner/2021-09-02.fixes
Stéphane Graber [Thu, 2 Sep 2021 17:57:28 +0000 (13:57 -0400)]
Merge pull request #3962 from brauner/2021-09-02.fixes

tree-wide: build fixes

3 years agotree-wide: fix build
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>
3 years agoinclude: make all functions __hidden
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>
3 years agoMerge pull request #3959 from brauner/2021-09-01.fixes
Stéphane Graber [Wed, 1 Sep 2021 15:57:58 +0000 (11:57 -0400)]
Merge pull request #3959 from brauner/2021-09-01.fixes

configure: add sanitizer flags to LDFLAGS as well

3 years agoconfigure: add sanitizer flags to LDFLAGS as well
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>
3 years agoMerge pull request #3957 from brauner/2021-08-27.list.2
Stéphane Graber [Mon, 30 Aug 2021 20:44:37 +0000 (16:44 -0400)]
Merge pull request #3957 from brauner/2021-08-27.list.2

conf: port more types to new list type

3 years agolxccontainer: don't pass NULL pointer
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>
3 years agolxccontainer: fail when container can't be loaded
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>
3 years agolxccontainer: remove useless {}
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>
3 years agolxccontainer: use free_disarm() in list_all_containers()
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>
3 years agolxc-usernsexec: small tweaks
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>
3 years agotree-wide: fix list_entry()
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>
3 years agoMerge pull request #3954 from blenk92/fix-attach-c2
Christian Brauner [Mon, 30 Aug 2021 12:19:30 +0000 (14:19 +0200)]
Merge pull request #3954 from blenk92/fix-attach-c2

attach: Fix -c option v2 :-D

3 years agoattach: Fix -c command
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>
3 years agolxccontainer: tweak some array handling helpers
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>
3 years agolxccontainer: improve add_to_clist()
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>
3 years agolxccontainer: improve add_to_array()
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>
3 years agoconf: port groups to new list type
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>
3 years agoconf: port hooks to new list type
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>
3 years agoconf: port apparmor to new list type
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>
3 years agoMerge pull request #3956 from brauner/2021-08-27.list
Stéphane Graber [Fri, 27 Aug 2021 12:45:14 +0000 (08:45 -0400)]
Merge pull request #3956 from brauner/2021-08-27.list

conf: port more types to new list type

3 years agoconf: port mounts to new list type
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>
3 years agocgroups: fix bpf device list
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>
3 years agonetwork: port ipv6 routes to new list type
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>
3 years agonetwork: port ipv4 routes to new list type
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>
3 years agocgroups: fix cgroup settings sorting
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>
3 years agoMerge pull request #3955 from brauner/2021-08-26.list.2
Stéphane Graber [Thu, 26 Aug 2021 20:28:58 +0000 (16:28 -0400)]
Merge pull request #3955 from brauner/2021-08-26.list.2

conf: port more types to new list type

3 years agolxccontainer: align initialization
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>
3 years agotree-wide: s/ipv{4,6}_list/ipv{4,6}_addresses/g
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>
3 years agonetwork: port ipv6 addresses to new list type
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>
3 years agoMerge pull request #3953 from brauner/2021-08-26.list
Stéphane Graber [Thu, 26 Aug 2021 17:19:31 +0000 (13:19 -0400)]
Merge pull request #3953 from brauner/2021-08-26.list

conf: port more types to new list type

3 years agonetwork: port ipv4 to new list type
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>
3 years agoMerge pull request #3952 from brauner/2021-08-25.list.2
Stéphane Graber [Thu, 26 Aug 2021 14:53:06 +0000 (10:53 -0400)]
Merge pull request #3952 from brauner/2021-08-25.list.2

conf: port more types to new list type

3 years agoconf: simplify and port caps to new list type
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>
3 years agocgroup: remove unneeded forward declaration
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>
3 years agoterminal: remove unused struct member
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>
3 years agoconf: port environment to new list type
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>
3 years agoconf: remove unused variables
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>
3 years agoconf: switch to parse_mount_attrs() even for legacy mount()
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>
3 years agoconf: support recursive propagation options properly
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>
3 years agoconf: rework recursive mount option handling
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>
3 years agorootfs: remove "options" member
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>
3 years agoconf: remove unused mountflags nember
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>
3 years agoconf: port id_map to new list type
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>
3 years agoconf: port cgroup settings to new list type
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>
3 years agoconf: port procs to new list type
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>
3 years agoconf: port sysctls to new list type
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>
3 years agoconf: port rlimits to new list type
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>
3 years agoMerge pull request #3950 from brauner/2021-08-25.list
Stéphane Graber [Wed, 25 Aug 2021 16:29:14 +0000 (12:29 -0400)]
Merge pull request #3950 from brauner/2021-08-25.list

tree-wide: introduce new list type and port network handling to it

3 years agoconf: port state_clients to new list type
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>
3 years agomainloop: port handlers to new list type
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>
3 years agocgroups: port bpf devices to new list type
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>
3 years agotree-wide: port network handling to new list type
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>
3 years agolist: add new kernel-based list implementation
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>
3 years agoMerge pull request #3949 from brauner/2021-08-24.attach
Stéphane Graber [Wed, 25 Aug 2021 03:56:17 +0000 (23:56 -0400)]
Merge pull request #3949 from brauner/2021-08-24.attach

tools: lxc-attach fixes

3 years agoMerge pull request #3948 from brauner/2021-08-24.fixes
Stéphane Graber [Tue, 24 Aug 2021 12:29:49 +0000 (08:29 -0400)]
Merge pull request #3948 from brauner/2021-08-24.fixes

confile: return negative errno everywhere

3 years agotools: fix elevated privilege handler in lxc-attach
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>
3 years agoconfile: rework lxc_fill_elevated_privileges()
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>
3 years agoattach_options: add LXC_ATTACH_LSM_LABEL to LXC_ATTACH_LSM flags
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>
3 years agotools: align struct initialization
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>
3 years agotools: fix variable declarations in lxc-attach
Christian Brauner [Tue, 24 Aug 2021 07:36:34 +0000 (09:36 +0200)]
tools: fix variable declarations in lxc-attach

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>