Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-7124

[virt-clone] cloned qcow2 images don't inherit ACLs according to the default ACLs

    • None
    • Moderate
    • rhel-sst-virtualization
    • ssg_virtualization
    • 2
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:
      Using virt-clone to clone a virtual machine disk image leaves the cloned image with "empty" effective ACLs.

      Version-Release number of selected component (if applicable):
      Linux myhost1 5.14.0-70.13.1.el9_0.x86_64 #1 SMP PREEMPT Thu Apr 14 12:42:38 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux

      Red Hat Enterprise Linux release 9.0 (Plow)

      acl.x86_64 2.3.1-3.el9
      libacl.x86_64 2.3.1-3.el9

      How reproducible:
      Fully

      Steps to Reproduce:
      [root@myhost1 images]# setfacl -m d:johnd:rwx /var/lib/libvirt/images/
      [johnd@myhost1 ~]$ virt-clone --connect qemu:///system --original base --auto-clone --name clone1
      [root@myhost1 images]# getfacl clone1.qcow2

      Actual results:
      [root@myhost1 images]# getfacl clone1.qcow2

      1. file: clone1.qcow2
      2. owner: root
      3. group: root
        user::rw-
        user:johnd:rwx #effective:---
        group::--x #effective:---
        mask::---
        other::---

      Expected results:
      [root@myhost1 images]# getfacl clone1.qcow2

      1. file: clone1.qcow2
      2. owner: root
      3. group: root
        user::rw-
        user:johnd:rwx
        group::--x
        mask::---
        other::---

              mkletzan@redhat.com Martin Kletzander
              janfishergg Jan Czajkowski (Inactive)
              Martin Kletzander Martin Kletzander
              Hongzhou Liu Hongzhou Liu
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated: