There is code in lxc.
Just for network namespaces there is code in iproute.
There is work underway to get support for multiple uids and gids per user into shadow-utils.
Copyright © 2013, Eklektix, Inc. Comments and public postings are copyrighted by their creators. Linux is a registered trademark of Linus Torvalds