Skip to content
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