Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-11073

Add more details about working around SELinux constraints

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: manual, Ops Manager
    • Labels:
      None
    • Environment:
      SELinux

      Description

      We just had just problem while setting up Ops Manager at a client whose policy is to have SELinux enabled on all production environment, so disabling is not an option.

      We needed to have dbPath set to /db and so SELinux was blocking even though permissions were correct.

      The docs at https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-red-hat/#install-enterprise-rhel-configure-selinux don't reflect the required solution:

      sudo chcon -Rv --type=mongod_var_lib_t /<dbPath>

      Maybe it could be added and explained under the section on semanage port

      Related to:
      https://jira.mongodb.org/browse/DOCS-4170

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kay.kim Kay Kim (Inactive)
              Reporter:
              nicholas.cottrell Nic Cottrell
              Participants:
              Last commenter:
              Kay Kim Kay Kim (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                2 years, 41 weeks, 4 days ago
                Date of 1st Reply: