Bug 2254169 - /usr/bin/sepolgen-ifgen reports "Illegal character '"'"
Summary: /usr/bin/sepolgen-ifgen reports "Illegal character '"'"
Keywords:
Status: CLOSED DUPLICATE of bug 2254206
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: 40
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Petr Lautrbach
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-12-12 13:23 UTC by Renaud Métrich
Modified: 2024-06-10 15:59 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
: 2254206 (view as bug list)
Environment:
Last Closed: 2024-06-10 15:59:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Renaud Métrich 2023-12-12 13:23:06 UTC
Installing selinux-policy-devel package, I could see the following error message when RPM scriptlet executes:
~~~
# /usr/bin/sepolgen-ifgen
Illegal character '"'
~~~

This is seen with an uncustomized fresh system.

Reproducible: Always

Steps to Reproduce:
1. Install selinux-policy-devel package

Actual Results:  
Illegal character '"'


Expected Results:  
No such error message

Comment 1 Petr Lautrbach 2023-12-12 16:43:39 UTC
It's caused by

filetrans_pattern($1, virt_var_run_t, virtinterfaced_var_run_t, dir, "interfac(e)")

in /usr/share/selinux/devel/include/contrib/virt.if

"interfac(e)" is probably a typo, "(e)" is same as "e"


This change would fix it:

--- /usr/share/selinux/devel/include/contrib/virt.if.rpm        2023-12-12 11:36:05.608235197 -0500
+++ /usr/share/selinux/devel/include/contrib/virt.if    2023-12-12 11:36:20.212343183 -0500
@@ -164,7 +164,7 @@
        filetrans_pattern($1, virt_driver_var_run, virt_common_var_run_t, dir, "common")
        filetrans_pattern($1, virt_var_run_t, virt_common_var_run_t, dir, "common")
 
-       filetrans_pattern($1, virt_var_run_t, virtinterfaced_var_run_t, dir, "interfac(e)")
+       filetrans_pattern($1, virt_var_run_t, virtinterfaced_var_run_t, dir, "interface")
        filetrans_pattern($1, virt_var_run_t, virtnodedevd_var_run_t, dir, "nodedev")
        filetrans_pattern($1, virt_var_run_t, virtnwfilterd_var_run_t, dir, "nwfilter")
        filetrans_pattern($1, virt_var_run_t, virtsecretd_var_run_t, dir, "secrets")

But sepolgen-ifgen should not fail on it.

Comment 2 Aoife Moloney 2024-02-15 23:07:41 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 3 Ralf Corsepius 2024-05-02 18:00:04 UTC
This bug is still present in selinux-policy-devel-40.17-1.fc40.noarch

Comment 4 Petr Lautrbach 2024-06-10 15:59:07 UTC
This really needs to be fixed in bz#2254206

*** This bug has been marked as a duplicate of bug 2254206 ***


Note You need to log in before you can comment on or make changes to this bug.