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

selinux fact is not properly detected by Facter 4

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: FACT 4.1.0
    • Component/s: Facter 4
    • Labels:
    • Template:
    • Team:
      Night's Watch
    • Story Points:
      2
    • Sprint:
      NW - 2021-03-31
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      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.
    • QA Risk Assessment:
      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

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

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support