All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Brindle <method@manicmethod.com>
To: Eric Paris <eparis@redhat.com>
Cc: selinux@tycho.nsa.gov, sds@tyho.nsa.gov
Subject: Re: Help with toolchain
Date: Fri, 22 Apr 2011 10:35:21 -0400	[thread overview]
Message-ID: <4DB19229.9090803@manicmethod.com> (raw)
In-Reply-To: <1303233422.2053.6.camel@localhost.localdomain>

Eric Paris wrote:
> I've got a minimal policy and a small policy module I wrote (ok the
> 'policy' is the kernel mdp, but who cares)
>
> I can do:
> 	checkmodule -o policy.bin policy.conf
> 	checkmodule -m -o filename.mod filename.te
>
> To generate a base module and a 'normal' module.  I can use:
> 	dismod policy.bin
> 	l
> 	filename.mod
> to load the base module and then link in the 'normal' module.  But I
> don't know to make it expand.

you could use semodule_link in policycoreutils and then gdb through 
semodule_expand.

>
> I'd like to turn the policy.conf + filename.te into a fully linked
> expanded kernel policy.X but I'm not sure what magic incantation I need
> to use.....
>
> (No cat filename.te>>  policy.conf; checkpolicy -o policy.X policy.conf
> is no adequate.  It's somewhere in expand that things seems to be
> breaking so I want as small of a policy and as small of steps as I can
> make to debug where things are dying)
>
> -Eric
>

--
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-04-22 14:35 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1303233422.2053.6.camel@localhost.localdomain>]

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=4DB19229.9090803@manicmethod.com \
    --to=method@manicmethod.com \
    --cc=eparis@redhat.com \
    --cc=sds@tyho.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.