[Devel] [PATCH RHEL7 COMMIT] ve/proc/modules: show loaded modules in container

Konstantin Khorenko khorenko at virtuozzo.com
Wed Nov 23 07:48:16 PST 2016


The commit is pushed to "branch-rh7-3.10.0-327.36.1.vz7.20.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-327.36.1.vz7.20.1
------>
commit 08312c794cade2d0cec1c367cbf0aaafba78243e
Author: Andrey Ryabinin <aryabinin at virtuozzo.com>
Date:   Wed Nov 23 19:48:15 2016 +0400

    ve/proc/modules: show loaded modules in container
    
    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.
    
    https://jira.sw.ru/browse/PSBM-55920
    https://bugs.openvz.org/browse/OVZ-6834
    
    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);
 }
 


More information about the Devel mailing list