From: Janak Desai <janak@us.ibm.com>
To: Thomas Bleher <bleher@informatik.uni-muenchen.de>
Cc: Russell Coker <russell@coker.com.au>,
Valdis.Kletnieks@vt.edu, SE-Linux <selinux@tycho.nsa.gov>,
viro@zeniv.linux.org.uk
Subject: Re: pam_namespace
Date: Tue, 09 May 2006 09:12:27 -0400 [thread overview]
Message-ID: <4460953B.5020609@us.ibm.com> (raw)
In-Reply-To: <20060508223859.GA7479@thorium.jmh.mhn.de>
Thomas Bleher wrote:
>[CC'ing Al Viro because he surely knows this...]
>
>* Russell Coker <russell@coker.com.au> [2006-05-08 05:23]:
>
>
>>On Sunday 07 May 2006 19:28, Russell Coker <russell@coker.com.au> wrote:
>>
>>
>>>Of course there's nothing stopping us from modifying a program such as
>>>runuser or run_init to set up a namespace for a daemon. In fact we should
>>>probably make the default behavior of run_init and runuser be the creation
>>>of a namespace. It would be easy to create a config file for runuser that
>>>allows excluding daemons on the basis of executable name, UID, or other
>>>factors.
>>>
>>>
>>One problem we have with separate name spaces is that when the administrator
>>mounts a file system the users won't see it.
>>
>>
>
>I thought shared subtrees were invented to solve this problem?
>I've read the documentation but never actually played with it, so I'd be
>interested to hear if it doesn't work.
>
>Thomas
>
>
Yes, shared tree will solve this problem. Ram Pai has been trying to
upstream the
user level support for this feature (kernel portion is already upstream
since 2.6.15)
but the maintainer hasn't been very responsive. I forwarded his patch to
redhat-lspp
on the suggestion of Steve Grubb. We are planning on including it in our
lspp
builds so folks can play with it. In the meantime, we will continue to
push the
upstream maintainer of util-linux for including this patch to the mount
command.
-Janak
>
>
>>When the mount point has
>>the "user" option in /etc/fstab that won't be such a problem, but for the
>>more common cases of autofs and the automatic mounting we have in Fedora
>>that's not going to work.
>>
>>As we want to provide as much protection as possible for as many users as
>>possible it seems to me that for a typical targeted-policy system we would
>>want to run daemons in their own name-space while leaving users in the system
>>name-space. It would not be difficult to modify runuser such that it could
>>check for a domain_auto_trans() operation on launching a daemon (assuming
>>that the runuser command in question runs the daemon directly instead of
>>running a startup script) and then by default create a separate name space
>>for every daemon that is confined in the targeted policy (which is probably a
>>good list of daemons that may potentially become compromised and be used to
>>attack users).
>>
>>Having such separate name-spaces for daemons that run as non-root allows
>>protecting users from attack while avoiding the usability issues of
>>namespaces for each user. This is a good match the design philosophy of the
>>targeted policy.
>>
>>For daemons such as xfs, we could have runuser set up a bind mount of the
>>sub-directory of the /tmp directory that is used. So /tmp/.font-unix could
>>be bind mounted into the name-space of the xfs daemon. Incidentally at the
>>moment xfs is not started by runuser, so with my rough design outlined above
>>it would not get a separate name-space
>>
>.
>
>
--
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.
next prev parent reply other threads:[~2006-05-09 13:12 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-05 6:23 pam_namespace Russell Coker
2006-05-05 7:50 ` pam_namespace Valdis.Kletnieks
2006-05-05 9:14 ` pam_namespace Russell Coker
2006-05-05 10:06 ` pam_namespace Valdis.Kletnieks
2006-05-07 9:28 ` pam_namespace Russell Coker
2006-05-08 1:07 ` pam_namespace Valdis.Kletnieks
2006-05-08 3:27 ` pam_namespace Russell Coker
2006-05-08 13:44 ` pam_namespace Janak Desai
2006-05-08 20:32 ` pam_namespace Valdis.Kletnieks
2006-05-09 12:57 ` pam_namespace Russell Coker
2006-05-09 14:02 ` pam_namespace Russell Coker
2006-05-09 14:41 ` pam_namespace Janak Desai
2006-05-09 14:13 ` pam_namespace Janak Desai
2006-05-09 22:53 ` pam_namespace Russell Coker
2006-05-10 14:10 ` pam_namespace Janak Desai
2006-05-11 0:04 ` pam_namespace Russell Coker
2006-05-11 13:28 ` pam_namespace Janak Desai
2006-05-12 4:14 ` pam_namespace Rogelio Serrano
2006-05-12 5:00 ` pam_namespace Russell Coker
2006-05-08 1:37 ` pam_namespace Russell Coker
2006-05-08 22:39 ` pam_namespace Thomas Bleher
2006-05-09 12:07 ` pam_namespace Stephen Smalley
2006-05-09 13:12 ` Janak Desai [this message]
2006-05-11 13:45 ` pam_namespace Rogelio Serrano
2006-05-11 13:57 ` pam_namespace Stephen Smalley
2006-05-12 4:09 ` pam_namespace Rogelio Serrano
2006-05-11 23:09 ` pam_namespace Russell Coker
2006-05-12 4:00 ` pam_namespace Rogelio Serrano
2006-05-12 4:52 ` pam_namespace Russell Coker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4460953B.5020609@us.ibm.com \
--to=janak@us.ibm.com \
--cc=Valdis.Kletnieks@vt.edu \
--cc=bleher@informatik.uni-muenchen.de \
--cc=russell@coker.com.au \
--cc=selinux@tycho.nsa.gov \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.