Bug 450756

Summary: Strange logic in postinstall script
Product: [Fedora] Fedora Reporter: Göran Uddeborg <goeran>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 9   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-17 18:34:55 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 Göran Uddeborg 2008-06-10 20:36:45 UTC
Description of problem:
The postinstall script contains this code:

[ -f /usr/share/selinux/devel/include/build.conf ] && /usr/bin/sepolgen-ifgen  >
/dev/null 
/usr/bin/sepolgen-ifgen  > /dev/null

Surely, that must be broken?  First the presence of a file from
selinux-policy-devel is checked.  If it is there, sepolgen-ifgen is run.  Then
on the next line, sepolgen-ifgen is run all the same!  (Again, if the build.conf
file was there.)

The meaning of the program seems to be to generate a file
/var/lib/sepolgen/interface_info.  On my systems, which does not have
selinux-policy-devel installed, it is empty.  I haven't yet figured out if it is
a problem to have an empty such file, but I thought I'd bug report the
apparently confused script anyway.

Version-Release number of selected component (if applicable):
policycoreutils-2.0.47-2.fc9

Comment 1 Daniel Walsh 2008-06-16 10:22:37 UTC
Fixed in policycoreutils-2.0.49-7.fc9