[Devel] [PATCH rh7] user namespace: don't TAINT the kernel with 'tech preview'

Andrey Ryabinin aryabinin at virtuozzo.com
Tue Dec 29 08:44:22 PST 2015


don't TAINT the kernel with 'tech preview' when using user namespaces.

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

diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c
index 060a6f7..fe53b77 100644
--- a/kernel/user_namespace.c
+++ b/kernel/user_namespace.c
@@ -70,14 +70,10 @@ int create_user_ns(struct cred *new)
 	kuid_t owner = new->euid;
 	kgid_t group = new->egid;
 	int ret;
-	static int __read_mostly called_mark_tech_preview = 0;
 
 	if (!enable_user_ns_creation)
 		return -EINVAL;
 
-	if (!called_mark_tech_preview && !xchg(&called_mark_tech_preview, 1))
-		mark_tech_preview("user namespace", NULL);
-
 	if (parent_ns->level > 32)
 		return -EUSERS;
 
-- 
2.4.10



More information about the Devel mailing list