mirror of https://gitee.com/openkylin/libvirt.git
security: Introduce virSecurityManagerGetDriver()
This function returns the name of the secdriver. Since the name is invariant we don't really need to lock the manager - it won't change. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
81dbceea65
commit
3f968a8706
|
@ -332,6 +332,13 @@ virSecurityManagerGetVirtDriver(virSecurityManagerPtr mgr)
|
|||
}
|
||||
|
||||
|
||||
const char *
|
||||
virSecurityManagerGetDriver(virSecurityManagerPtr mgr)
|
||||
{
|
||||
return mgr->drv->name;
|
||||
}
|
||||
|
||||
|
||||
const char *
|
||||
virSecurityManagerGetDOI(virSecurityManagerPtr mgr)
|
||||
{
|
||||
|
|
|
@ -80,6 +80,7 @@ void virSecurityManagerTransactionAbort(virSecurityManagerPtr mgr);
|
|||
|
||||
void *virSecurityManagerGetPrivateData(virSecurityManagerPtr mgr);
|
||||
|
||||
const char *virSecurityManagerGetDriver(virSecurityManagerPtr mgr);
|
||||
const char *virSecurityManagerGetVirtDriver(virSecurityManagerPtr mgr);
|
||||
const char *virSecurityManagerGetDOI(virSecurityManagerPtr mgr);
|
||||
const char *virSecurityManagerGetModel(virSecurityManagerPtr mgr);
|
||||
|
|
Loading…
Reference in New Issue