libvirt/src/security
Marcelo Cerri 60469dd10f 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".
2012-10-03 12:15:03 +02:00
..
security_apparmor.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
security_apparmor.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
security_dac.c security: also parse user/group names instead of just IDs for DAC labels 2012-10-03 12:15:03 +02:00
security_dac.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
security_driver.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
security_driver.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
security_manager.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
security_manager.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
security_nop.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
security_nop.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
security_selinux.c Add <seclabel> to character devices. 2012-09-21 13:43:47 +01:00
security_selinux.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
security_stack.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
security_stack.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
virt-aa-helper.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00