All of lore.kernel.org
 help / color / mirror / Atom feed
From: serue@us.ibm.com
To: Tony Jones <tonyj@suse.de>
Cc: Stephen Smalley <sds@tycho.nsa.gov>,
	Chris Wright <chrisw@osdl.org>,
	linux-security-module@wirex.com, selinux@tycho.nsa.gov
Subject: Re: [PATCH] remove selinux stacked ops
Date: Fri, 26 Aug 2005 07:54:55 -0500	[thread overview]
Message-ID: <20050826125455.GA10491@sergelap.austin.ibm.com> (raw)
In-Reply-To: <20050826163307.GA32690@immunix.com>

Quoting Tony Jones (tonyj@suse.de):
> On Fri, Aug 26, 2005 at 08:29:58AM -0400, Stephen Smalley wrote:
> > On Fri, 2005-08-26 at 07:58 -0400, Stephen Smalley wrote:
> > > Ok, as with my prior comment, this one is also invalidated by the fact
> > > that the static inlines fall back to the cap_ functions if the operation
> > > is NULL.  So I suppose this would work.
> > 
> > Given these changes, what purpose does the capability module and the
> > CONFIG_SECURITY_CAPABILITIES option serve anymore?  Should capability.c
> > be removed entirely?
> 
> Since stacker will implement every hook (preventing the static inline
> falling thru) wouldn't retaining capability as a module for composition 
> be useful?

For conceptual simplicity I think keeping an actual module for it around
will be best.  Then other module can either stack with it, or not,
however they prefer.

> Of course I can see alternate methods for implementing this.  At the very least,
> as this thread demonstrates, the current stacker approach of calling dummy
> when no submodule implements a hook will need some rework.

Actually that's not quite the way it works under stacker right now.
If no module is loaded, then dummy is used, but if a module is loaded,
then stacker doesn't call dummy__hook if the module doesn't define that
hook.  (Though there are a few hooks which are specially handled, ie
__vm_enough)

So switching from having dummy be the default module when nothing is
stacked, to having capability, is simple enough.

-serge

--
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:[~2005-08-26 12:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-25 22:17 selinux stacked ops Chris Wright
2005-08-25 22:51 ` [PATCH] remove " Chris Wright
2005-08-26 11:48   ` Stephen Smalley
2005-08-26 11:55     ` Stephen Smalley
2005-08-26 17:10       ` Chris Wright
2005-08-26 11:58     ` Stephen Smalley
2005-08-26 12:29       ` Stephen Smalley
     [not found]         ` <20050826163307.GA32690@immunix.com>
2005-08-26 12:54           ` serue [this message]
2005-08-26 16:55             ` Stephen Smalley
2005-08-26 16:22         ` Chris Wright
2005-08-26 16:50           ` Stephen Smalley
2005-08-26 17:06             ` Chris Wright
2005-08-26 11:08 ` 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=20050826125455.GA10491@sergelap.austin.ibm.com \
    --to=serue@us.ibm.com \
    --cc=chrisw@osdl.org \
    --cc=linux-security-module@wirex.com \
    --cc=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    --cc=tonyj@suse.de \
    /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.