All of lore.kernel.org
 help / color / mirror / Atom feed
From: guido@trentalancia.com (Guido Trentalancia)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] What is the best way to trim out modules, apps from refpolicy when building monolithic policy.
Date: Fri, 10 Jun 2011 20:07:37 +0200	[thread overview]
Message-ID: <1307729260.2804.1.camel@vortex> (raw)
In-Reply-To: <BANLkTinCs=HmU9rE64XYr_fyTJDSx3CU4g@mail.gmail.com>

Hi Sam !

On Fri, 2011-06-10 at 10:52 -0700, Sam Gandhi wrote:
> On Fri, Jun 10, 2011 at 9:34 AM, Christopher J. PeBenito
> <cpebenito@tresys.com> wrote:
> > On 06/10/11 12:05, Dominick Grift wrote:
> >> Wnen you do "make config" it creates a modules.conf i believe. You can
> >> remove modules from that file and then those should not be built i
> >> believe.
> >>
> >> You can also include a custom modules.conf in your package and replace
> >> that by the one that is generated before you actually compile the
> >> policy.
> >
> > I suggest the above, rather than deleting files out of the tree.  This
> > is one of the reasons we have a modules.conf for the policy.  The 'make
> > conf' target will create a modules.conf if you don't have one.
> >
> 
> I have created the modules.conf and things are progressing. What I am
> finding say I enable module ssh, now it wants me to enable the mail
> module also.
> 
> Now is it considered right thing to do go ahead and just edit ssh.if
> file and take out mta_getattr_spool($1_t) or there is better way to
> untangle the interdependency between the modules?

Perhaps you're looking for optional_policy() ?

> Should I introduce a boolean variable in policy/booleans.conf and make
> it tunable_policy('platform_has_mail', .. and send out the change for
> diff in case someone else might be interested?
> 
> -Sam

Guido

      reply	other threads:[~2011-06-10 18:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-10 15:56 [refpolicy] What is the best way to trim out modules, apps from refpolicy when building monolithic policy Sam Gandhi
2011-06-10 16:05 ` Dominick Grift
2011-06-10 16:34   ` Christopher J. PeBenito
2011-06-10 17:52     ` Sam Gandhi
2011-06-10 18:07       ` Guido Trentalancia [this message]

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=1307729260.2804.1.camel@vortex \
    --to=guido@trentalancia.com \
    --cc=refpolicy@oss.tresys.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.