All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christopher J. PeBenito" <cpebenito@tresys.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: <russell@coker.com.au>, SE-Linux <selinux@tycho.nsa.gov>
Subject: Re: apol and active modules
Date: Mon, 25 Jul 2011 10:48:39 -0400	[thread overview]
Message-ID: <4E2D8247.3070108@tresys.com> (raw)
In-Reply-To: <1311602889.25226.27.camel@moss-pluto>

On 07/25/11 10:08, Stephen Smalley wrote:
> On Mon, 2011-07-25 at 22:48 +1000, Russell Coker wrote:
>> On Mon, 25 Jul 2011, "Christopher J. PeBenito"<cpebenito@tresys.com>  wrote:
>>> On 07/24/11 07:26, Russell Coker wrote:
>>>> Why can't apol (at least version 3.3.6.ds) parse the files in
>>>> /etc/selinux/$SELINUXTYPE/modules/active/modules?  Is this considered a
>>>> bug or a wontfix thing?
>>>
>>> Can you be more specific about your usage?  There shouldn't be a problem
>>> looking at those, since they're just a copy of what you install via
>>> semodule -i/-b.
>>
>> # diff /usr/share/selinux/default/base.pp \
>> /etc/selinux/default/modules/active/base.pp
>> Binary files /usr/share/selinux/default/base.pp and
>> /etc/selinux/default/modules/active/base.pp differ
>>
>> The files are not just a copy.
>>
>> When /tmp/base.pp is a copy of /etc/selinux/default/modules/active/base.pp I
>> get the following:
>>
>> $ apol  /tmp/base.pp
>> Initializing libqpol... done.
>> Initializing libapol... done.
>> Initializing libsefs... done.
>> Initializing libapol_tcl... done.
>> Initializing Tk... done.
>> (unknown source)::ERROR 'syntax error' at token 'BZh91AY' on line 1:
>
> BZh is the bzip2 magic string.  I'd guess your installed modules are
> compressed (the default) and thus can't be opened by apol unless it
> knows to decompress them first?

Ah, I forgot about that.  SETools gained the bzip2 support in 3.3.7.

-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

--
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:[~2011-07-25 14:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-24 11:26 apol and active modules Russell Coker
2011-07-25 12:36 ` Christopher J. PeBenito
2011-07-25 12:48   ` Russell Coker
2011-07-25 12:55     ` Christopher J. PeBenito
2011-07-25 13:08       ` Russell Coker
2011-07-25 14:08     ` Stephen Smalley
2011-07-25 14:48       ` Christopher J. PeBenito [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=4E2D8247.3070108@tresys.com \
    --to=cpebenito@tresys.com \
    --cc=russell@coker.com.au \
    --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.