Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sepolgen: Support latest refpolicy interfaces
Some refpolicy interfaces use: * "$" character in paths, for example in kernel/selinux.if: genfscon selinuxfs /booleans/$2 gen_context(system_u:object_r:$1,s0) * empty members in ifelse statement, for example in system/init.if: ifelse(`$5',`',`',` ... ') Modify sepolgen/refparser grammar accordingly. This fixes the following syntax errors reported by sepolgen-ifgen: /usr/share/selinux/refpolicy/include/kernel/selinux.if: Syntax error on line 43 gen_context [type=GEN_CONTEXT] /usr/share/selinux/refpolicy/include/system/init.if: Syntax error on line 1416 ' [type=SQUOTE] /usr/share/selinux/refpolicy/include/system/init.if: Syntax error on line 1422 ' [type=SQUOTE] Signed-off-by: Nicolas Iooss <[email protected]>
- Loading branch information