Re: [PATCH 0/3] pp2cil fixes based on feedback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
National Security Agency
_______________________________________________
Selinux mailing list
Selinux@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.




[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux