Skip to content

Commit 6612013

Browse files
mungitoperritojeff-allen-mongo
authored andcommitted
DOCSP-19001 SELinux denials
1 parent 10cc97b commit 6612013

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

source/includes/fact-selinux-redhat-options.rst

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,20 @@ to your SELinux policy:
7373
module mongodb_proc_net 1.0;
7474
7575
require {
76-
type proc_net_t;
77-
type mongod_t;
78-
class file { open read };
76+
type sysctl_net_t;
77+
type mongod_t;
78+
class dir search;
79+
class file { getattr open read };
7980
}
80-
81+
8182
#============= mongod_t ==============
82-
allow mongod_t proc_net_t:file { open read };
83+
84+
#!!!! This avc is allowed in the current policy
85+
allow mongod_t sysctl_net_t:dir search;
86+
allow mongod_t sysctl_net_t:file open;
87+
88+
#!!!! This avc is allowed in the current policy
89+
allow mongod_t sysctl_net_t:file { getattr read };
8390
EOF
8491
8592
#. Once created, compile and load the custom policy module by

0 commit comments

Comments
 (0)