All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: David Howells <dhowells@redhat.com>,
	Michael LeMay <mdlemay@epoch.ncsc.mil>,
	jmorris@redhat.com, selinux@tycho.nsa.gov
Subject: Re: [PATCH] selinux: Kernel access key retention support for SELinux
Date: Fri, 02 Jun 2006 14:25:21 +0100	[thread overview]
Message-ID: <12857.1149254721@warthog.cambridge.redhat.com> (raw)
In-Reply-To: <1149253695.524.431.camel@moss-spartans.epoch.ncsc.mil>


Stephen Smalley <sds@tycho.nsa.gov> wrote:

> > > > Currently, all of the basic permissions explained above are provided in
> > > > SELinux as well, and are always checked before any discretionary
> > > > permission checks are performed.
> > > 
> > > I think you meant to reverse the last sentence, but correct me if I'm
> > > wrong...
> > 
> > Yes.  Assuming I understand what you're saying, and that "discretionary
> > permissions checks" are what SE Linux does, then yes, key_task_permission()
> > does those last.  If not, then it needs rewording rather than reversing to
> > make it clearer.
> 
> Discretionary access control is what the basic Linux access control
> model is.  Mandatory access control is what SELinux provides.

Ah.  In that case a bit of rewording is required rather than reversal:

How about this:

---
The security class "key" has been added to SELinux so that mandatory access
controls can be applied to keys created within various contexts.  This support
is preliminary, and is likely to change quite significantly in the near future.
Currently, all of the basic permissions explained above are provided in SELinux
as well; SE Linux is simply invoked after all basic permission checks have been
performed.

Each key is labeled with the same context as the task to which it belongs.
Typically, this is the same task that was running when the key was created.
The default keyrings are handled differently, but in a way that is very
intuitive:

 (*) The user and user session keyrings that are created when the user logs in
     are currently labeled with the context of the login manager, but will soon
     be labeled with the user's initial context.

 (*) The keyrings associated with new threads are each labeled with the context
     of their associated thread, and both session and process keyrings are
     handled similarly.

Note, however, that the default keyrings associated with the root user are
labeled with the default kernel context, since they are created early in the
boot process, before root has a chance to log in.
---

David

--
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:[~2006-06-02 13:25 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-01 18:26 [PATCH] selinux: Kernel access key retention support for SELinux Michael LeMay
2006-06-01 23:40 ` James Morris
2006-06-02  9:21 ` David Howells
2006-06-02 12:44   ` Michael LeMay
2006-06-02 13:02     ` David Howells
2006-06-02 13:08       ` Stephen Smalley
2006-06-02 13:25         ` David Howells [this message]
2006-06-02 13:28         ` Stephen Smalley
2006-06-02 13:30           ` Stephen Smalley
2006-06-02 13:30           ` David Howells
2006-06-02 13:52             ` Stephen Smalley
2006-06-02 13:53               ` David Howells
2006-06-02 15:54         ` Casey Schaufler
  -- strict thread matches above, loose matches on Subject: below --
2006-06-02 17:09 Frank L. Mayer
2006-06-02 17:53 ` Casey Schaufler
2006-06-02 13:45 Michael LeMay
2006-06-02 14:10 ` David Howells
2006-06-02 13:27 Michael LeMay
2006-06-02 13:38 ` David Howells
2006-05-31 17:50 Michael LeMay
2006-05-31 18:29 ` Stephen Smalley
2006-06-01 10:13   ` David Howells
2006-05-31 20:42 ` James Morris
2006-06-01  9:32   ` David Howells
2006-06-01 14:26     ` James Morris
2006-06-01 14:36       ` David Howells
2006-06-01 10:09 ` David Howells
2006-06-01 11:39   ` Stephen Smalley
2006-06-01 12:27     ` David Howells
2006-06-01 14:21       ` Stephen Smalley
2006-06-01 14:52         ` Valdis.Kletnieks
     [not found]           ` <447F0093.3090601@lemaymd.com>
2006-06-01 15:17             ` Stephen Smalley
2006-06-01 15:25               ` Stephen Smalley
2006-06-01 14:40 ` David Howells
2006-05-25 16:50 Michael LeMay
2006-05-26  9:37 ` David Howells
2006-05-26 13:54   ` David Howells
2006-05-26 12:30 ` Stephen Smalley
2006-05-26 12:56   ` Stephen Smalley
2006-05-26 12:31 ` Stephen Smalley
2006-05-26 13:00 ` 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=12857.1149254721@warthog.cambridge.redhat.com \
    --to=dhowells@redhat.com \
    --cc=jmorris@redhat.com \
    --cc=mdlemay@epoch.ncsc.mil \
    --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.