Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1692325

Summary: [osp15] ha containers selinux denials (var_log_cluster_t)
Product: Red Hat OpenStack Reporter: Michele Baldessari <michele>
Component: openstack-selinuxAssignee: Julie Pichon <jpichon>
Status: CLOSED ERRATA QA Contact: nlevinki <nlevinki>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 15.0 (Stein)CC: dciabrin, jpichon, lhh, lmiccini, lvrabec, michele, zcaplovi
Target Milestone: betaKeywords: Triaged
Target Release: 15.0 (Stein)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-selinux-0.8.18-0.20190327111949.4c5ed0f.el8ost.noarch.rpm Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-21 11:20:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michele Baldessari 2019-03-25 11:24:46 UTC
Description of problem:
We get currently two type of denials when starting HA containers on
OSP15:
A) Rabbitmq creates and deletes a bmtp file
denied { remove_name } for  pid=538235 comm="python" name="btmp" dev="vda2" ino=73787843 scontext=system_u:system_r:container_t:s0:c208,c543 tcontext=system_u:object_r:cluster_var_log_t:s0 tclass=dir permissive=1
denied { unlink } for  pid=538235 comm="python" name="btmp" dev="vda2" ino=73787843 scontext=system_u:system_r:container_t:s0:c208,c543 tcontext=system_u:object_r:cluster_var_log_t:s0 tclass=file permissive=1
denied { create } for  pid=538235 comm="python" name="btmp" scontext=system_u:system_r:container_t:s0:c208,c543 tcontext=system_u:object_r:cluster_var_log_t:s0 tclass=file permissive=1
denied { ioctl } for  pid=538235 comm="python" path="/var/log/btmp" dev="vda2" ino=73787840 ioctlcmd=0x5401 scontext=system_u:system_r:container_t:s0:c208,c543 tcontext=system_u:object_r:cluster_var_log_t:s0 tclass=file permissive=1
denied { setattr } for  pid=538235 comm="python" name="btmp" dev="vda2" ino=73787840 scontext=system_u:system_r:container_t:s0:c208,c543 tcontext=system_u:object_r:cluster_var_log_t:s0 tclass=file permissive=1
denied { add_name } for  pid=46749 comm="python" name="btmp" scontext=system_u:system_r:container_t:s0:c527,c559 tcontext=system_u:object_r:cluster_var_log_t:s0 tclass=dir permissive=1
denied { write open } for  pid=46749 comm="python" path="/var/log/btmp" dev="vda2" ino=67376554 scontext=system_u:system_r:container_t:s0:c527,c559 tcontext=system_u:object_r:cluster_var_log_t:s0 tclass=file permissive=1

B) Kolla needs to open, read, lock and create folders
denied { add_name } for  pid=41771 comm="mkdir" name="kolla" scontext=system_u:system_r:container_t:s0:c296,c382 tcontext=system_u:object_r:cluster_var_log_t:s0 tclass=dir permissive=1
denied { create } for  pid=41771 comm="mkdir" name="kolla" scontext=system_u:system_r:container_t:s0:c296,c382 tcontext=system_u:object_r:cluster_var_log_t:s0 tclass=dir permissive=1
denied { create } for  pid=42078 comm="su" name="lastlog" scontext=system_u:system_r:container_t:s0:c296,c382 tcontext=system_u:object_r:cluster_var_log_t:s0 tclass=file permissive=1
denied { lock } for  pid=52961 comm="su" path="/var/log/lastlog" dev="vda2" ino=73669296 scontext=system_u:system_r:container_t:s0:c383,c514 tcontext=system_u:object_r:cluster_var_log_t:s0 tclass=file permissive=1
denied { read } for  pid=73801 comm="mkdir" name="kolla" dev="vda2" ino=38118009 scontext=system_u:system_r:container_t:s0:c670,c1013 tcontext=system_u:object_r:cluster_var_log_t:s0 tclass=dir permissive=1
denied { read write open } for  pid=52961 comm="su" path="/var/log/lastlog" dev="vda2" ino=73669296 scontext=system_u:system_r:container_t:s0:c383,c514 tcontext=system_u:object_r:cluster_var_log_t:s0 tclass=file permissive=1
denied { write } for  pid=46749 comm="python" name="rabbitmq-bundle-0" dev="vda2" ino=67376550 scontext=system_u:system_r:container_t:s0:c527,c559 tcontext=system_u:object_r:cluster_var_log_t:s0 tclass=dir permissive=1
denied { write } for  pid=73801 comm="mkdir" name="ovn-dbs-bundle-0" dev="vda2" ino=86202322 scontext=system_u:system_r:container_t:s0:c670,c1013 tcontext=system_u:object_r:cluster_var_log_t:s0 tclass=dir permissive=1

Comment 5 errata-xmlrpc 2019-09-21 11:20:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:2811