Skip to content

sepolgen: update for the latest reference policy

Karl MacMillan selinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sepolgen: update ply to the latest versionsepolgen/src/sepolgen/lex.py sepolgen/src/sepolgen/refparser.py sepolgen/src/sepolgen/yacc.py+711 -5230 replies
2/2sepolgen: handle the latest reference policysepolgen/src/sepolgen/refparser.py+88 -832 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] sepolgen: update for the latest reference policy

These patch series updates the sepolgen parser (refparser.py) to work with the latest reference policy. The first patch updates the parsing library (PLY) to a more recent version. The second patch updates the grammar and includes some general cleanups of the parser.

This highlights why I think that moving the interfaces and other reference policy language constructs into the language is a good idea. Tracking the reference policy is going to be time consuming and the current grammar is ambiguous in ways that are hard to fix. I also end up changing the parser to handle harmless "mistakes" in the reference policy (e.g., spurious semi-colons at the end of ifdefs). These would be caught by a compiler but are silently accepted by M4.

Karl

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.