libvirt/qemud
Daniel P. Berrange 47e7a258db Fix UUID handling in secrets/storage encryption APIs
Convert all the secret/storage encryption APIs / wire format to
handle UUIDs in raw format instead of non-canonical printable
format. Guarentees data format correctness.

* docs/schemas/storageencryption.rng: Make UUID mandatory for a secret
  and validate fully
* docs/schemas/secret.rng: Fully validate UUID
* include/libvirt/libvirt.h, include/libvirt/libvirt.h.in, Add
  virSecretLookupByUUID and virSecretGetUUID. Make
  virSecretGetUUIDString follow normal API design pattern
* python/generator.py: Skip generation of virSecretGetUUID,
  virSecretGetUUIDString and virSecretLookupByUUID
* python/libvir.c, python/libvirt-python-api.xml: Manual impl
  of virSecretGetUUID,virSecretGetUUIDString and virSecretLookupByUUID
* qemud/remote.c: s/virSecretLookupByUUIDString/virSecretLookupByUUID/
  Fix get_nonnull_secret/make_nonnull_secret to use unsigned char
* qemud/remote_protocol.x: Fix remote_nonnull_secret to use a
  remote_uuid instead of remote_nonnull_string for UUID field.
  Rename REMOTE_PROC_SECRET_LOOKUP_BY_UUID_STRING to
  REMOTE_PROC_SECRET_LOOKUP_BY_UUID_STRING and make it take an
  remote_uuid  value
* qemud/remote_dispatch_args.h, qemud/remote_dispatch_prototypes.h,
  qemud/remote_dispatch_ret.h, qemud/remote_dispatch_table.h,
  qemud/remote_protocol.c, qemud/remote_protocol.h: Re-generate
* src/datatypes.h, src/datatypes.c: Store UUID in raw format instead
  of printable. Change virGetSecret to use raw format UUID
* src/driver.h: Rename virDrvSecretLookupByUUIDString to
  virDrvSecretLookupByUUID and use raw format UUID
* src/libvirt.c: Add virSecretLookupByUUID and virSecretGetUUID
  and re-implement virSecretLookupByUUIDString and
  virSecretGetUUIDString in terms of those
* src/libvirt_public.syms: Add virSecretLookupByUUID and
  virSecretGetUUID
* src/remote_internal.c: Rename remoteSecretLookupByUUIDString
  to remoteSecretLookupByUUID. Fix typo in args for
  remoteSecretDefineXML impl. Use raw UUID format for
  get_nonnull_secret and make_nonnull_secret
* src/storage_encryption_conf.c, src/storage_encryption_conf.h:
  Storage UUID in raw format, and require it to be present in
  XML. Use UUID parser to validate.
* secret_conf.h, secret_conf.c: Generate a UUID if none is provided.
  Storage UUID in raw format.
* src/secret_driver.c: Adjust to deal with raw UUIDs. Save secrets
  in a filed with printable UUID, instead of base64 UUID.
* src/virsh.c: Adjust for changed public API contract of
  virSecretGetUUIDString.
* src/storage_Backend.c: DOn't undefine secret we just generated
  upon successful volume creation. Fix to handle raw UUIDs. Generate
  a non-clashing UUID
* src/qemu_driver.c: Change to use lookupByUUID instead of
  lookupByUUIDString
2009-09-14 17:48:29 +01:00
..
.gitignore ignore generated libvirtd.logrotate. 2009-01-07 17:09:06 +00:00
default-network.xml Improve support for virtual networking 2007-03-13 22:43:22 +00:00
dispatch.c Rename 'direction' to 'type' in remote_message_header 2009-07-16 16:09:48 +01:00
dispatch.h Fix misc Win32 compile warnings 2009-07-23 16:07:32 +01:00
event.c Avoid polling on FDs with no events enabled 2009-09-03 18:06:16 +01:00
event.h Make event loop thread safe & re-entrant safe 2008-12-04 22:14:15 +00:00
libvirtd_qemu.aug Support configuration of huge pages in guests 2009-09-03 13:51:55 +01:00
libvirtd.aug libvirtd: new config-file option: unix_sock_dir 2009-02-09 17:52:38 +00:00
libvirtd.conf Various logging cleanups in code and doc 2009-07-01 11:21:15 +00:00
libvirtd.init.in Improve init.d file headers 2009-05-07 07:34:05 +00:00
libvirtd.logrotate.in logrotate qemu monitor logs 2008-12-09 20:22:39 +00:00
libvirtd.policy-0 Support new PolicyKit 1.0 API 2009-08-25 11:59:14 +01:00
libvirtd.policy-1 Support new PolicyKit 1.0 API 2009-08-25 11:59:14 +01:00
libvirtd.sasl Remove all trailing blanks; turn on the rule to detect them. 2008-02-05 19:27:37 +00:00
libvirtd.sysconf Initial integration of SASL authentication, working for Kerberos only 2007-12-05 15:24:15 +00:00
Makefile.am Support new PolicyKit 1.0 API 2009-08-25 11:59:14 +01:00
mdns.c mdns.c: remove dead initialization 2009-09-03 18:04:23 +02:00
mdns.h * NEWS virsh.1 docs//* include/libvirt/libvirt.h[.in] qemud/mdns.h 2008-03-17 10:27:31 +00:00
qemud.c Local file implementation of secret driver API 2009-09-11 14:54:46 +01:00
qemud.h Support new PolicyKit 1.0 API 2009-08-25 11:59:14 +01:00
remote_dispatch_args.h Fix UUID handling in secrets/storage encryption APIs 2009-09-14 17:48:29 +01:00
remote_dispatch_prototypes.h Fix UUID handling in secrets/storage encryption APIs 2009-09-14 17:48:29 +01:00
remote_dispatch_ret.h Fix UUID handling in secrets/storage encryption APIs 2009-09-14 17:48:29 +01:00
remote_dispatch_table.h Fix UUID handling in secrets/storage encryption APIs 2009-09-14 17:48:29 +01:00
remote_generate_stubs.pl Change code generator to give async event messages their own postfix 2009-07-16 16:09:47 +01:00
remote_protocol.c Fix UUID handling in secrets/storage encryption APIs 2009-09-14 17:48:29 +01:00
remote_protocol.h Fix UUID handling in secrets/storage encryption APIs 2009-09-14 17:48:29 +01:00
remote_protocol.x Fix UUID handling in secrets/storage encryption APIs 2009-09-14 17:48:29 +01:00
remote.c Fix UUID handling in secrets/storage encryption APIs 2009-09-14 17:48:29 +01:00
remote.h Split generic RPC message dispatch code out from remote protocol API handlers 2009-07-16 16:09:41 +01:00
rpcgen_fix.pl Solaris portability for RPC code data types 2009-01-28 21:33:56 +00:00
test_libvirtd_qemu.aug Support configuration of huge pages in guests 2009-09-03 13:51:55 +01:00
test_libvirtd.aug Support VNC password setting in QEMU driver 2009-01-29 17:50:00 +00:00
THREADING.txt remove all trailing blank lines 2009-07-16 15:06:42 +02:00