LWN.net Logo

Cleanup after namespace associated resources

Cleanup after namespace associated resources

Posted Jul 25, 2012 11:41 UTC (Wed) by levonshe (guest, #58154)
Parent article: A new approach to user namespaces

The only problem with this approach is cleanup of kernel resources. In user space the cloned process just exits and associated resources are freed. But the kernel module may allocate resource valid for the specific namespace but it can not release this resource. The patch track namespaces using kref counting and free_user_ns() function is called at the and I do not see how to chain extra functions to clean kernel resources associated with the given user namespace. This is real the issue I stumbled developing real kernel module which make use of the proposed kernel


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds