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

Submitted by Andrey Ryabinin on Nov. 22, 2016, 8:19 a.m.

Details

Message ID 1479802774-28901-1-git-send-email-aryabinin@virtuozzo.com
State New
Series "proc/modules: show loaded modules in container."
Headers show

Commit Message

Andrey Ryabinin Nov. 22, 2016, 8:19 a.m.
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@virtuozzo.com>
---
 kernel/module.c | 2 --
 1 file changed, 2 deletions(-)

Patch hide | download patch | download mbox

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);
 }