All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Brindle <jbrindle@tresys.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: Valdis.Kletnieks@vt.edu, russell@coker.com.au,
	James Morris <jmorris@redhat.com>,
	selinux@tycho.nsa.gov
Subject: Re: [RFC][PATCH 0/3] Reduce number of avtab nodes
Date: Thu, 04 Aug 2005 11:38:22 -0400	[thread overview]
Message-ID: <42F2366E.3050106@tresys.com> (raw)
In-Reply-To: <1123166289.13654.59.camel@moss-spartans.epoch.ncsc.mil>

Stephen Smalley wrote:

>On Thu, 2005-08-04 at 10:35 -0400, Valdis.Kletnieks@vt.edu wrote:
>  
>
>>On Thu, 04 Aug 2005 17:57:50 +1000, Russell Coker said:
>>
>>    
>>
>>>One thing that was idly discussed was a public build server that would use one 
>>>domain and several types for every package that was to be compiled.  When you 
>>>look at distributions such as Debian with ~10,000 packages the number 64K 
>>>doesn't seem so large.
>>>      
>>>
>>10K?? I only count 1,806 in Fedora Core 4....
>>
>>What percent of these packages need any special handling other than
>>"run as the invoking user"? FC4 has about 180 .te files in domains/programs,
>>so just about 10% there.  I have *no* idea if "the next 8K packages" will
>>sustain that 10%, or if it will be significantly lower.
>>
>>    
>>
exactly, I suspect that most apps that need their own types and policy 
(mostly daemons) are already covered. The remaining stuff for users is 
really about constraining networked user applications. Even assuming 
that there are a couple hundred of these that require special treatment 
we won't even close to approach 64k types. Further, just because apps 
need to be confined doesn't mean they need their own types, it's 
concievable that all 'unprivileged' user apps could run in the same 
domain (unless they process sensitive information)

>>In any case, yes, that could run over 64K.
>>    
>>
>
>But if you have >64K types, then your avtab is likely going to be so
>large as to make the policy unuseable anyway, as noted by Joshua
>earlier.
>
>With regard to categories, since the relationships are implicit and
>governed by the constraints, you don't get the kind of policy growth
>from adding more categories that you would from adding more types.  So
>if your goal is simply strict isolation between the different packages
>during their builds (not the same as isolating the resulting programs
>running on an end system), then categories may indeed be more suitable.
>  
>
Making a category for each type of application? It would work but it 
seems kind of awkward

This is interesting though. If your security model is to isolate all 
applications there are more possibilities than just using types. Roles, 
users and level can all be used. The bad thing about users and roles is 
that object access would be harder to isolate but mls levels can 
certainly address this.

But just incase (also mentioned in a previous email), would it be 
possible to use a macro in the kernel to switch between 16 and 32 bit 
avtab keys in the kernel and then make checkpolicy write a "fat" policy 
if the types exceed 16 bits? This would allow the possibility of having 
a huge number of types without penalizing all users.

--
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-08-04 15:38 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-29 16:49 [RFC][PATCH 0/3] Reduce number of avtab nodes Stephen Smalley
2005-07-29 17:16 ` [RFC][PATCH 1/3] " Stephen Smalley
2005-07-29 17:22 ` [RFC][PATCH 2/3] " Stephen Smalley
2005-07-29 17:23 ` [RFC][PATCH 3/3] " Stephen Smalley
2005-07-29 18:01 ` [RFC][PATCH 0/3] " Stephen Smalley
2005-07-29 19:05 ` James Morris
2005-07-30  4:20 ` James Morris
2005-07-30 19:13   ` Joshua Brindle
2005-07-31 15:59 ` James Morris
2005-08-01 13:41   ` Stephen Smalley
2005-08-01 14:22     ` Luke Kenneth Casson Leighton
2005-08-01 14:58     ` Joshua Brindle
2005-08-01 15:04       ` Stephen Smalley
2005-08-01 15:09       ` Stephen Smalley
2005-08-01 15:32         ` Joshua Brindle
2005-08-04  7:57         ` Russell Coker
2005-08-04 14:35           ` Valdis.Kletnieks
2005-08-04 14:38             ` Stephen Smalley
2005-08-04 15:38               ` Joshua Brindle [this message]
2005-08-04 15:45                 ` Stephen Smalley
2005-08-04 15:52                   ` Joshua Brindle
2005-08-04 15:46               ` Russell Coker
2005-08-02 16:43     ` Stephen Smalley
2005-08-02 20:50       ` Stephen Smalley
2005-08-04 12:52     ` Stephen Smalley
2005-08-04 16:14       ` Stephen Smalley
2005-08-08 18:42         ` Stephen Smalley
2005-08-04  7:42 ` Russell Coker
2005-08-04 13:25   ` Stephen Smalley

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=42F2366E.3050106@tresys.com \
    --to=jbrindle@tresys.com \
    --cc=Valdis.Kletnieks@vt.edu \
    --cc=jmorris@redhat.com \
    --cc=russell@coker.com.au \
    --cc=sds@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.