[libvirt] [PATCH 2/5] util: allow using virCommandAllowCap with setuid helpers

Eric Blake eblake at redhat.com
Thu Apr 18 20:54:13 UTC 2013


On 03/27/2013 04:46 PM, Eric Blake wrote:
> On 03/25/2013 08:25 AM, Paolo Bonzini wrote:
>> When running unprivileged, virSetUIDGIDWithCaps will fail because it
>> tries to add the requested capabilities to the permitted and effective
>> sets.
>>
>> Detect this case, and invoke the child with cleared permitted and
>> effective sets.  If it is a setuid program, it will get them.
>>
>> Some care is needed also because you cannot drop capabilities from the
>> bounding set without CAP_SETPCAP.  Because of that, ignore errors from
>> setting the bounding set.
> 

> As written, the patch makes sense.

ACK and pushed.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130418/508f1e23/attachment-0001.sig>


More information about the libvir-list mailing list