1. 20 2月, 2018 1 次提交
    • D
      conf: add enum constants for default controller models · a302480d
      Daniel P. Berrangé 提交于
      The controller model is slightly unusual in that the default value is
      -1, not 0. As a result the default value is not covered by any of the
      existing enum cases. This in turn means that any switch() statements
      that think they have covered all cases, will in fact not match the
      default value at all. In the qemuDomainDeviceCalculatePCIConnectFlags()
      method this has caused a serious mistake where we fallthrough from the
      SCSI controller case, to the VirtioSerial controller case, and from
      the USB controller case to the IDE controller case.
      
      By adding explicit enum constant starting at -1, we can ensure switches
      remember to handle the default case.
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      a302480d
  2. 19 2月, 2018 1 次提交
  3. 14 2月, 2018 1 次提交
  4. 13 2月, 2018 6 次提交
  5. 10 2月, 2018 2 次提交
  6. 09 2月, 2018 2 次提交
  7. 07 2月, 2018 2 次提交
  8. 06 2月, 2018 5 次提交
  9. 05 2月, 2018 1 次提交
  10. 03 2月, 2018 10 次提交
  11. 01 2月, 2018 1 次提交
  12. 22 1月, 2018 2 次提交
  13. 18 1月, 2018 1 次提交
  14. 10 1月, 2018 1 次提交
    • C
      security: full path option for DomainSetPathLabel · a5486e57
      Christian Ehrhardt 提交于
      virSecurityManagerDomainSetPathLabel is used to make a path known
      to the security modules, but today is used interchangably for
       - paths to files/dirs to be accessed directly
       - paths to a dir, but the access will actually be to files therein
      
      Depending on the security module it is important to know which of
      these types it will be.
      
      The argument allowSubtree augments the call to the implementations of
      DomainSetPathLabel that can - per security module - decide if extra
      actions shall be taken.
      
      For now dac/selinux handle this as before, but apparmor will make
      use of it to add a wildcard to the path that was passed.
      Signed-off-by: NChristian Ehrhardt <christian.ehrhardt@canonical.com>
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      a5486e57
  15. 09 1月, 2018 1 次提交
  16. 08 1月, 2018 1 次提交
  17. 05 1月, 2018 1 次提交
  18. 03 1月, 2018 1 次提交