mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-18 11:20:44 +00:00
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:
parent
495c4c894a
commit
3d3c51d607
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user