From 00b3a450c7764cd1d5bc3eac0f909141acbe65c6 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) --- library/system/setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/system/setup b/library/system/setup index 5e4c76c3f3..f8f7926e84 100644 --- a/library/system/setup +++ b/library/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)