From c23ce83375190c2ff219da2967711b2e7e677412 Mon Sep 17 00:00:00 2001 From: Stephen Fromm Date: Thu, 30 May 2013 10:15:40 -0700 Subject: [PATCH] Verify /proc/modules is readable (issue #2990) --- system/setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/setup b/system/setup index 5e4c76c3f3c..f8f7926e840 100644 --- a/system/setup +++ b/system/setup @@ -1633,7 +1633,7 @@ class LinuxVirtual(Virtual): return # Beware that we can have both kvm and virtualbox running on a single system - if os.path.exists("/proc/modules"): + if os.path.exists("/proc/modules") and os.access('/proc/modules', os.R_OK): modules = [] for line in open("/proc/modules").readlines(): data = line.split(" ", 1)