security: also parse user/group names instead of just IDs for DAC labels
security: also parse user/group names instead of just IDs for DAC labels

The DAC driver is missing parsing of group and user names for DAC labels
and currently just parses uid and gid. This patch extends it to support
names, so the following security label definition is now valid:

  <seclabel type='static' model='dac' relabel='yes'>
      <label>qemu:qemu</label>
      <imagelabel>qemu:qemu</imagelabel>
  </seclabel>

When it tries to parse an owner or a group, it first tries to resolve it as
a name, if it fails or it's an invalid user/group name then it tries to
parse it as an UID or GID. A leading '+' can also be used for both owner and
group to force it to be parsed as IDs, so the following example is also
valid:

  <seclabel type='static' model='dac' relabel='yes'>
      <label>+101:+101</label>
      <imagelabel>+101:+101</imagelabel>
  </seclabel>

This ensures that UID 101 and GUI 101 will be used instead of an user or
group named "101".

crobinso/libvirt,jardasgit/libvirt,trainstack/libvirt,eskultety/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,andreabolognani/libvirt,novel/fbsd-libvirt,zippy2/libvirt,zippy2/libvirt,emaste/libvirt,libvirt/libvirt,taget/libvirt,crobinso/libvirt,datto/libvirt,olafhering/libvirt,agx/libvirt,novel/fbsd-libvirt,warewolf/libvirt,datto/libvirt,warewolf/libvirt,iam-TJ/libvirt,zhlcindy/libvirt-1.1.4-maintain,iam-TJ/libvirt,rlaager/libvirt,olafhering/libvirt,bjzhang/libvirt,jeckersb/libvirt,emaste/libvirt,nertpinx/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,siboulet/libvirt-openvz,jeckersb/libvirt,eskultety/libvirt,elmarco/libvirt,novel/fbsd-libvirt,trainstack/libvirt,shugaoye/libvirt,jeckersb/libvirt,emaste/libvirt,VenkatDatta/libvirt,libvirt/libvirt,zippy2/libvirt,bjzhang/libvirt,elmarco/libvirt,cbosdo/libvirt,olafhering/libvirt,libvirt/libvirt,trainstack/libvirt,VenkatDatta/libvirt,olafhering/libvirt,agx/libvirt,novel/fbsd-libvirt,jeckersb/libvirt,agx/libvirt,iam-TJ/libvirt,warewolf/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,jfehlig/libvirt,elmarco/libvirt,cbosdo/libvirt,rlaager/libvirt,novel/fbsd-libvirt,emaste/libvirt,bjzhang/libvirt,cbosdo/libvirt,crobinso/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,novel/fbsd-libvirt,cbosdo/libvirt,warewolf/libvirt,jardasgit/libvirt,agx/libvirt,siboulet/libvirt-openvz,trainstack/libvirt,jeckersb/libvirt,shugaoye/libvirt,datto/libvirt,jeckersb/libvirt,bjzhang/libvirt,jardasgit/libvirt,warewolf/libvirt,shugaoye/libvirt,trainstack/libvirt,crobinso/libvirt,iam-TJ/libvirt,nertpinx/libvirt,jfehlig/libvirt,siboulet/libvirt-openvz,eskultety/libvirt,emaste/libvirt,jardasgit/libvirt,novel/fbsd-libvirt,siboulet/libvirt-openvz,zhlcindy/libvirt-1.1.4-maintain,novel/fbsd-libvirt,taget/libvirt,emaste/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,libvirt/libvirt,taget/libvirt,eskultety/libvirt,iam-TJ/libvirt,zhlcindy/libvirt-1.1.4-maintain,warewolf/libvirt,andreabolognani/libvirt,shugaoye/libvirt,VenkatDatta/libvirt,jeckersb/libvirt,shugaoye/libvirt,nertpinx/libvirt,elmarco/libvirt,rlaager/libvirt,zhlcindy/libvirt-1.1.4-maintain,zhlcindy/libvirt-1.1.4-maintain,trainstack/libvirt,cbosdo/libvirt,eskultety/libvirt,warewolf/libvirt,rlaager/libvirt,novel/fbsd-libvirt,zippy2/libvirt,bjzhang/libvirt,iam-TJ/libvirt,nertpinx/libvirt,elmarco/libvirt,datto/libvirt,rlaager/libvirt,iam-TJ/libvirt,trainstack/libvirt,taget/libvirt,emaste/libvirt,jfehlig/libvirt,agx/libvirt,VenkatDatta/libvirt,taget/libvirt,datto/libvirt,siboulet/libvirt-openvz,nertpinx/libvirt