• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

puppetlabs / facter / 4390
87%
master: 87%

Build:
Build:
LAST BUILD BRANCH: 3.12.x
DEFAULT BRANCH: master
Ran 25 Jul 2018 05:47PM UTC
Jobs 1
Files 377
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
4390

push

travis-ci

smcclellan
<a href="https://github.com/puppetlabs/facter/commit/<a class=hub.com/puppetlabs/facter/commit/125a79e4da408bb4d4a86ebb7dd71c0ca27e288f">125a79e4d<a href="https://github.com/puppetlabs/facter/commit/125a79e4da408bb4d4a86ebb7dd71c0ca27e288f">&quot;&gt;(FACT-1477) Also check for config. file when resolving selinux.enabled

Previously, we&amp;#39;d determine if selinux was enabled on a given system by
checking if the selinux filesystem is mounted. This is incorrect. Based
on https://github.com/SELinuxProject/selinux/blob/</a><a class="double-link" href="https://github.com/puppetlabs/facter/commit/<a class="double-link" href="https://github.com/puppetlabs/facter/commit/e93899c8f3c01dfb47e81d3da4b67283fb459f20">e93899c8f</a>">e93899c8f</a><a href="https://github.com/puppetlabs/facter/commit/125a79e4da408bb4d4a86ebb7dd71c0ca27e288f">/libselinux/src/enabled.c#L20, we also need to check if the selinux config. file
/etc/selinux/config also exists. We can have a scenario where the selinux
filesystem is mounted, but the /etc/selinux/config file does not exist. This
is what was happening to the customer, presumably because their kickstart file
was installing some selinux stuff under yum-utils (while our machines weren&#39;t).
Here, Facter would erroneously report that selinux is enabled.

This commit fixes our selinux enablement check by also checking for the
existence of the selinux config. file.

9799 of 11187 relevant lines covered (87.59%)

92.96 hits per line

Jobs
ID Job ID Ran Files Coverage
6 4390.6 (TRAVIS_TARGET=DEBUG) 25 Jul 2018 05:47PM UTC 0
87.59
Travis Job 4390.6
Source Files on build 4390
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4390
  • 125a79e4 on github
  • Prev Build on 3.11.x (#4381)
  • Next Build on 3.11.x (#4391)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc