Skip to content

DOCSP-19001 SELinux denials #6071

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 3, 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
17 changes: 12 additions & 5 deletions source/includes/fact-selinux-redhat-options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,20 @@ to your SELinux policy:
module mongodb_proc_net 1.0;

require {
type proc_net_t;
type mongod_t;
class file { open read };
type sysctl_net_t;
type mongod_t;
class dir search;
class file { getattr open read };
}

#============= mongod_t ==============
allow mongod_t proc_net_t:file { open read };

#!!!! This avc is allowed in the current policy
allow mongod_t sysctl_net_t:dir search;
allow mongod_t sysctl_net_t:file open;

#!!!! This avc is allowed in the current policy
allow mongod_t sysctl_net_t:file { getattr read };
EOF

#. Once created, compile and load the custom policy module by
Expand Down