[arch-general] Linux Kernel capabilities
Patrick Burroughs (Celti)
celti at celti.name
Fri Jul 17 10:41:51 UTC 2015
On Fri, 17 Jul 2015 12:20:39 +0200
arnaud gaboury <arnaud.gaboury at gmail.com> wrote:
> I build my own kernel with ABS.
>
> To allow my nspawn container to load kernel modules, I must add this
> to nspawn unit file:
> --capability=CAP_SYS_MODULE.
>
> Unfortunately, it doesn't work and needed modules are not loaded from
> container but only from host. I realized there is no #define
> CAP_SYS_MODULE
> in /usr/lib/modules/4.1.2-2-ARCH/build/include/linux/capability.h.
>
> Is this specific to the arch kernel ?
>
> Thank you for hints.
>
It was moved to include/uapi/linux/capability.h recentlyish.
As for your actual issue, SYS_CAP_MODULE isn't listed in the valid
capabilities for --capability in the systemd-nspawn manpage. Are you
perhaps confusing options?
Regards,
~Celti
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20150717/ee50a426/attachment.asc>
More information about the arch-general
mailing list