All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: SE Linux <selinux@tycho.nsa.gov>
Subject: Re: Can we make libsemanage default to expand-check=0
Date: Wed, 06 Aug 2008 08:56:18 -0400	[thread overview]
Message-ID: <48999F72.2040003@redhat.com> (raw)
In-Reply-To: <1217948012.2994.93.camel@moss-spartans.epoch.ncsc.mil>

Stephen Smalley wrote:
> On Tue, 2008-08-05 at 10:33 -0400, Daniel J Walsh wrote:
>> plain text document attachment (libsemanage-rhat.patch)
>> diff --exclude-from=exclude -N -u -r nsalibsemanage/src/semanage.conf libsemanage-2.0.25/src/semanage.conf
>> --- nsalibsemanage/src/semanage.conf	2008-06-12 23:25:16.000000000 -0400
>> +++ libsemanage-2.0.25/src/semanage.conf	2008-07-17 13:58:44.000000000 -0400
>> @@ -35,4 +35,4 @@
>>  # given in <sepol/policydb.h>.  Change this setting if a different
>>  # version is necessary.
>>  #policy-version = 19
>> -
>> +expand-check=0
> 
> I thought we were going to leave this unchanged upstream, and only make
> this change in Fedora.
>
Ok.  I was just trying to get rid of my patch.

> We want the checking to be applied for policy developers.  If you were
> to incorporate 'make validate' into the policy spec file, then you would
> get it applied when you perform a policy build.  And ideally there would
> be similar support in the selinux-policy-devel Makefile for policy
> module writers to use.  All it does is run semodule_link followed by
> semodule_expand, which applies the checking.
> 
make validate is now in the Rawhide spec file.
> If we were to change the upstream default, we'd likely change it in the
> code (semanage_conf_init()) rather than just in the .conf file.  And
> then policy developers would need to add expand-check=1 to their .conf
> file to set it.  
> 
Putting this into the selinux-policy-devel package (which does not exist
any longer, it is all part of selinux-policy) does not work.  Since the
semodule_lnk and semodule_expand do not use the installed system.  So
you would have hack up the Makefile to grab all of the pp files in
/etc/selinux/TYPE/modules/active/*.pp and isolate the base.pp file, then
add the new pp files that you are creating.  Or somehow add this as a
parameter to semodule_link to make it happen automatically

--
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:[~2008-08-06 12:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-05 14:33 Can we make libsemanage default to expand-check=0 Daniel J Walsh
2008-08-05 14:53 ` Stephen Smalley
2008-08-06 12:56   ` Daniel J Walsh [this message]
2008-08-08 16:46 ` Joshua Brindle
2008-08-08 17:56   ` Daniel J Walsh

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=48999F72.2040003@redhat.com \
    --to=dwalsh@redhat.com \
    --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.