Hi All,
The attached pam_unshare was primarily written in order to create a pam_namespace replacement that handled automounter and made it possible to let a script decide if unshare should be called. I hope it could be of use for someone else as well (inclusion in pam-linux would be a plus :-))
Besides the module and its documentation, I enclose a preliminary version of a python script exercising some of the functionality ('session required pam_unshare.so cond /etc/pam.d/hide.py' in config file).
Regards
Anders Blomdell
pam-developers@lists.fedorahosted.org