[Devel] [PATCH vz9 09/14] ve/umh: enable user mode helper in container

Nikita Yushchenko nikita.yushchenko at virtuozzo.com
Mon Sep 27 09:29:55 MSK 2021


From: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>

Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>

(cherry-picked from vz8 commit 27d2bf69ee2a ("ve/umh: enable user
mode helper in container"))

Signed-off-by: Nikita Yushchenko <nikita.yushchenko at virtuozzo.com>
---
 kernel/umh.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/kernel/umh.c b/kernel/umh.c
index e4de634358e7..b7dff2553af0 100644
--- a/kernel/umh.c
+++ b/kernel/umh.c
@@ -509,9 +509,6 @@ int call_usermodehelper_exec(struct subprocess_info *sub_info, int wait)
 		return -EINVAL;
 	}
 
-	if (!ve_is_super(get_exec_env()))
-		return -EPERM;
-
 	helper_lock();
 	if (usermodehelper_disabled) {
 		retval = -EBUSY;
-- 
2.30.2



More information about the Devel mailing list