# Swtpm Permission Denied

**URL:** <https://universal-blue.discourse.group/t/swtpm-permission-denied/1035>\
**Category:** General\
**Created:** [April 8, 2024, 6:05pm UTC](https://universal-blue.discourse.group/t/swtpm-permission-denied/1035 "2024-04-08T18:05:59Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![darkghosthunter](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/darkghosthunter/32/703_2.png) [@darkghosthunter](https://universal-blue.discourse.group/u/darkghosthunter)\
**Post date:** [May 24, 2024, 3:24am UTC](https://universal-blue.discourse.group/t/swtpm-permission-denied/1035/8 "2024-05-24T03:24:25Z")

</div>

I can confirm it also happened on my Bluefin that rebased to `:latest` (with Fedora 40).

Well, my initial problem was that `libvirt` didn’t have permissions to create a log on `/var/log/libvirt`, and after fixing that, the `swtpm` error appeared.

I had to use these commands to fix the permissions for SELinux when trying to use VMM (or any virtual machine at all).

```
sudo restorecon -rv /var/log/libvirt/
systemctl restart swtpm-workaround.service

```

The `swtpm-workaround.service` was enabled and running, but for some reason the problem persisted until I restarted it with `restart`.

---

_[View the full topic](https://universal-blue.discourse.group/t/swtpm-permission-denied/1035)._
