1. 07 1月, 2020 1 次提交
  2. 17 12月, 2019 1 次提交
  3. 03 12月, 2019 1 次提交
  4. 12 11月, 2019 1 次提交
  5. 23 10月, 2019 1 次提交
  6. 21 10月, 2019 3 次提交
  7. 16 10月, 2019 1 次提交
  8. 15 10月, 2019 2 次提交
  9. 14 10月, 2019 2 次提交
  10. 12 10月, 2019 6 次提交
  11. 11 10月, 2019 2 次提交
  12. 10 9月, 2019 1 次提交
  13. 31 8月, 2019 1 次提交
  14. 30 8月, 2019 5 次提交
  15. 22 8月, 2019 1 次提交
    • M
      security: Don't increase XATTRs refcounter on failure · 6a2806fd
      Michal Privoznik 提交于
      If user has two domains, each have the same disk (configured for
      RW) but each runs with different seclabel then we deny start of
      the second domain because in order to do that we would need to
      relabel the disk but that would cut the first domain off. Even if
      we did not do that, qemu would fail to start because it would be
      unable to lock the disk image for the second time. So far, this
      behaviour is expected. But what is not expected is that we
      increase the refcounter in XATTRs and leave it like that.
      
      What happens is that when the second domain starts,
      virSecuritySetRememberedLabel() is called, and since there are
      XATTRs from the first domain it increments the refcounter and
      returns it (refcounter == 2 at this point). Then callers
      (virSecurityDACSetOwnership() and
      virSecuritySELinuxSetFileconHelper()) realize that refcounter is
      greater than 1 and desired seclabel doesn't match the one the
      disk image already has and an error is produced. But the
      refcounter is never decremented.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1740024Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NMartin Kletzander <mkletzan@redhat.com>
      6a2806fd
  16. 03 7月, 2019 6 次提交
  17. 03 4月, 2019 1 次提交
    • D
      security: avoid use of dirent d_type field · c1ac1e46
      Daniel P. Berrangé 提交于
      The d_type field cannot be assumed to be filled. Some filesystems, such
      as older XFS, will simply report DT_UNKNOWN.
      
      Even if the d_type is filled in, the use of it in the SELinux functions
      is dubious. If labelling all files in a directory there's no reason to
      skip things which are not regular files. We merely need to skip "." and
      "..", which is done by virDirRead() already.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      c1ac1e46
  18. 31 1月, 2019 1 次提交
  19. 21 12月, 2018 2 次提交
  20. 19 12月, 2018 1 次提交