All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: Colin Walters <walters@redhat.com>
Cc: ivg2@cornell.edu, selinux@tycho.nsa.gov
Subject: Re: SELinux policy discussion.
Date: Thu, 16 Sep 2004 17:21:00 -0400	[thread overview]
Message-ID: <414A03BC.80707@redhat.com> (raw)
In-Reply-To: <1095356254.4231.188.camel@nexus.verbum.private>

Colin Walters wrote:

>On Thu, 2004-09-16 at 03:07 -0400, Ivan Gyurdiev wrote:
>  
>
>>>>>Normal users don't just randomly cat files in /etc.
>>>>>          
>>>>>
>>>>So what exactly is the definition of a SElinux MAC system?
>>>>Is it a system which allows only what "normal users do",
>>>>and how exactly do you figure out what that is? 
>>>>        
>>>>
>>>There are no hard and fast rules, but I am quite sure that no one's end
>>>goal is "cat random file in /etc".  Instead, you cat a file to achieve
>>>something else.  That something else is what is interesting.
>>>      
>>>
>>My point is, I don't think you can determine all the possible ways in
>>which a user may take advantage of read access, previously available,
>>and now no longer there. 
>>    
>>
>
>Of course we can't.  But what we can do is consider individual requests
>for greater access, and add that on a case-by-case basis.
>
>  
>
>>Perhaps the user has custom scripts or
>>applications that are not selinux-aware at this point and now they'll
>>stop working. 
>>    
>>
>
>Custom scripts to do *what*?  You need to point out specific things that
>would be broken.  Actual examples of real-world code.
>
>  
>
>>Perhaps the user does want to cat a random file from the
>>shell to view its contents (config files?). 
>>    
>>
>
>This is just a more complicated way of saying "cat random file in /etc".
>I'm not convinced.
>
>  
>
>>That worked before and now it no longer works. 
>>    
>>
>
>A lot of things don't work with SELinux that used to work before,
>like /tmp races.  It's not a bug.
>
>  
>
>>While you can establish exactly what the requirements of an application
>>are and write a policy for it, I'm not sure you can establish exactly
>>what the requirements of user_t are. There's a whole range of things
>>user_t could decide to do. That's why it seems to me that the policy to
>>adhere to when it comes to user_t should be compatible with Unix
>>permissions.
>>    
>>
>
>I completely disagree.  The strict policy is always going to be more
>restrictive than Unix permissions for users.  That's the point of it.
>If you don't want that, use the targeted policy.
>
>  
>
>>That's exactly what I was arguing for... DAC permissions for user_t,
>>strict MAC policy for other domains. DAC permissions for all domains
>>would make no sense at all since it defeat the whole purpose of SELinux.
>>    
>>
>
>See above.
>
>  
>
>>>I think you just want the targeted policy.
>>>      
>>>
>>But the strict policy covers more programs.
>>It won't let a firefox buffer overflow cause damage to the rest of my
>>files (will it?). 
>>    
>>
>
>The strict policy helps there.  But we still have a long ways to go to
>lock down X.  
>
>If you want a restricted mozilla domain, and allow users to read random
>files in /etc, use the strict policy and add a bit of custom policy to
>your site to allow users to read those files you want.  The latter isn't
>something that should be in the default strict policy.  But SELinux is
>flexible enough to allow what you want.
>
>
>  
>
One argument for allowing users to read most of these files, is we are 
forcing a user in strict
policy to run in a higher domain then he might otherwize.  IE if a user 
wants to regularly look
at files in /etc, he might decide to add admin privs to his user account 
and login as sysadm_r.

I tend to agree though that most users and users on a locked down box do 
not need to be reading these files.

Dan

Dan

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

  parent reply	other threads:[~2004-09-16 21:21 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-15 20:03 SELinux policy discussion Daniel J Walsh
2004-09-16  0:38 ` Colin Walters
     [not found]   ` <1095302625.28466.56.camel@localhost.localdomain>
2004-09-16  4:05     ` Colin Walters
2004-09-16  4:15       ` Colin Walters
2004-09-16 12:25         ` Daniel J Walsh
2004-09-16 13:32           ` Stephen Smalley
     [not found]       ` <1095318426.32510.30.camel@localhost.localdomain>
2004-09-16 17:37         ` Colin Walters
2004-09-16 19:53           ` Ivan Gyurdiev
2004-09-17  9:27             ` Luke Kenneth Casson Leighton
2004-09-17 17:19             ` Valdis.Kletnieks
2004-09-18 23:50               ` Dax Kelson
2004-09-24 15:24                 ` Russell Coker
2004-09-16 21:21           ` Daniel J Walsh [this message]
2004-09-16 21:46             ` Colin Walters

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=414A03BC.80707@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=ivg2@cornell.edu \
    --cc=selinux@tycho.nsa.gov \
    --cc=walters@redhat.com \
    /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.