[CRIU] [PATCH 3/3] prctl: allow to use PR_MM_SET_* which affect only a current task

Andrey Vagin avagin at openvz.org
Thu Feb 13 08:56:23 PST 2014


Here are PR_SET_MM_*_CODE, PR_SET_MM_ARG_*, PR_SET_MM_ENV_*,
PR_SET_MM_AUXV.

Looks like all these parameters can break only the current task and
can not affect other tasks or limits.

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 kernel/sys.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/kernel/sys.c b/kernel/sys.c
index 4e07e42..86030ca 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -1718,8 +1718,6 @@ static int prctl_set_mm(int opt, unsigned long addr,
 			case PR_SET_MM_EXE_FILE:
 				if (!issecure(SECURE_SET_EXE_FILE))
 					return -EPERM;
-			default:
-				return -EPERM;
 		}
 	}
 
-- 
1.8.5.3



More information about the CRIU mailing list