• M
    security_manager: Load lock plugin on init · 3e26b476
    Michal Privoznik 提交于
    Now that we know what metadata lock manager user wishes to use we
    can load it when initializing security driver. This is achieved
    by adding new argument to virSecurityManagerNewDriver() and
    subsequently to all functions that end up calling it.
    
    The cfg.mk change is needed in order to allow lock_manager.h
    inclusion in security driver without 'syntax-check' complaining.
    This is safe thing to do as locking APIs will always exist (it's
    only backend implementation that changes). However, instead of
    allowing the include for all other drivers (like cpu, network,
    and so on) allow it only for security driver. This will still
    trigger the error if including from other drivers.
    Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
    Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
    3e26b476
lxc_driver.c 163.4 KB