libvirt/po
Daniel P. Berrange d6623003c6 Refactor the security drivers to simplify usage
The current security driver usage requires horrible code like

    if (driver->securityDriver &&
        driver->securityDriver->domainSetSecurityHostdevLabel &&
        driver->securityDriver->domainSetSecurityHostdevLabel(driver->securityDriver,
                                                              vm, hostdev) < 0)

This pair of checks for NULL clutters up the code, making the driver
calls 2 lines longer than they really need to be. The goal of the
patchset is to change the calling convention to simply

  if (virSecurityManagerSetHostdevLabel(driver->securityDriver,
                                        vm, hostdev) < 0)

The first check for 'driver->securityDriver' being NULL is removed
by introducing a 'no op' security driver that will always be present
if no real driver is enabled. This guarentees driver->securityDriver
!= NULL.

The second check for 'driver->securityDriver->domainSetSecurityHostdevLabel'
being non-NULL is hidden in a new abstraction called virSecurityManager.
This separates the driver callbacks, from main internal API. The addition
of a virSecurityManager object, that is separate from the virSecurityDriver
struct also allows for security drivers to carry state / configuration
information directly. Thus the DAC/Stack drivers from src/qemu which
used to pull config from 'struct qemud_driver' can now be moved into
the 'src/security' directory and store their config directly.

* src/qemu/qemu_conf.h, src/qemu/qemu_driver.c: Update to
  use new virSecurityManager APIs
* src/qemu/qemu_security_dac.c,  src/qemu/qemu_security_dac.h
  src/qemu/qemu_security_stacked.c, src/qemu/qemu_security_stacked.h:
  Move into src/security directory
* src/security/security_stack.c, src/security/security_stack.h,
  src/security/security_dac.c, src/security/security_dac.h: Generic
  versions of previous QEMU specific drivers
* src/security/security_apparmor.c, src/security/security_apparmor.h,
  src/security/security_driver.c, src/security/security_driver.h,
  src/security/security_selinux.c, src/security/security_selinux.h:
  Update to take virSecurityManagerPtr object as the first param
  in all callbacks
* src/security/security_nop.c, src/security/security_nop.h: Stub
  implementation of all security driver APIs.
* src/security/security_manager.h, src/security/security_manager.c:
  New internal API for invoking security drivers
* src/libvirt.c: Add missing debug for security APIs
2011-01-10 18:10:52 +00:00
..
af.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
am.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
ar.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
as.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
be.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
bg.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
bn_IN.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
bn.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
bs.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
ca.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
cs.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
cy.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
da.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
de.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
el.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
en_GB.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
es.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
et.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
eu_ES.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
fa.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
fi.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
fr.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
gl.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
gu.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
he.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
hi.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
hr.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
hu.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
hy.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
id.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
is.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
it.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
ja.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
ka.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
kn.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
ko.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
ku.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
libvirt.pot Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
lo.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
lt.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
lv.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
mk.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
ml.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
mr.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
ms.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
my.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
nb.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
nl.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
nn.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
nso.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
or.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
pa.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
pl.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
POTFILES.in Refactor the security drivers to simplify usage 2011-01-10 18:10:52 +00:00
pt_BR.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
pt.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
ro.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
ru.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
si.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
sk.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
sl.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
sq.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
sr.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
sr@latin.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
sv.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
ta.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
te.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
th.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
tr.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
uk.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
ur.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
vi.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
zh_CN.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
zh_TW.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00
zu.po Release of libvirt-0.8.7 2011-01-04 03:37:17 +01:00