Bug 836313

Summary: Detects SELinux as being disabled/false
Product: [Fedora] Fedora Reporter: Dominic Cleal <dcleal>
Component: facterAssignee: Jeroen van Meeuwen <vanmeeuwen+fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 17CC: jeckersb, rrati, tmz, vanmeeuwen+fedora
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: 2013-03-29 01:21:56 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
Fix SELinux path detection, submitted for #15049 none

Description Dominic Cleal 2012-06-28 16:42:21 UTC
Description of problem:
Facter incorrectly detects SELinux as being disabled ("selinux => false").  This is due to a bug under Ruby 1.9.

Version-Release number of selected component (if applicable):
facter-1.6.6-1.fc17.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. Enable SELinux
2. Run: facter selinux
  
Actual results:
false

Expected results:
true

Additional info:
Filed upstream as http://projects.puppetlabs.com/issues/15049

Comment 1 Dominic Cleal 2012-06-28 16:44:22 UTC
Created attachment 595089 [details]
Fix SELinux path detection, submitted for #15049

Attached is the patch I've sent upstream for 1.6.x to fix detection of the selinuxfs path under Ruby 1.9.

http://projects.puppetlabs.com/issues/15049
https://github.com/puppetlabs/facter/pull/247

Comment 2 John Eckersberg 2012-09-11 19:02:58 UTC
I'm hitting this as well.  Looks good in upstream 1.6.11 (thanks to Dominic!), any chance we could get 1.6.11 in F17?

Comment 3 Todd Zullinger 2012-09-11 19:38:42 UTC
1.6.11 had a regression that caused puppet to hang¹.  This is reportedly now fixed in 1.6.12, which was released yesterday.  I'll look at getting that into the repos if no one reports show-stopper issues in the next few days.

¹ https://projects.puppetlabs.com/issues/10418

Comment 4 Fedora Update System 2013-03-19 17:04:24 UTC
facter-1.6.18-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/facter-1.6.18-1.fc17

Comment 5 Fedora Update System 2013-03-19 17:05:06 UTC
facter-1.6.18-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/facter-1.6.18-1.fc18

Comment 6 Fedora Update System 2013-03-19 17:05:57 UTC
facter-1.6.18-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/facter-1.6.18-1.el6

Comment 7 Fedora Update System 2013-03-19 17:06:35 UTC
facter-1.6.18-1.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/facter-1.6.18-1.el5

Comment 8 Fedora Update System 2013-03-19 21:26:26 UTC
Package facter-1.6.18-1.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing facter-1.6.18-1.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2013-0708/facter-1.6.18-1.el6
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2013-03-29 01:21:58 UTC
facter-1.6.18-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2013-03-29 01:22:44 UTC
facter-1.6.18-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2013-04-03 14:26:35 UTC
facter-1.6.18-2.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/facter-1.6.18-2.el5

Comment 12 Fedora Update System 2013-04-03 14:27:20 UTC
facter-1.6.18-2.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/facter-1.6.18-2.el6

Comment 13 Fedora Update System 2013-04-03 23:24:03 UTC
facter-1.6.18-3.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/facter-1.6.18-3.el6

Comment 14 Fedora Update System 2013-04-03 23:25:31 UTC
facter-1.6.18-3.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/facter-1.6.18-3.el5

Comment 15 Fedora Update System 2013-04-19 17:01:27 UTC
facter-1.6.18-3.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2013-04-19 17:05:14 UTC
facter-1.6.18-3.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.