Skip to contentSkip to conversation

sepolgen: update for the latest reference policy

PATCH In review Karl MacMillan 1 participant 1 message Feb 21, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw

cover 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.