All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Caplan <dac@tresys.com>
To: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
Cc: Valdis.Kletnieks@vt.edu, Stephen Smalley <sds@epoch.ncsc.mil>,
	SE-Linux <selinux@tycho.nsa.gov>
Subject: Re: [idea] multiple contexts.
Date: Wed, 28 Jul 2004 08:33:21 -0400	[thread overview]
Message-ID: <41079D11.40600@tresys.com> (raw)
In-Reply-To: <20040727212836.GA21236@lkcl.net>

Luke Kenneth Casson Leighton wrote:
>  
>  yes, sort-of: more that i only wish to limit what programs a user
>  can run (and what programs _those_ programs can run).
> 

That seems pretty straightforward using transition rules.

>  in particular, i want to stop people from being able to use the
>  "Run" capability of Konqueror, etc.  STOP, not have the popup coming
>  up with "are you sure you want to run this program?".
> 

You may not have to worry about that if you've defined, via policy, what 
the user (i.e., the domain they are in when running Konqueror, etc.) is 
allowed to run.

> 
>  setting up a kdeusers group, chgrp'ing the allowed programs
>  to that group, and setting permissions to 0660 is what i really
>  need...
> 

0660 is -rw-rw----, I think you meant 0550, -r-xr-x---, right?

>  ... but i wondered if there was a way to do that same thing in
>  SE/Linux...
> 
>  ... _without_ writing a whole stack of policies, one per program.
> 

That's your real issue.  You can accomplish the equivalent (of your 
chgrp scenario) by defining a domain for all the allowed user programs 
and causing a domain transition whenever a user (in your limited user 
domain) executes an allowed program.  Then you only have to write a 
policy that covers the needs of the set of allowed user applications. 
That gets you the equivalent (actually it's possibly a _little_ better 
because you limited the permissions to only what the group needs and you 
removed excess permissions that the user may have had when they enter 
the new domain).

What you really _need_ is a whole stack of policies so that each program 
is limited to only what it needs.  It's up to you to determine if your 
intended environment requires the effort to do that. With some analysis 
you may also find that you can define policies for subgroups of programs 
instead of having individual policies for every program.

>  a macro i could write that would let me do this:
>  
>  allow_user_kde_access(konqueror_exec_t)
>  allow_user_kde_access(k3b_exec_t)
> 
>  with all that that implies.
> 
>  or, to simply set all the allowed kde executables into
>  kde_user_exec_t type, and set this on /usr/bin/konqueror,
>  /usr/bin/k3b, /usr/bin/koffice etc.
> 

You just need to be very careful that you don't end up granting so much 
permission to a generic kde domain that you've accomplished nothing. 
I'd recommend the judicious use of neverallows to ensure that you've not 
accidentally allowed something you meant to deny.  I'd also recommend 
the use of our analysis tool, apol (www.tresys.com/selinux ).

David


-- 
__________________________________

David Caplan     410 290 1411 x105
dac@tresys.com
Tresys Technology, LLC
8840 Stanford Blvd., Suite 2100
Columbia, MD 21045



--
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-07-28 12:35 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-24 23:11 [idea] multiple contexts Luke Kenneth Casson Leighton
2004-07-25  0:17 ` Russell Coker
2004-07-26 16:12 ` Stephen Smalley
2004-07-27 16:06   ` Luke Kenneth Casson Leighton
2004-07-27 17:33     ` Stephen Smalley
2004-07-27 18:23       ` Luke Kenneth Casson Leighton
2004-07-28 23:16         ` Erich Schubert
2004-07-29  1:00           ` Luke Kenneth Casson Leighton
2004-07-27 19:40     ` Valdis.Kletnieks
2004-07-27 21:28       ` Luke Kenneth Casson Leighton
2004-07-27 21:23         ` Valdis.Kletnieks
2004-07-27 21:49           ` Luke Kenneth Casson Leighton
2004-07-28 12:33         ` David Caplan [this message]
2004-07-28 14:37           ` Luke Kenneth Casson Leighton

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=41079D11.40600@tresys.com \
    --to=dac@tresys.com \
    --cc=Valdis.Kletnieks@vt.edu \
    --cc=lkcl@lkcl.net \
    --cc=sds@epoch.ncsc.mil \
    --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.