All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: Chad Sellers <cdselle@tycho.nsa.gov>
Cc: selinux@tycho.nsa.gov
Subject: Re: [RFC]{Patch 0/5] Polyinstantation
Date: Wed, 11 May 2005 21:30:41 -0400	[thread overview]
Message-ID: <4282B1C1.2080202@redhat.com> (raw)
In-Reply-To: <1115844045.28698.30.camel@moss-huskies.epoch.ncsc.mil>

Chad Sellers wrote:

>On Wed, 2005-05-11 at 16:13 -0400, Daniel J Walsh wrote:
>
>  
>
>>Why are you still sharing the /tmp directory within the same roles.  I 
>>think it would be preferable to
>>not share at all.  This would protect one user_u from another.   
>>    
>>
>This code does polyinstantiation by context, thereby separating one
>context from another.  Are you suggesting separating entities within the
>same context from one another?  Meaning that the member directory chosen
>would be dependent on the source user, role, type, level, compartment,
>and uid/unix username?
>  
>
Not sure what you mean by context.  Are you saying that all user_r would 
share the same /tmp?
I would prefer that the directories be separated by UID/ROLE.  One of 
the shortcomings
of SELinux is that you really do not separate users into different 
roles.  So most systems will
have only limited user roles, maybe user_r, staff_r and sysadm_r.  So if 
I give each user their
own /tmp directory, you eliminate users attacking each other, or at 
least make it more difficult.

I think the users /tmp directory should be the same for all logins.  So 
if I copy a file to /tmp
and then go to another machine and scp it off, the file will be there.   

This would then work on all Linux systems with or without SELinux and 
independant of the policy.

Dan

>  
>
>>How are 
>>you handling system sockets?
>>/tmp/.X11-unix/
>>/tmp/.X0-lock
>>I think postrgres also puts stuff out there.
>>    
>>
>Yes, this is a pain.  The problem with directories like /tmp and $HOME
>is that they have become global dumping places.  The problem with
>breaking them up is that programs use that global dumping place as a
>convenient way to connect to other programs.  So, you have sockfiles and
>pipes that need to persist in multiple (but not all) member directories.
>The library doesn't handle this stuff, and so I handle it in the
>entrypoint patches (see the gdm patch or what happens if you pass -X to
>the setupns command line utility).  This is one reason that I remount
>the original directory elsewhere for security-aware (and allowed) apps
>to access it.  The entrypoint program (say gdm) symlinks the necessary
>files into the member directory.  If unionfs gets some upstream support,
>it would provide a much more elegant way to do this.
>
>I've only patched this to make X work.  I'm sure other programs (such as
>postgres) might require similar modifications in order to work.
>
>  
>
>>    
>>


-- 



--
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.

  reply	other threads:[~2005-05-12  1:30 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-11 15:28 [RFC]{Patch 0/5] Polyinstantation Chad Sellers
2005-05-11 17:41 ` Casey Schaufler
2005-05-11 18:11   ` Janak Desai
2005-05-11 18:16   ` Chad Sellers
2005-05-11 18:48   ` Timothy R. Chavez
2005-05-11 20:13 ` Daniel J Walsh
2005-05-11 20:40   ` Chad Sellers
2005-05-12  1:30     ` Daniel J Walsh [this message]
2005-05-12 11:22       ` Stephen Smalley
2005-05-12 13:22         ` Chad Sellers
2005-05-13  4:40           ` Russell Coker
2005-05-13  5:53             ` Valdis.Kletnieks
2005-05-13 11:15               ` Daniel J Walsh
2005-05-13 11:30             ` Stephen Smalley
2005-05-19 20:17               ` Chad Sellers
2005-05-12  9:35 ` [selinux] " Magosányi Árpád
  -- strict thread matches above, loose matches on Subject: below --
2005-05-11 18:37 Casey Schaufler
2005-05-11 19:02 Casey Schaufler

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=4282B1C1.2080202@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=cdselle@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    /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.