Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust sepolgen grammar to support allowxperm, et. al. #348

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Mar 30, 2022

  1. sepolgen: Update refparser to handle xperm

    Extend the grammar to support `allowxperm`, et. al. directives, which
    were added in policy version 30 to give more granular control.  This
    commit adds basic support for the syntax, copying heavily from the
    grammar for `allowperm`, et. al.
    
    Signed-off-by: Chris Lindee <[email protected]>
    ColMelvin committed Mar 30, 2022
    Configuration menu
    Copy the full SHA
    5798cf4 View commit details
    Browse the repository at this point in the history
  2. sepolgen: Support named xperms

    The `allowxperm` et. al. directives take a magical integer for one of
    the fields, which hinders readability.  This commit adds support for
    basic names for a number or group of numbers.
    
    Notably, this does not support recursive definition of names, as that
    would require a larger grammar re-write to avoid parsing conflicts.
    
    Signed-off-by: Chris Lindee <[email protected]>
    ColMelvin committed Mar 30, 2022
    Configuration menu
    Copy the full SHA
    9bcd61d View commit details
    Browse the repository at this point in the history