View Issue Details

IDProjectCategoryView StatusLast Update
0016313CentOS-7selinux-policypublic2019-08-03 09:14
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
PlatformOSOS Version7
Product Version 
Target VersionFixed in Version 
Summary0016313: SELinux is preventing /usr/bin/mongod from 'open' accesses on the 文件 /sys/fs/cgroup/memory/memory.limit_in_bytes.
DescriptionDescription of problem:
This error is reported when starting mongodb.

Reproduce step:
Execute the command : sudo systemctl start mongod
SELinux is preventing /usr/bin/mongod from 'open' accesses on the 文件 /sys/fs/cgroup/memory/memory.limit_in_bytes.

***** Plugin catchall (100. confidence) suggests **************************

If you believe that mongod should be allowed open access on the memory.limit_in_bytes file by default.
Then 应该将这个情况作为 bug 报告。
allow this access for now by executing:
# ausearch -c 'mongod' --raw | audit2allow -M my-mongod
# semodule -i my-mongod.pp

Additional Information:
Source Context system_u:system_r:mongod_t:s0
Target Context system_u:object_r:cgroup_t:s0
Target Objects /sys/fs/cgroup/memory/memory.limit_in_bytes [ file
Source mongod
Source Path /usr/bin/mongod
Port <Unknown>
Host (removed)
Source RPM Packages mongodb-org-server-4.0.10-1.el7.x86_64
Target RPM Packages
Policy RPM selinux-policy-3.13.1-229.el7_6.12.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name (removed)
Platform Linux (removed) 3.10.0-957.21.3.el7.x86_64 #1 SMP
                              Tue Jun 18 16:35:19 UTC 2019 x86_64 x86_64
Alert Count 6
First Seen 2019-08-03 16:43:58 CST
Last Seen 2019-08-03 16:59:33 CST
Local ID a56abeb5-4665-4d51-8328-a51290a9afbc

Raw Audit Messages
type=AVC msg=audit(1564822773.428:3608): avc: denied { open } for pid=50769 comm="mongod" path="/sys/fs/cgroup/memory/memory.limit_in_bytes" dev="cgroup" ino=145 scontext=system_u:system_r:mongod_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=file permissive=0

type=SYSCALL msg=audit(1564822773.428:3608): arch=x86_64 syscall=open success=no exit=EACCES a0=5561fba6f7b0 a1=0 a2=1b6 a3=34303531363833 items=0 ppid=1 pid=50769 auid=4294967295 uid=990 gid=988 euid=990 suid=990 fsuid=990 egid=988 sgid=988 fsgid=988 tty=(none) ses=4294967295 comm=mongod exe=/usr/bin/mongod subj=system_u:system_r:mongod_t:s0 key=(null)

Hash: mongod,mongod_t,cgroup_t,file,open

Version-Release number of selected component:
Additional Informationreporter: libreport-
hashmarkername: setroubleshoot
kernel: 3.10.0-957.21.3.el7.x86_64
reproducible: Not sure how to reproduce the problem
type: libreport
TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-08-03 09:14 straiway New Issue