All of lore.kernel.org
 help / color / mirror / Atom feed
* lxc-start: Invalid argument - failed to remove CAP_SYS_BOOT capability
@ 2009-11-10  6:37 Michael Tokarev
       [not found] ` <4AF90A2A.2010601-Gdu+ltImwkhes2APU0mLOQ@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Tokarev @ 2009-11-10  6:37 UTC (permalink / raw)
  To: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

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.

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!

/mjt
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-10 20:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.