forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 407
Closed
Description
LXD: https://linuxcontainers.org/lxd/getting-started-cli/
When I try to start an lxd container on Ubuntu 16.04 I get the following error:
$ lxc start alpine
error: Error calling 'lxd forkstart alpine /var/lib/lxd/containers /var/log/lxd/alpine/lxc.conf': err='exit status 1'
lxc 20160216130334.855 ERROR lxc_conf - conf.c:setup_caps:2138 - Operation not permitted - failed to remove sys_time capability
lxc 20160216130334.856 ERROR lxc_conf - conf.c:lxc_setup:3973 - failed to drop capabilities
lxc 20160216130334.856 ERROR lxc_start - start.c:do_start:811 - Failed to setup container "alpine".
lxc 20160216130334.856 ERROR lxc_sync - sync.c:__sync_wait:57 - An error occurred in another process (expected sequence number 3)
lxc 20160216130334.915 ERROR lxc_start - start.c:__lxc_start:1346 - Failed to spawn container "alpine".
lxc 20160216130335.514 ERROR lxc_conf - conf.c:run_buffer:405 - Script exited with status 1.
lxc 20160216130335.514 ERROR lxc_start - start.c:lxc_fini:546 - Failed to run lxc.hook.post-stop for container "alpine".
My config:
# uname -a
Linux odr2 3.10.104-182 #1 SMP PREEMPT Tue Jan 31 23:12:12 UTC 2017 armv7l armv7l armv7l GNU/Linux
# cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
...
After some research I found the issue is as per this:
The solution is as per:
- https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/security/commoncap.c?id=160da84dbb39443fdade7151bc63a88f8e953077
- endlessm/linux-meson@fae8c07
- File /security/commoncap.c - cap_prctl_drop() - CAP_SETPCAP
Any chance this could be added to the next release of the Odroid linux kernel?
Metadata
Metadata
Assignees
Labels
No labels