Bug 759898 - selinux-policy has a typo in package scripts
Summary: selinux-policy has a typo in package scripts
Keywords:
Status: CLOSED DUPLICATE of bug 747549
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-04 18:46 UTC by Michal Jaegermann
Modified: 2011-12-04 21:02 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-04 21:02:43 UTC
Type: ---


Attachments (Terms of Use)

Description Michal Jaegermann 2011-12-04 18:46:25 UTC
Description of problem:

At least in selinux-policy-targeted-3.10.0-64.fc17 (and earlier too) packages there is the following line:

[ "${SELINUXTYPE}" == "targeted" ] && [ selinuxenabled ] && load_policy;

If ${SELINUXTYPE} happens to be "targeted" then '[ selinuxenabled ]' always
evaluates to "true" and if it was not really enabled then 'load_policy'
will complain loudly:

Could not open policy file <= /etc/selinux/targeted/policy/policy.26:  No such file or directory

even if such file actually exists.

I believe that the following was intended:

[ "${SELINUXTYPE}" == "targeted" ] && selinuxenabled && load_policy;


Version-Release number of selected component (if applicable):
selinux-policy-3.10.0-64.fc17

How reproducible:
always with SELinux disabled

Additional info:
I did NOT look at scripts in other 'selinux-policy...' packages.

Comment 1 Miroslav Grepl 2011-12-04 19:51:54 UTC
Yes, we know about. But good catch.

Comment 2 Miroslav Grepl 2011-12-04 21:02:43 UTC

*** This bug has been marked as a duplicate of bug 747549 ***


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