]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
rpm: fix ownership of the swtpm log directory
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 4 Jan 2021 18:03:55 +0000 (18:03 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 5 Jan 2021 17:15:34 +0000 (17:15 +0000)
As soon as a guest using a <tpm> device is launched, libvirt will change
the ownership to 'tss' user and group, with mode 0730, which will cause
RPM verify to then fail.

Reviewed-by: Laine Stump <laine@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
libvirt.spec.in

index 2e026b0423cf9c2efc04214c669fb7569e636a76..ce1a8d70780407baa1c3a4bd43fbe59fb74fb3e2 100644 (file)
@@ -1747,7 +1747,7 @@ exit 0
 %{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
 %{_libdir}/%{name}/connection-driver/libvirt_driver_qemu.so
 %dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/swtpm/
-%dir %attr(0711, root, root) %{_localstatedir}/log/swtpm/libvirt/qemu/
+%dir %attr(0730, tss, tss) %{_localstatedir}/log/swtpm/libvirt/qemu/
 %{_bindir}/virt-qemu-run
 %{_mandir}/man1/virt-qemu-run.1*
 %endif