Bug 1419286

Summary: /usr/share/selinux/devel/include/services/container.if: Syntax error on line 42 ' [type=SQUOTE]
Product: [Fedora] Fedora Reporter: Edgar Hoch <edgar.hoch>
Component: container-selinuxAssignee: Lokesh Mandvekar <lsm5>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 25CC: amurdaca, dwalsh, fkluknav, jchaloup, jlebon, lsm5
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: container-selinux-2.9-1.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-02 01:21:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch for /usr/share/selinux/devel/include/services/container.if none

Description Edgar Hoch 2017-02-04 20:54:10 UTC
Description of problem:

Installation of package selinux-policy-devel prints the following error:

/usr/share/selinux/devel/include/services/container.if: Syntax error on line 42 ' [type=SQUOTE]
/usr/share/selinux/devel/include/services/container.if: Syntax error on line 46 ' [type=SQUOTE]

This is because it contains a postinstall script:

# rpm -q --scripts selinux-policy-devel
postinstall scriptlet (using /bin/sh):
selinuxenabled && /usr/bin/sepolgen-ifgen 2>/dev/null 
exit 0


Version-Release number of selected component (if applicable):
container-selinux-2.5-1.fc25.noarch

How reproducible:
Always

Steps to Reproduce:
1. Install packages if they are not already installed:
   dnf install container-selinux selinux-policy-devel
2. To see the error independent of package installation, run
   /usr/bin/sepolgen-ifgen


Actual results:
Error messages:
/usr/share/selinux/devel/include/services/container.if: Syntax error on line 42 ' [type=SQUOTE]
/usr/share/selinux/devel/include/services/container.if: Syntax error on line 46 ' [type=SQUOTE]


Expected results:
No error messages

Comment 1 Edgar Hoch 2017-02-04 20:56:20 UTC
Created attachment 1247734 [details]
Patch for /usr/share/selinux/devel/include/services/container.if

Solution:
File /usr/share/selinux/devel/include/services/container.if line 42
should end with a ";" .
See patch.

Comment 2 Daniel Walsh 2017-02-06 23:12:17 UTC
fixed in container-selinux-2.7

Comment 3 Fedora Update System 2017-02-27 17:18:39 UTC
container-selinux-2.9-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-018d2c13f7

Comment 4 Fedora Update System 2017-03-01 02:52:56 UTC
container-selinux-2.9-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-018d2c13f7

Comment 5 Fedora Update System 2017-03-02 01:21:07 UTC
container-selinux-2.9-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.