iso file ownership not restored after usage
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
This is a fork of bug 1784001 and similar to bug 691590 but only seems to be for .iso images.
We've got reports that when using libvirt to start guests directly or through virt-manager that .iso files do not change back permissions.
This is related to (but we do not want to change the default as it makes many many use cases worse doing that):
/etc/libvirt/
# Whether libvirt should dynamically change file ownership
# to match the configured user/group above. Defaults to 1.
# Set to 0 to disable file ownership changes.
#dynamic_
Steps:
1. download ISO
2. move the iso to the common path of /var/lib/
3. create a guest using that ISO (e.g. in virt-manager)
4. libvirt will modify file ownership so that it is actually usable by the guest (as it runs under a restricted user) = Good
5. After shutting down the guest libvirt would be expected to turn back the user permissions and it does so for image files, but it seems not for .iso files
Example after doing the above:
$ sudo ls -laF /var/lib/
total 14064016
-rw-rw-r-- 1 libvirt-qemu kvm 3826831360 Aug 10 18:21 ubuntu-
-rw------- 1 root root 10739318784 Jan 9 16:22 ubuntu22.
You see the qcow is back from libvirt-qemu:kvm to root:root.
But the .iso file is neither on the user, nor on root (which it might be from copying it here), instead it seems not changed back at all.
Next: reproduce with some focus and analyze in detail.
tags: | added: server-todo |
Changed in libvirt (Ubuntu): | |
assignee: | nobody → Michał Małoszewski (michal-maloszewski99) |
Changed in libvirt (Ubuntu Bionic): | |
assignee: | nobody → Michał Małoszewski (michal-maloszewski99) |
Changed in libvirt (Ubuntu Focal): | |
assignee: | nobody → Michał Małoszewski (michal-maloszewski99) |
Changed in libvirt (Ubuntu Jammy): | |
assignee: | nobody → Michał Małoszewski (michal-maloszewski99) |
Changed in libvirt (Ubuntu Kinetic): | |
assignee: | nobody → Michał Małoszewski (michal-maloszewski99) |
Changed in libvirt (Ubuntu Lunar): | |
assignee: | nobody → Michał Małoszewski (michal-maloszewski99) |
Changed in libvirt (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in libvirt (Ubuntu Focal): | |
status: | New → In Progress |
Changed in libvirt (Ubuntu Jammy): | |
status: | New → In Progress |
Changed in libvirt (Ubuntu Kinetic): | |
status: | New → In Progress |
Changed in libvirt (Ubuntu Lunar): | |
status: | New → In Progress |
Changed in libvirt (Ubuntu): | |
status: | Confirmed → In Progress |
Status changed to 'Confirmed' because the bug affects multiple users.