From: Luis Chamberlain <mcgrof@kernel.org>
To: Daniel Gomez <da.gomez@kernel.org>
Cc: kdevops@lists.linux.dev, Daniel Gomez <da.gomez@samsung.com>
Subject: Re: [PATCH] bringup_guestfs: fix group permissions for disks
Date: Wed, 23 Apr 2025 12:51:56 -0700 [thread overview]
Message-ID: <aAlE3FmAJOsK77l9@bombadil.infradead.org> (raw)
In-Reply-To: <20250423-fix-permissions-disks-v1-1-c440f83507f2@samsung.com>
On Wed, Apr 23, 2025 at 07:34:48PM +0000, Daniel Gomez wrote:
> From: Daniel Gomez <da.gomez@samsung.com>
>
> Ensure libvirt-qemu group permissions are set to qemu image disks when
> on libvirt system uri.
>
> Permissions before:
> namei --long /var/lib/libvirt/images/kdevops/guestfs/debian13/extra0.raw
>
> f: /var/lib/libvirt/images/kdevops/guestfs/debian13/extra0.raw
> drwxr-xr-x root root /
> drwxr-xr-x root root var
> drwxr-xr-x root root lib
> drwxr-xr-x root libvirt-qemu libvirt
> drwxrwxr-x root libvirt-qemu images
> drwxrwxr-x root libvirt-qemu kdevops
> drwxrwxr-x root libvirt-qemu guestfs
> drwxrwxr-x dagomez dagomez debian13
> -rw-rw-r-- dagomez dagomez extra0.raw
>
> Permissions after:
>
> f: /var/lib/libvirt/images/kdevops/guestfs/debian13/extra0.raw
> drwxr-xr-x root root /
> drwxr-xr-x root root var
> drwxr-xr-x root root lib
> drwxr-xr-x root libvirt-qemu libvirt
> drwxrwsr-x root libvirt-qemu images
> drwxrwsr-x root libvirt-qemu kdevops
> drwxrwsr-x root libvirt-qemu guestfs
> drwxrwsr-x dagomez libvirt-qemu debian13
> -rw-rw-r-- dagomez libvirt-qemu extra0.raw
>
> libvirt permission error:
>
> make bringup
> {...}
> .//scripts/bringup_guestfs.sh
> User dagomez is part of the libvirt-qemu group.
> [ 0.0] Examining the guest ...
> {...}
> [ 5.1] SELinux relabelling
> [ 5.1] Performing "lvm-uuids" ...
> Formatting '/var/lib/libvirt/images/kdevops/guestfs/debian13/extra0.raw',
> fmt=raw size=107374182400
> Formatting '/var/lib/libvirt/images/kdevops/guestfs/debian13/extra1.raw',
> fmt=raw size=107374182400
> Formatting '/var/lib/libvirt/images/kdevops/guestfs/debian13/extra2.raw',
> fmt=raw size=107374182400
> Formatting '/var/lib/libvirt/images/kdevops/guestfs/debian13/extra3.raw',
> fmt=raw size=107374182400
> Domain 'debian13' defined from .//guestfs/debian13/debian13.xml
>
> error: Failed to start domain 'debian13'
> error: internal error: QEMU unexpectedly closed the monitor
> (vm='debian13'): 2025-04-23T14:17:23.707308Z qemu-system-x86_64: -device
> virtio-blk-pci,drive=drv0,id=virtio-drv0,serial=kdevops0,bus=
> pcie-port-for-virtio-0,addr=0x0,iothread=kdevops-virtio-iothread-0,
> logical_block_size=512,physical_block_size=512: Could not open
> '/var/lib/libvirt/images/kdevops/guestfs/debian13/extra0.raw':
> Permission denied
>
> Failed to start debian13
> make: *** [scripts/guestfs.Makefile:80: bringup_guestfs] Error 1
>
> Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Luis
prev parent reply other threads:[~2025-04-23 19:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-23 19:34 [PATCH] bringup_guestfs: fix group permissions for disks Daniel Gomez
2025-04-23 19:51 ` Luis Chamberlain [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aAlE3FmAJOsK77l9@bombadil.infradead.org \
--to=mcgrof@kernel.org \
--cc=da.gomez@kernel.org \
--cc=da.gomez@samsung.com \
--cc=kdevops@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox