Re: [PATCH 3/3] virtiofsd: Allow addition or removal of capabilities

2020-06-26 Thread Dr. David Alan Gilbert
* Stefan Hajnoczi (stefa...@redhat.com) wrote: > On Thu, Jun 25, 2020 at 05:29:29PM +0100, Dr. David Alan Gilbert (git) wrote: > > +/* > > + * The modcaps option is a colon separated list of caps, > > + * each preceded by either + or -. > > + */ > > +while (lo->modcaps) { > > +

Re: [PATCH 3/3] virtiofsd: Allow addition or removal of capabilities

2020-06-26 Thread Stefan Hajnoczi
On Thu, Jun 25, 2020 at 05:29:29PM +0100, Dr. David Alan Gilbert (git) wrote: > +/* > + * The modcaps option is a colon separated list of caps, > + * each preceded by either + or -. > + */ > +while (lo->modcaps) { > +capng_act_t action; > +int cap; > + > +

[PATCH 3/3] virtiofsd: Allow addition or removal of capabilities

2020-06-25 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Allow capabilities to be added or removed from the allowed set for the daemon; e.g. default: CapPrm: 88df CapEff: 88df -o modcaps=+sys_admin CapPrm: 882000df CapEff: 882000df -o modcaps=+sys_admin:-chown CapPrm: 8