[Devel] [PATCH rh7] proc/modules: show loaded modules in container.

Andrey Ryabinin aryabinin at virtuozzo.com
Tue Nov 22 00:19:34 PST 2016


Some scripts wants to read this file to perform some sanity checks.
Loaded modules is not security sensitive information, so this shouldn't
be a problem to expose this in container.

Signed-off-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
---
 kernel/module.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/kernel/module.c b/kernel/module.c
index 762716f..931987c 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -3742,8 +3742,6 @@ static char *module_flags(struct module *mod, char *buf)
 static void *m_start(struct seq_file *m, loff_t *pos)
 {
 	mutex_lock(&module_mutex);
-	if (!ve_is_super(get_exec_env()))
-		return NULL;
 	return seq_list_start(&modules, *pos);
 }
 
-- 
2.7.3



More information about the Devel mailing list