RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1187354 - possible incorrect selinux check in 97-mysql-selinux
Summary: possible incorrect selinux check in 97-mysql-selinux
Keywords:
Status: CLOSED EOL
Alias: None
Product: RDO
Classification: Community
Component: openstack-tripleo-image-elements
Version: Juno
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Juno
Assignee: James Slagle
QA Contact: Shai Revivo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-29 20:30 UTC by Harm Weites
Modified: 2016-05-19 15:37 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-05-19 15:37:50 UTC
Embargoed:


Attachments (Terms of Use)

Description Harm Weites 2015-01-29 20:30:47 UTC
Description of problem:
In /usr/share/tripleo-image-elements/mysql-common/os-refresh-config/pre-configure.d/97-mysql-selinux there is some selinux stuff performed if selinux is enabled on the system:

[ -x /usr/sbin/semanage ] || exit 0

In my case (atleast on Fedora21) selinux is only disabled through /etc/sysconfig/selinux:

# grep SELINUX /etc/sysconfig/selinux
SELINUX=disabled

The script does not detect this since the binary is still executable. Eventhough I might be wrong in my way of disabling selinux, it would be nice if it could just check what's configured in /etc/. Instead of just trusting the binary.

Version-Release number of selected component (if applicable):
fedora-release-21-2.noarch
openstack-tripleo-heat-templates-0.7.9-5.fc22.noarch
openstack-tripleo-image-elements-0.8.10-8.fc22.noarch
openstack-tripleo-0.0.5-2c3fb309727671130a32b4c19de48ec22c8530aa1.fc22.noarch

Comment 3 Chandan Kumar 2016-05-19 15:37:50 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.


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