[PATCH] spec: Fix attributes for some qemu dirs in %{_rundir}

Jiri Denemark posted 1 patch 2 weeks, 2 days ago
libvirt.spec.in | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
[PATCH] spec: Fix attributes for some qemu dirs in %{_rundir}
Posted by Jiri Denemark 2 weeks, 2 days ago
The recent attempt to fix the attributes used wrong mode for some
directories used by the QEMU driver. Only dbus and swtpm directories use
770, all other directories are created with 755.

Fixes: 961fb8944d0c2d7d5cc0783888a20317e725a248
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
---
 libvirt.spec.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libvirt.spec.in b/libvirt.spec.in
index 69693f4851..901ed9c464 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -2275,10 +2275,10 @@ exit 0
 %config(noreplace) %{_sysconfdir}/libvirt/qemu.conf
 %config(noreplace) %{_sysconfdir}/libvirt/qemu-lockd.conf
 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.qemu
-%ghost %dir %attr(0770, %{qemu_user}, %{qemu_group}) %{_rundir}/libvirt/qemu/
+%ghost %dir %attr(0755, %{qemu_user}, %{qemu_group}) %{_rundir}/libvirt/qemu/
 %ghost %dir %attr(0770, %{qemu_user}, %{qemu_group}) %{_rundir}/libvirt/qemu/dbus/
-%ghost %dir %attr(0770, %{qemu_user}, %{qemu_group}) %{_rundir}/libvirt/qemu/passt/
-%ghost %dir %attr(0770, %{qemu_user}, %{qemu_group}) %{_rundir}/libvirt/qemu/slirp/
+%ghost %dir %attr(0755, %{qemu_user}, %{qemu_group}) %{_rundir}/libvirt/qemu/passt/
+%ghost %dir %attr(0755, %{qemu_user}, %{qemu_group}) %{_rundir}/libvirt/qemu/slirp/
 %ghost %dir %attr(0770, %{qemu_user}, %{qemu_group}) %{_rundir}/libvirt/qemu/swtpm/
 %dir %attr(0751, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/
 %dir %attr(0751, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/checkpoint/
-- 
2.47.0
Re: [PATCH] spec: Fix attributes for some qemu dirs in %{_rundir}
Posted by Michal Prívozník 2 weeks, 2 days ago
On 11/4/24 15:14, Jiri Denemark wrote:
> The recent attempt to fix the attributes used wrong mode for some
> directories used by the QEMU driver. Only dbus and swtpm directories use
> 770, all other directories are created with 755.
> 
> Fixes: 961fb8944d0c2d7d5cc0783888a20317e725a248
> Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
> ---
>  libvirt.spec.in | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Michal