Christian Brauner
bed09c9cc0
tree-wide: introduce and use syscall number header
...
This allows us:
- to compile on kernels with outdated headers
- compile on older kernels but shipping on newer kernels
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-18 10:48:40 +01:00
Stéphane Graber
ee555b2824
Merge pull request #3303 from brauner/2020-03-17/fixes
...
tools: fix -g and -u parameters for lxc-execute and lxc-attach and fix pidfd detection logic
2020-03-17 17:10:06 -04:00
Christian Brauner
8ad4fa6826
raw_syscalls: define __NR_pidfd_send_signal if missing
...
On all architectures we care about it's 424.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-17 21:55:38 +01:00
Christian Brauner
cc94aaf3f9
tools: fix -g -u parameters for lxc-execute and lxc-attach
...
Closes #3188 .
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-17 18:07:50 +01:00
Stéphane Graber
a1d5a1d42a
Merge pull request #3301 from brauner/2020-03-17/fixes
...
lxc_user_nic: don't depend on MAP_FIXED
2020-03-17 12:57:31 -04:00
Christian Brauner
9820e789fa
ISSUE_TEMPLATE: fix -l -o order
...
Closes #3220 .
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-17 17:38:05 +01:00
Christian Brauner
2120b89b0f
lxc_user_nic: don't depend on MAP_FIXED
...
as this breaks on sparc.
Closes #3262 .
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-17 17:26:14 +01:00
Stéphane Graber
bff9399765
busybox: Mark mqueue optional
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2020-03-16 21:49:55 -04:00
Stéphane Graber
4876ac07f1
Merge pull request #3300 from Rachid-Koucha/patch-4
...
Auto-create /dev/shm and /dev/mqueue
2020-03-16 17:12:23 -04:00
Rachid Koucha
1f76a6a777
Auto-create /dev/shm and /dev/mqueue
...
Mount fs on /dev/shm and /dev/mqueue to experiment IPC in namespaces
Signed-off-by: Rachid Koucha <rachid.koucha@gmail.com>
2020-03-16 21:19:15 +01:00
Christian Brauner
7d50440706
Merge pull request #3299 from stgraber/master
...
Fix build
2020-03-16 20:52:52 +01:00
Stéphane Graber
83e280f649
busybox: Fix bad lxc.mount.entry
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2020-03-16 15:48:32 -04:00
Stéphane Graber
1949358f9d
doc: Fix grammar
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2020-03-16 15:48:17 -04:00
Stéphane Graber
b834e091a4
Merge pull request #3297 from Rachid-Koucha/patch-2
...
Trigger the mounting of shm file system
2020-03-16 14:40:39 -04:00
Rachid Koucha
078c676f4d
Trigger the mounting of shm file system
...
shm file system was not mounted because of the "/" in :
lxc.mount.entry = shm /dev/shm tmpfs defaults 0 0
Signed-off-by: Rachid Koucha <rachid.koucha@gmail.com>
2020-03-16 19:10:00 +01:00
Stéphane Graber
b4242db034
Merge pull request #3295 from brauner/2020-03-15/fixes
...
smaller cleanups and simplifications
2020-03-15 13:13:39 -04:00
Christian Brauner
fd5be714fb
tree-wide: s/lxc_fini()/lxc_end()/g
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-15 15:52:30 +01:00
Christian Brauner
0c5859ff68
tree-wide: remove "name" argument from lxc_{fini,abort}()
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-15 15:50:34 +01:00
Christian Brauner
7bdf97d26b
{_}lxc_start: remove "name" argument
...
as it's directly available in the handler itself.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-15 15:45:54 +01:00
Christian Brauner
695d0e56ea
start: add missing TRACE() call
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-15 15:38:49 +01:00
Christian Brauner
9ad6658913
start: better goto target naming in __lxc_start()
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-15 15:37:57 +01:00
Christian Brauner
65a2dc8b90
start: rework cleanup code in __lxc_start()
...
This makes the goto labels slightly more convoluted but allows us to further
simplify the cleanup in lxc_init().
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-15 15:26:47 +01:00
Christian Brauner
59b1b67e7e
start: simplify lxc_init()
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-15 14:56:21 +01:00
Christian Brauner
b78872c03d
conf: don't wrap strings
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-15 14:37:42 +01:00
Stéphane Graber
1f423252bd
Merge pull request #3294 from brauner/2020-03-15/fixes
...
memory_utils: improvements
2020-03-15 02:16:14 -04:00
Christian Brauner
644e739385
tree-wide: remove last -1 fd initialization with cleanup macros in favor of -EBADF
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-15 02:40:13 +01:00
Christian Brauner
f62cf1d486
tree-wide: s/__do_close_prot_errno/__do_close/g
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-15 02:38:36 +01:00
Christian Brauner
6e87cb176f
memory_utils: adapt to new infrastructure
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-15 02:34:20 +01:00
Christian Brauner
5a07663367
tree-wide: port cgroup cleanup to call_cleaner(cgroup_exit)
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-15 01:55:24 +01:00
Christian Brauner
1e22a68300
caps: port to call_cleaner() based cleanup
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-15 01:38:00 +01:00
Christian Brauner
e16ad728f8
memory_utils: add call_cleaner() helper
...
This allows to trivially declare cleanup attributes on the fly.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-15 01:37:57 +01:00
Stéphane Graber
2b1ec4b999
Merge pull request #3293 from brauner/2020-03-14/travis_enable_arches
...
travis: enable all architectures
2020-03-14 10:18:25 -04:00
Christian Brauner
6937ecffdb
travis: enable all architectures
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-14 13:14:04 +01:00
Christian Brauner
f132528b1b
travis: remove libgnutls-dev
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-14 13:14:04 +01:00
Stéphane Graber
9268a9fb7b
Merge pull request #3291 from brauner/2020-03-11/fixes
...
bugfixes
2020-03-11 17:05:57 -04:00
Christian Brauner
f12584558b
utils: cleanup
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-11 19:24:02 +01:00
Christian Brauner
1dc51604cf
file_utils: cleanup macros and improvements
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-11 19:06:19 +01:00
Stéphane Graber
133d96089f
Merge pull request #3290 from brauner/2020-03-11/fixes
...
pidfds: switch infrastructure to rely on pidfds whenever possible
2020-03-11 11:34:34 -04:00
Christian Brauner
f3741b92fd
api-extensions: use correct headings
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-11 16:05:13 +01:00
Christian Brauner
712ff18d45
api-extensions: document "network_veth_router" api extension
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-11 16:03:09 +01:00
Christian Brauner
51c9ca2ceb
api-extensions: reflow "seccomp_allow_nesting" api extension
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-11 16:02:14 +01:00
Christian Brauner
b3883456f5
api-extensions: reflow "seccomp_notify" api extension
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-11 16:01:01 +01:00
Christian Brauner
cc08c0f322
api-extensions: reflow "cgroup2_devices" extensions
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-11 16:00:34 +01:00
Christian Brauner
15ba80d524
api-extensions: reflow "cgroup2" api extension
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-11 16:00:11 +01:00
Christian Brauner
77f5bdc240
api-extensions: add "pidfd" api extension
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-11 15:59:44 +01:00
Christian Brauner
08eccae8c1
lxccontainer: switch to pidfd polling when shutting down containers
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-11 15:59:33 +01:00
Christian Brauner
9837ee466d
lxccontainer: switch to pidfds whenever possible
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-11 15:59:33 +01:00
Christian Brauner
39293f2213
start: add ability to detect whether kernel supports pidfds
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-11 15:59:33 +01:00
Christian Brauner
fa3621ea82
lxccontainer: add init_pidfd() API extension
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-11 15:59:32 +01:00
Christian Brauner
746aab5184
commands: LXC_CMD_GET_INIT_PIDFD
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-11 15:59:32 +01:00