Skip to content

DOCSP-19034 SELinux command assumes read permission #6164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions source/includes/fact-selinux-redhat-options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Using a Custom MongoDB Directory Path

.. code-block:: sh

restorecon -R -v </some/MongoDB/directory>
sudo restorecon -R -v </some/MongoDB/directory>

For example:

Expand All @@ -166,7 +166,7 @@ Using a Custom MongoDB Directory Path

sudo semanage fcontext -a -t mongod_var_lib_t '/mongodb/data.*'
sudo chcon -Rv -u system_u -t mongod_var_lib_t '/mongodb/data'
restorecon -R -v '/mongodb/data'
sudo restorecon -R -v '/mongodb/data'

- If using a non-default MongoDB log directory of ``/mongodb/log``
(e.g. if the log file path is ``/mongodb/log/mongod.log``):
Expand All @@ -175,7 +175,7 @@ Using a Custom MongoDB Directory Path

sudo semanage fcontext -a -t mongod_log_t '/mongodb/log.*'
sudo chcon -Rv -u system_u -t mongod_log_t '/mongodb/log'
restorecon -R -v '/mongodb/log'
sudo restorecon -R -v '/mongodb/log'


Using a Custom MongoDB Port
Expand Down