1. 03 7月, 2019 1 次提交
    • M
      qemusecuritymock: Mock virProcessRunInFork · 0a9dcfab
      Michal Privoznik 提交于
      This test is beautiful. It checks if we haven't messed up
      refcounting on security labels (well, XATTRs where the original
      owner is stored). It does this by setting up tracking of XATTR
      setting/removing into a hash table, then calling
      qemuSecuritySetAllLabel() followed by immediate
      qemuSecurityRestoreAllLabel() at which point, the hash table must
      be empty. The test so beautifully written that no matter
      what you do it won't fail. The reason is that all seclabel work
      is done in a child process. Therefore, the hash table in the
      parent is never changed and thus always empty.
      
      There are two reasons for forking (only one of them makes sense
      here though):
      
      1) namespaces - when chown()-ing a file we have to fork() and
      make the child enter desired namespace,
      2) locking - because of exclusive access to XATTRs we lock the
      files we chown() and this is done in a fork (see 20786092 for
      more info).
      
      While we want to fork in real world, we don't want that in a test
      suite. Override virProcessRunInFork() then.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      0a9dcfab
  2. 28 6月, 2019 2 次提交
  3. 27 6月, 2019 1 次提交
    • D
      Revert "error: Add VIR_ERR_DEPRECATED error code" · bd17012f
      Daniel P. Berrangé 提交于
      This reverts commit 226094fb.
      
      A deprecation is a warning to something that use of a feature is
      being discouraged. By definition it is not an error condition to
      continue to use a deprecated feature.
      
      A VIR_ERR_DEPRECATED constant thus makes no conceptual sense. For
      features which are entirely absent we already document that the
      VIR_ERR_NO_SUPPORT code will be used. There is no need to distinguish
      between a feature which never existed and a feature which previously
      existed and was since removed.
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      bd17012f
  4. 26 6月, 2019 9 次提交
  5. 25 6月, 2019 1 次提交
  6. 22 6月, 2019 1 次提交
  7. 21 6月, 2019 4 次提交
  8. 20 6月, 2019 9 次提交
  9. 19 6月, 2019 12 次提交