[libvirt] [PATCHv2 10/15] security: add new virSecurityManagerSetChildProcessLabel API

Eric Blake eblake at redhat.com
Wed Feb 13 00:32:27 UTC 2013


On 02/12/2013 01:15 PM, Laine Stump wrote:
> The existing virSecurityManagerSetProcessLabel() API is designed so
> that it must be called after forking the child process, but before
> exec'ing the child. Due to the way the virCommand API works, that
> means it needs to be put in a "hook" function that virCommand is told
> to call out to at that time.
> 

> 
> With this new API in place, we will be able to remove
> virSecurityManagerSetProcessLabel() from any virCommand pre-exec
> hooks.
> 
> (Unfortunately, the LXC driver uses clone() rather than virCommand, so
> it can't take advantage of this new security driver API, meaning that
> we need to keep around the older virSecurityManagerSetProcessLabel(),
> at least for now.)
> ---
> Change from V1: rebased, Copyright dates simplified.

ACK.

-- 
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/20130212/1f9d076f/attachment-0001.sig>


More information about the libvir-list mailing list