Received: from jazzdrum.ncsc.mil (zombie.ncsc.mil [144.51.88.131]) by tarius.tycho.ncsc.mil (8.13.1/8.13.1) with ESMTP id k4BNApNv024127 for ; Thu, 11 May 2006 19:10:51 -0400 Received: from smtp.sws.net.au (jazzdrum.ncsc.mil [144.51.5.7]) by jazzdrum.ncsc.mil (8.12.10/8.12.10) with ESMTP id k4BN9iQm023270 for ; Thu, 11 May 2006 23:10:24 GMT From: Russell Coker Reply-To: russell@coker.com.au To: "Rogelio Serrano" Subject: Re: pam_namespace Date: Fri, 12 May 2006 09:09:07 +1000 Cc: SE-Linux References: <200605051623.25533.russell@coker.com.au> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-Id: <200605120909.11178.russell@coker.com.au> Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov On Thursday 11 May 2006 23:45, "Rogelio Serrano" wrote: > separate namespaces is somewhat similar to selinux/dte and clashes > with it. i dont think we can mix selinux with separate namespaces as > it is right now. Separate namespaces have no similarity or overlap in functionality with SE Linux. All that separate namespaces offer is a different set of mounted file systems. No protection against IPC based attacks, no control over what is actually done to files in the filesystems in questions, etc. SE Linux does not support hiding of file names. If the name of a file is considered to be secret data (IE the output of "ls" is considered to be secret) then copying that file to /tmp (which may be done without the knowledge of the user by an editor creating a temporary buffer file with a derived name) would break the confidentiality controls we want to have on the system. To solve this we have separate namespaces for processes that need to have isolated copies of /tmp. The idea is that if user A creates the file /tmp/X.txt where X is secret then user B will see a different version of /tmp where there is no X.txt file. Another problem is the issue of DOS attacks. If a program uses a fixed file/directory name then a hostile process that first creates an object with that name (either with restrictive permissions or creating a directory where a file is expected) can prevent the process from running. SE Linux can prevent programs from following hostile sym-links, writing to files created by hostile users, and most race-condition attacks on non-administrative processes, but it can't prevent the same operations from becoming DOS attacks - in fact many attacks that would violate system integrity or data confidentiality on non-SE systems become DOS attacks on SE systems. Fedora Rawhide has just got PAM version 0.99.4.0-1 in which namespace works (the previous version didn't). Please try configuring a SE Linux system with pam_namespace, you'll find that it works and provides some benefits that SE Linux alone can not provide. -- http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.