Christian Brauner
58db1a61c8
build: add src/include to build and simplify header inclusions
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-09-03 09:25:56 +02:00
Stéphane Graber
074c356087
Merge pull request #3962 from brauner/2021-09-02.fixes
...
tree-wide: build fixes
2021-09-02 13:57:28 -04:00
Christian Brauner
646b75b515
tree-wide: fix build
...
Fixes : #3960
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-09-02 19:10:07 +02:00
Christian Brauner
2d7f5dcd9a
include: make all functions __hidden
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-09-02 15:57:05 +02:00
Stéphane Graber
9265ae82df
Merge pull request #3959 from brauner/2021-09-01.fixes
...
configure: add sanitizer flags to LDFLAGS as well
2021-09-01 11:57:58 -04:00
Christian Brauner
37acd20e44
configure: add sanitizer flags to LDFLAGS as well
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-09-01 09:46:58 +02:00
Stéphane Graber
4d23944a90
Merge pull request #3957 from brauner/2021-08-27.list.2
...
conf: port more types to new list type
2021-08-30 16:44:37 -04:00
Christian Brauner
75910e0755
lxccontainer: don't pass NULL pointer
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2021-08-30 18:05:29 +02:00
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
7044717861
Merge pull request #3954 from blenk92/fix-attach-c2
...
attach: Fix -c option v2 :-D
2021-08-30 14:19:30 +02:00
Maximilian Blenk
9becf309a8
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>
2021-08-30 13:06:35 +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