Why are created files not inheriting ACLs from according to the default ACLs.

JanFisherGG

New Member
Joined
Jul 8, 2022
Messages
1
Reaction score
0
Credits
14
When I use virt-clone to clone a virtual machine disk image, the resulting image doesn't seem to inherit the default ACL from the parent folder. It does inherit the ACL but the "effective ACL" is empty. Does anyone know the reason for that and how could I achieve inheriting the "effective ACL" too?

The example is on RHEL 9 but it seems to happen regardless of distribution.

Bash:
[[email protected] images]# setfacl -m d:johnd:rwx /var/lib/libvirt/images/
[[email protected] images]# getfacl /var/lib/libvirt/images/
getfacl: Removing leading '/' from absolute path names
# file: var/lib/libvirt/images/
# owner: root
# group: root
user::rwx
group::--x
other::--x
default:user::rwx
default:user:johnd:rwx
default:group::--x
default:mask::rwx
default:other::--x

[[email protected] ~]$ virt-clone --connect qemu:///system --original base --auto-clone --name clone1
Allocating 'clone1.qcow2'                                                                                                                                              | 5.0 GB  00:00:08    

Clone 'clone1' created successfully.


[[email protected] images]# ls -l /var/lib/libvirt/images/
total 7353916
-rw-r-----. 1 root root 5369757696 Aug  3 21:10 base.qcow2
-rw-------+ 1 root root 2159083520 Aug  3 21:10 clone1.qcow2



[[email protected] images]# getfacl clone1.qcow2
# file: clone1.qcow2
# owner: root
# group: root
user::rw-
user:johnd:rwx            #effective:---
group::--x            #effective:---
mask::---
other::---
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Latest posts

Top