selinux/python
Petr Lautrbach 2fc29ae797 sepolgen-ifgen: allow M4 escaped filenames
When a file name in type transition rule used in an interface is same as
a keyword, it needs to be M4 escaped so that the keyword is not expanded
by M4, e.g.

-	filetrans_pattern($1, virt_var_run_t, virtinterfaced_var_run_t, dir, "interface")
+	filetrans_pattern($1, virt_var_run_t, virtinterfaced_var_run_t, dir, ``"interface"'')

But sepolgen-ifgen could not parse such string:

    # sepolgen-ifgen
    Illegal character '`'

This change allows M4 escaping inside quoted strings and fixed described
problem.

https://bugzilla.redhat.com/show_bug.cgi?id=2254206

Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
Acked-by: James Carter <jwcart2@gmail.com>
2024-12-17 14:53:10 -05:00
..
audit2allow audit2allow: CIL output mode 2024-03-20 14:18:40 -04:00
chcat Do not automatically install Russian translations 2023-08-16 13:33:47 -04:00
po Update translations 2023-11-07 16:27:38 -05:00
semanage python/semanage: Allow modifying records on "add" 2024-03-04 09:57:53 -05:00
sepolgen sepolgen-ifgen: allow M4 escaped filenames 2024-12-17 14:53:10 -05:00
sepolicy Update VERSIONs to 3.8-rc2 for release. 2024-12-11 17:43:25 +01:00
LICENSE docs: provide a top level LICENSE file 2022-10-05 08:20:38 -04:00
Makefile Split po/ translation files into the relevant sub-directories 2022-04-06 10:52:41 +02:00
VERSION Update VERSIONs to 3.8-rc2 for release. 2024-12-11 17:43:25 +01:00