From: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
To: Michael Tokarev <mjt-XAri/EZa3C4vJsYlp49lxw@public.gmane.org>
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
LXC Development
<lxc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: lxc-start: Invalid argument - failed to remove CAP_SYS_BOOT capability
Date: Tue, 10 Nov 2009 21:03:52 +0100 [thread overview]
Message-ID: <4AF9C728.5060300@free.fr> (raw)
In-Reply-To: <4AF90A2A.2010601-Gdu+ltImwkhes2APU0mLOQ@public.gmane.org>
Michael Tokarev wrote:
> The message in $subj is displayed (and the utility fails) when
> trying to start a container on any of my systems. I traced it
> to failing prctl(PR_CAPBSET_DROP, CAP_SYS_BOOT). According to
> the manpage:
>
> The call fails with the error: EPERM if the calling thread does
> not have the CAP_SETPCAP; EINVAL if arg2 does not represent a
> valid capability; or EINVAL if file capabilities are not
> enabled in the kernel, in which case bounding sets are not sup‐
> ported.
>
> and the corresponding kernel config is SECURITY_FILE_CAPABILITIES,
> which is in "Security options" menu named "File POSIX Capabilities".
>
> This is a config option that's not checked by lxc-checkconfig, but
> since not setting it entirely prevents lxc from working, I think it
> should be checked too. In any way, I don't think I've seen any
> references to that option anywhere.
>
Maybe you missed it or you are using a lxc version < 0.6.3.
It should be the last line of the output of lxc-checkconfig in the
'Misc' section.
The man page of lxc gives the requirement for the kernel:
...
REQUIREMENTS
The lxc relies on a set of functionalies provided by the kernel
which needs to be active. Depending of the missing functionalities
the lxc will work with a restricted number of functionalities or
will simply fails.
The following list gives the kernel features to be enabled in the
kernel to have the full features container:
* General setup
* Control Group support
-> Namespace cgroup subsystem
-> Freezer cgroup subsystem
-> Cpuset support
-> Simple CPU accounting cgroup subsystem
-> Resource counters
-> Memory resource controllers for Control Groups
* Group CPU scheduler
-> Basis for grouping tasks (Control Groups)
* Namespaces support
-> UTS namespace
-> IPC namespace
-> User namespace
-> Pid namespace
-> Network namespace
* Security options
-> File POSIX Capabilities
...
> So here it goes, if not only for reference so that others who will
> come to this issue in the future will know what to do.
>
Thanks.
-- Daniel
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
prev parent reply other threads:[~2009-11-10 20:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-10 6:37 lxc-start: Invalid argument - failed to remove CAP_SYS_BOOT capability Michael Tokarev
[not found] ` <4AF90A2A.2010601-Gdu+ltImwkhes2APU0mLOQ@public.gmane.org>
2009-11-10 20:03 ` Daniel Lezcano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AF9C728.5060300@free.fr \
--to=daniel.lezcano-ganu6spqydw@public.gmane.org \
--cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=lxc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=mjt-XAri/EZa3C4vJsYlp49lxw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.