Bug 2277925

Summary: Report of illegal character in selinux-policy-devel
Product: [Fedora] Fedora Reporter: Robert Hinson <robert.hinson>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 40CC: dwalsh, knazekovan, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---Keywords: SELinux, Upgrades
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-30 07:33:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robert Hinson 2024-04-30 05:11:41 UTC
When I run sudo dnf update, this is one of the things I get.
Don't know if it is breaking anything.

  Upgrading        : selinux-policy-devel-40.17-1.fc40.noarch            77/196
  Running scriptlet: selinux-policy-devel-40.17-1.fc40.noarch            77/196
Illegal character '"'

Reproducible: Always

Comment 1 Milos Malik 2024-04-30 07:23:30 UTC
I believe this bug is a duplicate of BZ#2254206.

Comment 2 Milos Malik 2024-04-30 07:28:42 UTC
I can confirm that the problem is caused by the redundant parentheses:

# yum -y install selinux-policy-devel
Last metadata expiration check: 0:49:00 ago on Tue 30 Apr 2024 02:33:06 AM EDT.
Dependencies resolved.
================================================================================
 Package                         Arch      Version             Repository  Size
================================================================================
Installing:
 selinux-policy-devel            noarch    40.17-1.fc41        rawhide    925 k
Upgrading:
 selinux-policy                  noarch    40.17-1.fc41        rawhide     68 k
 selinux-policy-targeted         noarch    40.17-1.fc41        rawhide    6.9 M
Installing dependencies:
 m4                              x86_64    1.4.19-9.fc40       rawhide    305 k
 policycoreutils-devel           x86_64    3.6-3.fc40          rawhide    138 k
 policycoreutils-python-utils    noarch    3.6-3.fc40          rawhide     51 k

Transaction Summary
================================================================================
Install  4 Packages
Upgrade  2 Packages

Total download size: 8.4 M
Downloading Packages:
(1/6): policycoreutils-python-utils-3.6-3.fc40. 293 kB/s |  51 kB     00:00    
(2/6): policycoreutils-devel-3.6-3.fc40.x86_64. 649 kB/s | 138 kB     00:00    
(3/6): m4-1.4.19-9.fc40.x86_64.rpm              1.2 MB/s | 305 kB     00:00    
(4/6): selinux-policy-40.17-1.fc41.noarch.rpm   1.5 MB/s |  68 kB     00:00    
(5/6): selinux-policy-devel-40.17-1.fc41.noarch 5.2 MB/s | 925 kB     00:00    
(6/6): selinux-policy-targeted-40.17-1.fc41.noa  32 MB/s | 6.9 MB     00:00    
--------------------------------------------------------------------------------
Total                                            14 MB/s | 8.4 MB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Running scriptlet: selinux-policy-targeted-40.17-1.fc41.noarch            1/1 
  Preparing        :                                                        1/1 
  Upgrading        : selinux-policy-40.17-1.fc41.noarch                     1/8 
  Running scriptlet: selinux-policy-40.17-1.fc41.noarch                     1/8 
  Running scriptlet: selinux-policy-targeted-40.17-1.fc41.noarch            2/8 
  Upgrading        : selinux-policy-targeted-40.17-1.fc41.noarch            2/8 
  Running scriptlet: selinux-policy-targeted-40.17-1.fc41.noarch            2/8 
  Installing       : policycoreutils-python-utils-3.6-3.fc40.noarch         3/8 
  Installing       : m4-1.4.19-9.fc40.x86_64                                4/8 
  Installing       : policycoreutils-devel-3.6-3.fc40.x86_64                5/8 
  Installing       : selinux-policy-devel-40.17-1.fc41.noarch               6/8 
  Running scriptlet: selinux-policy-devel-40.17-1.fc41.noarch               6/8 
Illegal character '"'

  Running scriptlet: selinux-policy-40.16-1.fc41.noarch                     7/8 
  Cleanup          : selinux-policy-40.16-1.fc41.noarch                     7/8 
  Running scriptlet: selinux-policy-40.16-1.fc41.noarch                     7/8 
  Cleanup          : selinux-policy-targeted-40.16-1.fc41.noarch            8/8 
  Running scriptlet: selinux-policy-targeted-40.16-1.fc41.noarch            8/8 
  Running scriptlet: selinux-policy-targeted-40.17-1.fc41.noarch            8/8 
  Running scriptlet: selinux-policy-targeted-40.16-1.fc41.noarch            8/8 

Upgraded:
  selinux-policy-40.17-1.fc41.noarch                                            
  selinux-policy-targeted-40.17-1.fc41.noarch                                   
Installed:
  m4-1.4.19-9.fc40.x86_64                                                       
  policycoreutils-devel-3.6-3.fc40.x86_64                                       
  policycoreutils-python-utils-3.6-3.fc40.noarch                                
  selinux-policy-devel-40.17-1.fc41.noarch                                      

Complete!
# sepolgen-ifgen
Illegal character '"'
# grep -R virtinterfaced_var_run_t /usr/share/selinux/
/usr/share/selinux/devel/include/contrib/virt.if:		type virtinterfaced_var_run_t;
/usr/share/selinux/devel/include/contrib/virt.if:	filetrans_pattern($1, virt_var_run_t, virtinterfaced_var_run_t, dir, "interfac(e)")
# vim /usr/share/selinux/devel/include/contrib/virt.if
# grep -R virtinterfaced_var_run_t /usr/share/selinux/
/usr/share/selinux/devel/include/contrib/virt.if:		type virtinterfaced_var_run_t;
/usr/share/selinux/devel/include/contrib/virt.if:	filetrans_pattern($1, virt_var_run_t, virtinterfaced_var_run_t, dir, "interface")
# sepolgen-ifgen
#

The error message does not appear after deleting the parentheses                                                                      ^^^

Comment 3 Zdenek Pytela 2024-04-30 07:33:14 UTC

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