python/sepolgen: fix refpolicy parsing of "permissive"

p_permissive() uses an undefined variable t, which is buggy. In order to
ignore permissive statements, the function only needs to "pass".

flake8 reported the following error:

    python/sepolgen/src/sepolgen/refparser.py:789:5: F821 undefined name 't'

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
Nicolas Iooss 2018-08-04 13:53:18 +02:00
parent 495c4c894a
commit 3d3c51d607
No known key found for this signature in database
GPG Key ID: C191415F340DAAA0

View File

@ -786,7 +786,7 @@ def p_role_allow(p):
def p_permissive(p):
'permissive : PERMISSIVE names SEMI'
t.skip(1)
pass
def p_avrule_def(p):
'''avrule_def : ALLOW names names COLON names names SEMI