From: dac.override@gmail.com (Dominick Grift)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH] Fix minor typo in init.if
Date: Tue, 9 Sep 2014 20:51:28 +0200 [thread overview]
Message-ID: <20140909185127.GB7167@x220.network2> (raw)
In-Reply-To: <540F49A2.2060503@tresys.com>
On Tue, Sep 09, 2014 at 02:40:34PM -0400, Christopher J. PeBenito wrote:
> On 9/9/2014 9:28 AM, Dominick Grift wrote:
> > On Tue, Sep 09, 2014 at 08:45:53AM -0400, Christopher J. PeBenito wrote:
> >> On 9/8/2014 6:46 PM, Nicolas Iooss wrote:
> >>> 2014-09-08 20:27 GMT+02:00 Dominick Grift:
> >>>> It seems that we have one or more commits that break reference policy since the last release
> >>>>
> >>>> I am trying to track down the culprits, it started after last release but before or during June 25th
> >>>>
> >>>> It is going to take time to track this down because build-testing reference policy is so slow.
> >>>>
> >>>> Looking forward to the day we fully moved to cil/secilc
> >>>>
> >>>
> >>> Tonight I had the idea of using travis-ci.org to automate some kind of
> >>> testing. This free service can basically watch public Github
> >>> repositories and run tests after every commit. I ran tests in some
> >>> configurations [1] and every test case failed.
> >>>
> >>> The monolithic build fails with [2]:
> >>>
> >>> /usr/bin/checkpolicy -U deny policy.conf -o policy.26
> >>> /usr/bin/checkpolicy: loading policy configuration from policy.conf
> >>> checkpolicy: expand.c:721: role_fix_callback: Assertion `regular_role
> >>> != ((void *)0) && regular_role->flavor == 0' failed.
> >>> make: *** [policy.26] Aborted
> >>>
> >>> The modular build verification ("make validate") fails with [3]:
> >>>
> >>> /usr/bin/semodule_expand tmp/test.lnk tmp/policy.bin
> >>> semodule_expand: expand.c:721: role_fix_callback: Assertion
> >>> `regular_role != ((void *)0) && regular_role->flavor == 0' failed.
> >>> make: *** [validate] Aborted
> >>>
> >>> Is this assertion failure known? I did not take time to investigate
> >>> further but travis-ci may run an old version of the build toolchain (on
> >>> Ubuntu) which breaks the latest refpolicy.
> >>
> >> I'd have to look at the code to better understand what the assertion means.
> >>
> >> Are you using HEAD version of refpolicy and HEAD refpolicy-contrib? I'm
> >> not able to reproduce any build errors.
> >>
> >
> > You aren't? did you run your "super-quicktest" script on the HEADS?
>
> I ran my buildtest script. Are you using the RC toolchain or last release?
>
I found the bug that broken built. It was the presence on a non-existant boolean identifier
However this only breaks monolithic, modular just ignores it since it was called only once, and in an optional policy block
Thus if you do not test monolithic then you will not notice the bug.
Anyhow, It is fixed and i pushed the fix to refpolicy-contrib
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 648 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20140909/d84905be/attachment.bin
next prev parent reply other threads:[~2014-09-09 18:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-07 21:29 [refpolicy] [PATCH] Fix minor typo in init.if Nicolas Iooss
2014-09-08 18:27 ` Dominick Grift
2014-09-08 22:46 ` Nicolas Iooss
2014-09-09 12:45 ` Christopher J. PeBenito
2014-09-09 13:28 ` Dominick Grift
2014-09-09 18:40 ` Christopher J. PeBenito
2014-09-09 18:51 ` Dominick Grift [this message]
2014-09-10 19:53 ` [refpolicy] Some already-fixed bugs (was: Re: [PATCH] Fix minor typo in init.if) Nicolas Iooss
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=20140909185127.GB7167@x220.network2 \
--to=dac.override@gmail.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.