selinux/sepolgen
Nicolas Iooss 302443cbbb 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 <nicolas.iooss@m4x.org>
2016-02-01 08:54:30 -05:00
..
src sepolgen: Support latest refpolicy interfaces 2016-02-01 08:54:30 -05:00
tests sepolgen: Edit tests so they pass even on Python3 where hash is random. 2015-07-16 13:06:03 -04:00
COPYING initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
ChangeLog Update ChangeLog and VERSION for release candidate 2016-01-07 10:01:31 -05:00
HACKING checkpolicy: libselinux: Fix dead links to www.nsa.gov/selinux 2012-03-28 08:39:07 -04:00
Makefile initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
VERSION Update ChangeLog and VERSION for release candidate 2016-01-07 10:01:31 -05:00