NAMESPACE.CONF(5) Linux-PAM Manual NAMESPACE.CONF(5) (NAME) namespace.conf - pam_namespace (DESCRIPTION) pam_namespace.so (namespace) (polyinstantiated) . SELinux . /etc/security/namespace.init (mount) . . (root) . /etc/security/namespace.conf . namespace.conf . # . . " \b \n \t . : polydir instance_prefix method list_of_uids polydir . $HOME $USER . . instance_prefix . . method " " . (bind mount) . $HOME $USER . . method . : "user" "level" MLS "context" "tmpfs" tmpfs "tmpdir" . "context" "level" SELinux . . list_of_uids . . "~" . method : . create=mode,owner,group - . mode owner group . mode umask (owner) (group) . iscript=path - . /etc/security/namespace.d . noinit - . shared - "context" "level" . mntopts=value - tmpfs mount . tmpfs mount . tmpfs(5) nosuid noexec nodev setuid tmpfs . (mode) 0000 . 0000 ignore_instance_parent_mode . context level SELinux getexeccon . pam_selinux.so . . " " "user" "context" "level" _ . md5sum . gen_hash md5sum . (EXAMPLES) /etc/security/namespace.conf . # The following three lines will polyinstantiate /tmp, # /var/tmp and user's home directories. /tmp and /var/tmp # will be polyinstantiated based on the security level # as well as user name, whereas home directory will be # polyinstantiated based on the full security context and user name. # Polyinstantiation will not be performed for user root # and adm for directories /tmp and /var/tmp, whereas home # directories will be polyinstantiated for all users. # # Note that instance directories do not have to reside inside # the polyinstantiated directory. In the examples below, # instances of /tmp will be created in /tmp-inst directory, # where as instances of /var/tmp and users home directories # will reside within the directories that are being # polyinstantiated. # /tmp /tmp-inst/ level root,adm /var/tmp /var/tmp/tmp-inst/ level root,adm $HOME $HOME/$USER.inst/inst- context () ( login) /etc/pam.d/ session : session required pam_namespace.so [arguments] pam_selinux.so . (SEE ALSO) pam_namespace(8) pam.d(5) pam(8) (AUTHORS) namespace.conf Janak Desai . Tomas Mraz . Linux-PAM 01/26/2026 NAMESPACE.CONF(5)