platform_external_selinux/python
Vit Mojzis e12f71e82f python/sepolgen: allow any policy statement in if(n)def
"ifdef/ifndef" statements can be used to conditionally define
an interface, but this syntax is not recognised by sepolgen-ifgen.
Fix sepolgen-ifgen to allow any policy statement inside an
"ifdef/ifndef" statement.

Fixes:
        $ cat <<EOF > i.if
ifndef(`apache_manage_pid_files',`
        interface(`apache_manage_pid_files',`
                manage_files_pattern($1, httpd_var_run_t, httpd_var_run_t)
        ')
')

        #sepolgen-ifgen --interface=i.if
        i.if: Syntax error on line 2 interface [type=INTERFACE]
        i.if: Syntax error on line 4 ' [type=SQUOTE]

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
[OM: s/fidef/ifdef/]
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2021-01-27 17:02:45 +01:00
..
audit2allow python/audit2allow: add #include <limits.h> to sepolgen-ifgen-attr-helper.c 2020-07-21 08:14:43 +02:00
chcat python/chcat: remove unnecessary assignment 2019-09-17 10:38:49 -04:00
semanage python/semanage: Sort imports in alphabetical order 2021-01-13 23:48:24 +01:00
sepolgen python/sepolgen: allow any policy statement in if(n)def 2021-01-27 17:02:45 +01:00
sepolicy Update VERSIONs and Python bindings version to 3.2-rc1 for release 2021-01-20 12:40:14 +01:00
COPYING Add COPYING files for new subdirs. 2016-11-16 11:19:51 -05:00
Makefile python: run all the tests with "make test" 2019-01-08 10:15:46 +01:00
VERSION Update VERSIONs and Python bindings version to 3.2-rc1 for release 2021-01-20 12:40:14 +01:00