Re: [libvirt PATCH 2/2] rpm: fix ownership of the swtpm log directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 04, 2021 at 06:05:17PM +0000, Daniel P. Berrangé wrote:
> As soon as a guest using a <tpm> device is launched, libvirt will change
> the ownership to 'tss' user and group, which will cause RPM verify to
> then fail.
> 
> Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
> ---
>  libvirt.spec.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libvirt.spec.in b/libvirt.spec.in
> index 2e026b0423..c455aa7788 100644
> --- a/libvirt.spec.in
> +++ b/libvirt.spec.in
> @@ -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(0711, tss, tss) %{_localstatedir}/log/swtpm/libvirt/qemu/

Mode should have been changed to 0730 too, since that is what the
code (strangely) uses right now.


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux