All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Carter <jwcart2@tycho.nsa.gov>
To: Yuli Khodorkovskiy <ykhodorkovskiy@tresys.com>,
	SELinux List <selinux@tycho.nsa.gov>,
	Steve Lawrence <slawrence@tresys.com>
Subject: Re: [PATCH 0/3] pp2cil fixes based on feedback
Date: Thu, 02 Oct 2014 10:44:31 -0400	[thread overview]
Message-ID: <542D64CF.809@tycho.nsa.gov> (raw)
In-Reply-To: <1412255410-15537-1-git-send-email-ykhodorkovskiy@tresys.com>

On 10/02/2014 09:10 AM, Yuli Khodorkovskiy wrote:
> This patchset provides fixes to the pp2cil tool based on feedback for
> 2014-08-26-rc1.
>
> An issue was encountered in 2014-08-26-rc1 with missing roles [1].
> Role declarations will now be printed in base and modules, where
> before only module role declarations were printed. Also, roletype
> statements will only be created when a role or a type are in the
> correct scope. As a result of these changes, policies that declare
> roles mulitple times in different modules will result in pp2cil
> generating duplicate roles. Since CIL does not allow identical role
> delcarations in different modules, current policies must be rebuilt
> with a refpolicy patch that removes duplicate role declarations [2].
>

What about current policies? How does this effect backwards compatibility?

> A bug in creating filecon statements was also fixed where a missing
> trailing newline in .fc files would cause parsing issues.
>
> Finally, generated typeattribute/sets will now be printed immediately
> unless they are in avrule conditionals/blocks. The special case will
> have generated typeattributes/sets to be printed after the
> conditionals/blocks are printed.
>
> [1] http://marc.info/?l=selinux&m=140983712508791&w=2
> [2] https://github.com/TresysTechnology/refpolicy/commit/330b0fc3331d3b836691464734c96f3da3044490
>
>
> Yuli Khodorkovskiy (3):
>    policycoreutils/hll/pp: Fix role/roletype scoping
>    policycoreutils/hll/pp: fix '\n' parsing in filecon statements
>    policycoreutils/hll/pp: change printing behavior of typeattribute/sets
>
>   policycoreutils/hll/pp/pp.c | 763 ++++++++++++++++++++++++++++++--------------
>   1 file changed, 529 insertions(+), 234 deletions(-)
>


-- 
James Carter <jwcart2@tycho.nsa.gov>
National Security Agency

  parent reply	other threads:[~2014-10-02 14:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-02 13:10 [PATCH 0/3] pp2cil fixes based on feedback Yuli Khodorkovskiy
2014-10-02 13:10 ` [PATCH 1/3] policycoreutils/hll/pp: Fix role/roletype scoping Yuli Khodorkovskiy
2014-10-02 13:10 ` [PATCH 2/3] policycoreutils/hll/pp: fix '\n' parsing in filecon statements Yuli Khodorkovskiy
2014-10-02 13:10 ` [PATCH 3/3] policycoreutils/hll/pp: change printing behavior of typeattribute/sets Yuli Khodorkovskiy
2014-10-02 14:06 ` [PATCH 0/3] pp2cil fixes based on feedback Steve Lawrence
2014-10-02 14:44 ` James Carter [this message]
2014-10-02 14:58   ` Steve Lawrence
2014-10-02 15:08     ` James Carter
2014-10-02 15:25       ` Steve Lawrence
2014-10-02 16:11         ` [PATCH] policycoreutils/hll/pp: only print certain roles when declared in base modules Steve Lawrence
2014-10-02 16:24         ` [PATCH 0/3] pp2cil fixes based on feedback James Carter
2014-10-02 16:35           ` Steve Lawrence

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=542D64CF.809@tycho.nsa.gov \
    --to=jwcart2@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    --cc=slawrence@tresys.com \
    --cc=ykhodorkovskiy@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.