Skip to contentSkip to conversation

runqemu: fix permission check of /dev/vhost-net

PATCH New Chen Qi 1 participant 1 message Aug 10, 2020

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

PATCH 1/1 runqemu: fix permission check of /dev/vhost-net

The code should check /dev/vhost-net instead of /dev/kvm. And the permission check logically belongs to the part when kvm-vhost is enabled. Also fix the URL to point to the correct wiki page.

---
 scripts/runqemu | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/runqemu +2 -2
index f2168c18a3..c40acc4a86 100755
@@ -585,10 +585,10 @@ class BaseConfig(object):
                 logger.error("For further help see:")
                 raise RunQemuError(yocto_paravirt_kvm_wiki)
 
-        if not os.access(dev_kvm, os.W_OK|os.R_OK):
+            if not os.access(dev_vhost, os.W_OK|os.R_OK):
                 logger.error("You have no read or write permission on /dev/vhost-net.")
                 logger.error("Please change the ownership of this file as described at:")
-                raise RunQemuError(yocto_kvm_wiki)
+                raise RunQemuError(yocto_paravirt_kvm_wiki)
 
     def check_fstype(self):
         """Check and setup FSTYPE"""
Signature · 1 line
2.17.1