All of lore.kernel.org
 help / color / mirror / Atom feed
From: Karl MacMillan <kmacmillan@mentalrootkit.com>
To: Shintaro Fujiwara <shintaro.fujiwara@gmail.com>
Cc: Karl MacMillan <kmacmill@redhat.com>, selinux <selinux@tycho.nsa.gov>
Subject: Re: There is a bug in checkmodule that is driving me nuts
Date: Mon, 23 Jul 2007 10:25:48 -0400	[thread overview]
Message-ID: <46A4BA6C.4060709@mentalrootkit.com> (raw)
In-Reply-To: <f71a82820707202120h46791ea4xaeef58248a8c346b@mail.gmail.com>

Shintaro Fujiwara wrote:
> Hello,
>
> Can I ask what policyrep is ?
> Is that policy-generating project on going or wat ?
>

Separate branch to rework the selinux policy compiler. It includes a 
library for representing policies (hence the name policyrep) that is 
useful for policy compilation, analysis, and generation. You can view 
the code at:

http://selinux.svn.sourceforge.net/viewvc/selinux/branches/policyrep/

Karl

> Thanks.
>
> 2007/7/21, Karl MacMillan <kmacmill@redhat.com>:
>>
>> On Fri, 2007-07-20 at 16:22 -0400, Daniel J Walsh wrote:
>> > The compiler is mistakenly seeing a
>> >
>> > gen_requires {
>> >        type  xguest_gnome_home_t;
>> > }
>> >
>> > As a redefinition of the type
>> >
>> >  /usr/bin/checkmodule -M -m guest.tmp -o 
>> guest.mod/usr/bin/checkmodule:
>> > loading policy configuration from guest.tmp
>> > policy/modules/users/guest.te:4:ERROR 'duplicate declaration of
>> > type/attribute' at token ';' on line 55020:
>> >         type xguest_gnome_home_t;
>> > #line 4
>> > /usr/bin/checkmodule:  error(s) encountered while parsing 
>> configuration
>> >
>> > The problem is the gen_requires happens before the declaration.
>> >
>> > The type is being declared in  a template file.
>>
>> For better or discarding of requires upon hitting a declaration isn't
>> like to be fixed (when the require is first).
>>
>> I have an alternative suggestion - remove all of the requires from the
>> policy and use an sepolgen-based pre-processor to add them back in until
>> the policyrep work is done. That will ease the migration and can be done
>> far more easily than fixing the current compiler.
>>
>> Karl
>>
>>
>> -- 
>> 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.
>>
>
> -- 
> 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.


--
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:[~2007-07-23 14:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-20 20:22 There is a bug in checkmodule that is driving me nuts Daniel J Walsh
2007-07-20 22:28 ` Karl MacMillan
2007-07-21  4:20   ` Shintaro Fujiwara
2007-07-23 14:25     ` Karl MacMillan [this message]
2007-07-23 14:30   ` Stephen Smalley
2007-07-23 14:38     ` Daniel J Walsh
2007-07-23 15:00       ` Karl MacMillan
2007-07-23 16:00         ` Daniel J Walsh
2007-07-23 16:00         ` 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=46A4BA6C.4060709@mentalrootkit.com \
    --to=kmacmillan@mentalrootkit.com \
    --cc=kmacmill@redhat.com \
    --cc=selinux@tycho.nsa.gov \
    --cc=shintaro.fujiwara@gmail.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.