Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-2994

selinux fact is not properly detected by Facter 4

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • FACT 4.1.0
    • Facter 4
    • Night's Watch
    • 2
    • NW - 2021-03-31
    • Needs Assessment
    • Bug Fix
    • Fix selinux detection by taking the same approach as Facter 3, checking for both the mounted selinux filesystem, and the config file. If any is absent, Facter will not fill in the selinux fact.
    • Needs Assessment

    Description

      While evaluating facts difference using PE2019.8.5 / puppet 6.21.1 

      # puppet facts diff
       
        "os.selinux.enabled": {
          "new_value": true,
          "old_value": false
        },
        "selinux": {
          "new_value": true,
          "old_value": false
        },
      
      

      Similar bug was previously fixed in Facter 3

      https://github.com/puppetlabs/facter/commit/125a79e4da408bb4d4a86ebb7dd71c0ca27e288f

      But in my case selinux fs is not even mounted:

      [root@infdevx-puppet202 ~]# grep -c selinuxfs /proc/self/mounts
      0
      

      Attachments

        Issue Links

          Activity

            People

              gabriel.nagy Gabriel Nagy
              vchepkov Vadym Chepkov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support