Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 822320 - Updating : selinux-policy-3.10.0-124.fc17:Syntax error on line 40398 jetty_cache_t [type=IDENTIFIER]
Summary: Updating : selinux-policy-3.10.0-124.fc17:Syntax error on line 40398 jetty_...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 825864 825969 836019 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-17 04:32 UTC by Joachim Backes
Modified: 2013-07-04 14:41 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-04 14:41:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
f17 guest, installed & updated, got selinux-policy "syntax error" (deleted)
2012-09-19 15:50 UTC, Reartes Guillermo
no flags Details

Description Joachim Backes 2012-05-17 04:32:42 UTC
Description of problem:
When updating selinux-policy from updates-testing repo, I get an error messgae:

/usr/share/selinux/devel/include/services/jetty.if: Syntax error on line 40398 jetty_cache_t [type=IDENTIFIER]

Version-Release number of selected component (if applicable):

selinux-policy-3.10.0-124.fc17.noarch
How reproducible:

I didn't try
Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 3 Miroslav Grepl 2012-05-17 12:04:22 UTC
oops, also selinux-policy-devel package is needed

http://kojipkgs.fedoraproject.org/packages/selinux-policy/3.10.0/125.fc17/noarch/selinux-policy-devel-3.10.0-125.fc17.noarch.rpm

Comment 5 Miroslav Grepl 2012-05-17 13:49:05 UTC
Try to run

# sepolgen-ifgen

Comment 6 Joachim Backes 2012-05-17 14:39:43 UTC
(In reply to comment #5)
> Try to run
> 
> # sepolgen-ifgen

No message:

backes@eule [~/Desktop]: sudo sepolgen-ifgen
backes@eule [~/Desktop]:

Comment 7 Dominic Cleal 2012-05-18 06:03:44 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > oops, also selinux-policy-devel package is needed
> > 
> > http://kojipkgs.fedoraproject.org/packages/selinux-policy/3.10.0/125.fc17/noarch/selinux-policy-devel-3.10.0-125.fc17.noarch.rpm
> 
> Bad day today? :( :( :(
> 
..
> Preparing...                ########################################### [100%]
>    1:selinux-policy         ########################################### [ 33%]
> /usr/share/selinux/devel/include/services/jetty.if: Syntax error on line 40398
> jetty_cache_t [type=IDENTIFIER]
>    2:selinux-policy-targeted########################################### [ 67%]
>    3:selinux-policy-devel   ########################################### [100%]

Is the reason you got the error because -devel (which contains the fixed file) has installed after the policy was regenerated?

I also hit this issue, but have updated -devel then rebuilt the policy with semodule with no errors.

Comment 8 Joachim Backes 2012-05-18 07:04:41 UTC
(In reply to comment #7)
> (In reply to comment #4)
> > (In reply to comment #3)
> > > oops, also selinux-policy-devel package is needed
> > > 
> > > http://kojipkgs.fedoraproject.org/packages/selinux-policy/3.10.0/125.fc17/noarch/selinux-policy-devel-3.10.0-125.fc17.noarch.rpm
> > 
> > Bad day today? :( :( :(
> > 
> ..
> > Preparing...                ########################################### [100%]
> >    1:selinux-policy         ########################################### [ 33%]
> > /usr/share/selinux/devel/include/services/jetty.if: Syntax error on line 40398
> > jetty_cache_t [type=IDENTIFIER]
> >    2:selinux-policy-targeted########################################### [ 67%]
> >    3:selinux-policy-devel   ########################################### [100%]
> 
> Is the reason you got the error because -devel (which contains the fixed file)
> has installed after the policy was regenerated?

I don't know! In any case I updated selinux-policy-devel in a second cycle *after* having updated selinux-policy and selinux-policy-targeted (see comment #3). Additionally, I don't know why selinux-policy-devel was not automatically updated because of dependencies.

Comment 9 Joachim Backes 2012-05-18 07:15:57 UTC
> Additionally, I don't know why selinux-policy-devel was not automatically
> updated because of dependencies.

sorry, my mistake, I installed directly by rpm. But  at least I expect that the need for updating selinux-policy-devel too should heve been reported by rpm.

Comment 10 Daniel Walsh 2012-05-18 14:56:05 UTC
Miroslav we need to  move the trigger in policycoreutils rebuild to the -devel package.

%triggerin python -- selinux-policy-devel
selinuxenabled && [ -f /usr/share/selinux/devel/include/build.conf ] && /usr/bin/sepolgen-ifgen 2>/dev/null
exit 0

This is a policycoreutils problem.

Comment 11 Daniel Walsh 2012-05-18 15:18:06 UTC
Fixed in policycoreutils-2.1.11-14.fc17

Comment 12 Miroslav Grepl 2012-05-29 05:31:43 UTC
*** Bug 825864 has been marked as a duplicate of this bug. ***

Comment 13 Need Real Name 2012-05-29 08:29:56 UTC
*** Bug 825969 has been marked as a duplicate of this bug. ***

Comment 14 Miroslav Grepl 2012-06-28 08:41:09 UTC
*** Bug 836019 has been marked as a duplicate of this bug. ***

Comment 15 Reartes Guillermo 2012-09-19 15:50:31 UTC
Created attachment 614432 [details]
f17 guest, installed & updated, got selinux-policy "syntax error"

Updating: selinux-policy-3.10.0-146.fc17.noarch
/usr/share/selinux/devel/include/services/jetty.if: Syntax error in line 145009 jetty_cache_t [type=IDENTIFIER]

Copied from screen-shot.

Comment 16 Fedora End Of Life 2013-07-04 07:42:54 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.


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