All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Smalley <sds@tycho.nsa.gov>
To: David Quigley <selinux@davequigley.com>
Cc: Yao <yffbrave@163.com>, selinux@tycho.nsa.gov
Subject: Re: A few questions
Date: Wed, 07 Mar 2012 11:23:55 -0500	[thread overview]
Message-ID: <1331137435.16697.53.camel@moss-pluto> (raw)
In-Reply-To: <c7e5c731607a1975c4e24583bdf36d98@countercultured.net>

On Wed, 2012-03-07 at 10:57 -0500, David Quigley wrote:
> On 03/07/2012 10:15, Yao wrote:
> > Hi,
> > Lately I'm studying SELinux and got some questions which I want to be
> > clear.
> >
> > (1)I know SELinux is based on Flask architecture and I know where the
> > SS is, but I'm not sure
> > where the OM locates, I guess the variable "security_ops" which
> > belongs to LSM represents the OM, am I right?
> >
> > (2)the struct "selinux_ops" in file hooks.c is declared as "static",
> > why not add "const" qualifier so that
> > the it will be put in read-only data section in the kernel?
> >
> > (3)Is there any way to hack the SELinux, I mean, to disable it on the
> > fly? For example, replace the policy db with a
> > blank file so that any permission is allowed. Is it feasible?
> >
> > Regards,
> > Yao
> 
> So In order.
> 
> I asked (1) when I first started as well and the answer I got was the 
> kernel itself is the object manager. You'll notice a bunch of security_ 
> calles through the kernel. These are the enforcement points which query 
> the security server through the selinux specific hooks behind the LSM 
> interface.

In general, the "object manager" is the component that implements the
object abstraction and operations and is responsible for enforcement of
the policy decisions.  The kernel can either be viewed as a single
object manager or as a collection of object managers (e.g. the process
management subsystem, the vfs and filesystem implementations, the
networking subsystem, the ipc subsystem, ...).  In the case of the Flask
microkernel-based OS, the various subsystems were in fact separate tasks
running on the microkernel.
 
-- 
Stephen Smalley
National Security Agency


--
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:[~2012-03-07 16:23 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-07 15:15 A few questions Yao
2012-03-07 15:52 ` Eric Paris
2012-03-07 15:57 ` David Quigley
2012-03-07 16:23   ` Stephen Smalley [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-03-04 17:34 Mat
2008-03-04  1:04 Alex Caudill
     [not found] ` <81E34349-D837-40A3-94F5-E314AAC43396@telegraphics.com.au>
2008-03-04  7:53   ` Alex Caudill
     [not found]     ` <b8d16a880803040025s2bac98eaq7eb24713d3c46196@mail.gmail.com>
2008-03-04  8:57       ` Alex Caudill
2008-03-04 14:22     ` Toby Thain
2008-03-04 20:13 ` Jeff Mahoney
2008-03-04 22:06   ` Alex Caudill
2008-03-24  0:18   ` Edward Shishkin
2005-02-02  0:19 Ian Pratt
2005-02-02  0:04 Hugo Silva
2005-02-02  0:19 ` Mark Williamson
2004-01-31 10:06 Stefan Berndtsson
2004-01-31 10:46 ` Benjamin Herrenschmidt
2004-01-31 15:44   ` Stefan Berndtsson
2004-02-02  8:36     ` Stefan Berndtsson
2002-12-01 11:02 Adam Luchjenbroers
2002-12-01 13:06 ` dashielljt
2002-12-02  6:56   ` Adam Luchjenbroers
2002-12-02 14:26     ` dashielljt
2002-12-02 14:53       ` Adam Luchjenbroers
2002-12-02 15:31         ` Jim Reimer
2002-11-15  8:20 Rocco Stanzione
2002-11-15 19:21 ` Nix N. Nix

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=1331137435.16697.53.camel@moss-pluto \
    --to=sds@tycho.nsa.gov \
    --cc=selinux@davequigley.com \
    --cc=selinux@tycho.nsa.gov \
    --cc=yffbrave@163.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.