Bug 1692325 - [osp15] ha containers selinux denials (var_log_cluster_t)
Summary: [osp15] ha containers selinux denials (var_log_cluster_t)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-selinux
Version: 15.0 (Stein)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: beta
: 15.0 (Stein)
Assignee: Julie Pichon
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-25 11:24 UTC by Michele Baldessari
Modified: 2019-09-26 10:48 UTC (History)
7 users (show)

Fixed In Version: openstack-selinux-0.8.18-0.20190327111949.4c5ed0f.el8ost.noarch.rpm
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-21 11:20:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github redhat-openstack openstack-selinux pull 31 0 None None None 2019-03-25 11:26:34 UTC
Red Hat Product Errata RHEA-2019:2811 0 None None None 2019-09-21 11:21:27 UTC

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


Note You need to log in before you can comment on or make changes to this bug.