Christian Brauner
4a0d9c9972
lxccontainer: fail when container can't be loaded
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-30 17:55:09 +02:00
Christian Brauner
89ad5d7bf0
lxccontainer: remove useless {}
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-30 15:21:53 +02:00
Christian Brauner
b7e1e6febb
lxccontainer: use free_disarm() in list_all_containers()
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-30 15:19:25 +02:00
Christian Brauner
922c335290
lxc-usernsexec: small tweaks
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-30 14:44:37 +02:00
Christian Brauner
d696c45e73
tree-wide: fix list_entry()
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-30 14:44:37 +02:00
Christian Brauner
1f7dd3d5a0
lxccontainer: tweak some array handling helpers
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-27 16:45:37 +02:00
Christian Brauner
d993287e4f
lxccontainer: improve add_to_clist()
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-27 16:00:45 +02:00
Christian Brauner
587fc64e6e
lxccontainer: improve add_to_array()
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-27 15:59:39 +02:00
Christian Brauner
ffb2a35f0b
conf: port groups to new list type
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-27 15:44:04 +02:00
Christian Brauner
5090de3e62
conf: port hooks to new list type
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-27 15:06:08 +02:00
Christian Brauner
1fb1e6676f
conf: port apparmor to new list type
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-27 14:52:18 +02:00
Stéphane Graber
6446bf47d3
Merge pull request #3956 from brauner/2021-08-27.list
...
conf: port more types to new list type
2021-08-27 08:45:14 -04:00
Christian Brauner
be0bc4d1cf
conf: port mounts to new list type
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-27 13:08:09 +02:00
Christian Brauner
82134f19ce
cgroups: fix bpf device list
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-27 11:15:19 +02:00
Christian Brauner
6bf0c06bdd
network: port ipv6 routes to new list type
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-27 10:37:51 +02:00
Christian Brauner
303707f67b
network: port ipv4 routes to new list type
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-27 10:30:55 +02:00
Christian Brauner
bca286f2d7
cgroups: fix cgroup settings sorting
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-27 10:17:01 +02:00
Stéphane Graber
8ab50a9bfc
Merge pull request #3955 from brauner/2021-08-26.list.2
...
conf: port more types to new list type
2021-08-26 16:28:58 -04:00
Christian Brauner
7946305703
lxccontainer: align initialization
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-26 21:46:58 +02:00
Christian Brauner
05a54a64de
tree-wide: s/ipv{4,6}_list/ipv{4,6}_addresses/g
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-26 21:39:38 +02:00
Christian Brauner
cd32fc7300
network: port ipv6 addresses to new list type
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-26 21:37:35 +02:00
Stéphane Graber
e356020443
Merge pull request #3953 from brauner/2021-08-26.list
...
conf: port more types to new list type
2021-08-26 13:19:31 -04:00
Christian Brauner
2ec31bbde7
network: port ipv4 to new list type
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-26 18:21:54 +02:00
Stéphane Graber
19202d882b
Merge pull request #3952 from brauner/2021-08-25.list.2
...
conf: port more types to new list type
2021-08-26 10:53:06 -04:00
Christian Brauner
20ab75789e
conf: simplify and port caps to new list type
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-26 15:25:28 +02:00
Christian Brauner
badf09ec16
cgroup: remove unneeded forward declaration
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-26 14:19:53 +02:00
Christian Brauner
9ab399dfcf
terminal: remove unused struct member
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-26 14:19:14 +02:00
Christian Brauner
c294a68d13
conf: port environment to new list type
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-26 14:16:53 +02:00
Christian Brauner
0ef1dbb17b
conf: remove unused variables
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-26 13:38:07 +02:00
Christian Brauner
2ff1170b42
conf: switch to parse_mount_attrs() even for legacy mount()
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-26 11:11:08 +02:00
Christian Brauner
6b48a57529
conf: support recursive propagation options properly
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-26 11:06:52 +02:00
Christian Brauner
3eb2323041
conf: rework recursive mount option handling
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-26 10:47:47 +02:00
Christian Brauner
e73af35bba
rootfs: remove "options" member
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-26 10:27:38 +02:00
Christian Brauner
091f611c7c
conf: remove unused mountflags nember
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-26 10:17:21 +02:00
Christian Brauner
0589d744f6
conf: port id_map to new list type
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-26 09:47:47 +02:00
Christian Brauner
c9dbb8edf9
conf: port cgroup settings to new list type
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-26 09:47:47 +02:00
Christian Brauner
91d04bf9db
conf: port procs to new list type
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-26 09:47:39 +02:00
Christian Brauner
ba9f93472d
conf: port sysctls to new list type
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-25 18:49:49 +02:00
Christian Brauner
223797c313
conf: port rlimits to new list type
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-25 18:38:06 +02:00
Stéphane Graber
610c93b735
Merge pull request #3950 from brauner/2021-08-25.list
...
tree-wide: introduce new list type and port network handling to it
2021-08-25 12:29:14 -04:00
Christian Brauner
d2e75eba7e
conf: port state_clients to new list type
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-25 15:30:01 +02:00
Christian Brauner
2345ad43f0
mainloop: port handlers to new list type
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-25 15:19:25 +02:00
Christian Brauner
93de768ea3
cgroups: port bpf devices to new list type
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-25 14:28:06 +02:00
Christian Brauner
87d0990c1a
tree-wide: port network handling to new list type
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-25 13:25:03 +02:00
Christian Brauner
4780b5e7f4
list: add new kernel-based list implementation
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-25 13:24:51 +02:00
Stéphane Graber
e91d7f22f1
Merge pull request #3949 from brauner/2021-08-24.attach
...
tools: lxc-attach fixes
2021-08-24 23:56:17 -04:00
Stéphane Graber
fc1625fb23
Merge pull request #3948 from brauner/2021-08-24.fixes
...
confile: return negative errno everywhere
2021-08-24 08:29:49 -04:00
Maximilian Blenk
8c5c30d175
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>
2021-08-24 10:01:11 +02:00
Christian Brauner
d253a09f9b
confile: rework lxc_fill_elevated_privileges()
...
Cc: Maximilian Blenk <Maximilian.Blenk@bmw.de>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-24 09:58:47 +02:00
Christian Brauner
d34bbcb71a
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>
2021-08-24 09:58:25 +02:00