Bug 450756 - Strange logic in postinstall script
Summary: Strange logic in postinstall script
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: 9
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-06-10 20:36 UTC by Göran Uddeborg
Modified: 2008-09-17 18:34 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-09-17 18:34:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


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