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

Add information about selinux contexts to community pages

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None

    Description

      Nowhere on the community site does it mention about running MongoDB with selinux. It does in fact set itself up with the correct selinux contexts when deploying on Fedora through Yum:

      [sweaver@localhost Desktop]$ sudo semanage fcontext -l | grep mongo
      /etc/rc\.d/init\.d/mongod regular file system_u:object_r:mongod_initrc_exec_t:s0
      /usr/bin/mongod regular file system_u:object_r:mongod_exec_t:s0
      /usr/share/aeolus-conductor/dbomatic/dbomatic regular file system_u:object_r:mongod_exec_t:s0
      /var/lib/mongodb(/.*)? all files system_u:object_r:mongod_var_lib_t:s0
      /var/log/mongodb(/.*)? all files system_u:object_r:mongod_log_t:s0
      /var/run/aeolus/dbomatic\.pid regular file system_u:object_r:mongod_var_run_t:s0
      /var/run/mongodb(/.*)? all files system_u:object_r:mongod_var_run_t:s0

      Might be useful to mention this somewhere as I had to actually load Fedora up and check myself that it would run ok in Enforcing mode.

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            sam.weaver Sam Weaver
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11 years, 17 weeks, 2 days ago