Bug 756774

Summary: libraries.if: Syntax error on line 172766 ~ [type=TILDE]
Product: [Fedora] Fedora Reporter: Michal Schmidt <mschmidt>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mads, mgrepl, rrakus
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: selinux-policy-3.10.0-61.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-30 01:59:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Michal Schmidt 2011-11-24 13:53:20 UTC
An error message appears when updating to selinux-policy-3.10.0-59.fc16 (currently on its way to updates-testing):

Running Transaction
  Updating   : selinux-policy-3.10.0-59.fc16.noarch                         1/4 
/usr/share/selinux/devel/include/system/libraries.if: Syntax error on line 172766 ~ [type=TILDE]
/usr/share/selinux/devel/include/system/libraries.if: Syntax error on line 172768 ~ [type=TILDE]
  Updating   : selinux-policy-targeted-3.10.0-59.fc16.noarch                2/4 
  Cleanup    : selinux-policy-targeted-3.10.0-56.fc16.noarch                3/4 
  Cleanup    : selinux-policy-3.10.0-56.fc16.noarch                         4/4 

No such errors were present with -58.fc16 or earlier.

Comment 1 Miroslav Grepl 2011-11-24 14:18:42 UTC
# yum update checkpolicy
# yum reinstall selinux-policy-targeted

Comment 2 Miroslav Grepl 2011-11-24 14:22:13 UTC
Fixed in selinux-policy-3.10.0-60.fc16

Comment 3 Fedora Update System 2011-11-24 15:05:10 UTC
selinux-policy-3.10.0-60.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-60.fc16

Comment 4 Michal Schmidt 2011-11-24 15:51:34 UTC
I'm still seeing the error when I reinstall selinux-policy*-60.fc16.rpm with checkpolicy-2.1.6-2.fc16.x86_64 installed.

Comment 5 Miroslav Grepl 2011-11-24 16:34:30 UTC
Ah, I apologize, a new policycoreutils pkg is needed for this.

policycoreutils-2.1.4-10.fc16

Comment 6 Roman Rakus 2011-11-24 17:12:52 UTC
(In reply to comment #5)
> Ah, I apologize, a new policycoreutils pkg is needed for this.
> 
> policycoreutils-2.1.4-10.fc16

So add it to requirements?

Comment 7 Fedora Update System 2011-11-25 02:17:16 UTC
Package selinux-policy-3.10.0-60.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-60.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16371/selinux-policy-3.10.0-60.fc16
then log in and leave karma (feedback).

Comment 8 Michal Schmidt 2011-11-25 13:37:59 UTC
Still not quite there yet with selinux-policy-3.10.0-61.fc16. See this RPM transaction:

Transaction Test Succeeded
Running Transaction
  Updating   : policycoreutils-2.1.4-10.fc16.x86_64                        1/12 
  Updating   : selinux-policy-3.10.0-61.fc16.noarch                        2/12 
/usr/share/selinux/devel/include/system/libraries.if: Syntax error on line 172766 ~ [type=TILDE]
/usr/share/selinux/devel/include/system/libraries.if: Syntax error on line 172768 ~ [type=TILDE]
  Updating   : policycoreutils-python-2.1.4-10.fc16.x86_64                 3/12 
  Updating   : policycoreutils-sandbox-2.1.4-10.fc16.x86_64                4/12 
  Updating   : policycoreutils-gui-2.1.4-10.fc16.x86_64                    5/12 
  Updating   : selinux-policy-targeted-3.10.0-61.fc16.noarch               6/12 
  Cleanup    : policycoreutils-gui-2.1.4-3.fc16.x86_64                     7/12 
  Cleanup    : selinux-policy-targeted-3.10.0-56.fc16.noarch               8/12 
  Cleanup    : selinux-policy-3.10.0-56.fc16.noarch                        9/12 
  Cleanup    : policycoreutils-sandbox-2.1.4-3.fc16.x86_64                10/12 
  Cleanup    : policycoreutils-python-2.1.4-3.fc16.x86_64                 11/12 
  Cleanup    : policycoreutils-2.1.4-3.fc16.x86_64                        12/12

Comment 9 Fedora Update System 2011-11-25 23:25:37 UTC
Package selinux-policy-3.10.0-61.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-61.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16371/selinux-policy-3.10.0-61.fc16
then log in and leave karma (feedback).

Comment 10 Miroslav Grepl 2011-11-28 13:10:17 UTC
Yes, you are right, it happens in this order.

Comment 12 Daniel Walsh 2011-11-29 03:08:16 UTC
Yes this will be fixed for now on. Sadly the update that fixed the problem also triggers it.

You can very it is fixed by running 

# sepolgen-ifgen 

as root, and making sure the error is not generated.

Comment 13 Mads Kiilerich 2011-11-29 19:13:34 UTC
I got a slightly different error - I assume it is the same error anyway:

  Updating   : selinux-policy-3.10.0-61.fc16.noarch   127/477 
/usr/share/selinux/devel/include/system/libraries.if: Syntax error on line 171643 ~ [type=TILDE]
/usr/share/selinux/devel/include/system/libraries.if: Syntax error on line 171645 ~ [type=TILDE]

  Cleanup    : selinux-policy-3.10.0-51.fc16.noarch   354/477

Comment 14 Fedora Update System 2011-11-30 01:59:49 UTC
selinux-policy-3.10.0-61.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.