Re: Linux Kernel capabilities

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Not at all, but you are right, it is not mentioned in systemd-nspawn man.
But according to Mr Systemd, it is a valid option.

On Fri, Jul 17, 2015, 12:42 PM Patrick Burroughs (Celti) <celti@xxxxxxxxxx>
wrote:

> On Fri, 17 Jul 2015 12:20:39 +0200
> arnaud gaboury <arnaud.gaboury@xxxxxxxxx> 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
>


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux