Re: [PATCH v2 02/10] userns: Add per user namespace sysctls.

2 messages, 2 authors, 2016-07-26 · open the first message on its own page

Re: [PATCH v2 02/10] userns: Add per user namespace sysctls.

From: Eric W. Biederman <hidden>
Date: 2016-07-26 00:15:07

"Eric W. Biederman" [off-list ref] writes:
Limit per userns sysctls to only be opened for write by a holder
of CAP_SYS_RESOURCE.

Add all of the necessary boilerplate for having per user namespace
sysctls.
quoted hunk
@@ -141,6 +215,7 @@ void free_user_ns(struct user_namespace *ns)
 
 	do {
 		parent = ns->parent;
+		retire_userns_sysctls(ns);
^^^^^^^^^^ Unfortunately it is not safe to call a sleeping function here
           so this part needs to be taken back to the drawing board.
 
           Which means this change gets has to wait for next cycle.
 #ifdef CONFIG_PERSISTENT_KEYRINGS
 		key_put(ns->persistent_keyring_register);
 #endif
Eric

Re: [PATCH v2 02/10] userns: Add per user namespace sysctls.

From: David Miller <davem@davemloft.net>
Date: 2016-07-26 00:24:10

From: ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org (Eric W. Biederman)
Date: Mon, 25 Jul 2016 19:02:01 -0500
           Which means this change gets has to wait for next cycle.
Ok.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help