Bug 2104913
| Summary: | insights-client raises SELinux issues | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Jelle van der Waa <jvanderwaa> |
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
| Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 8.7 | CC: | cmarinea, gchamoul, john.sincock, lvrabec, mmalik, mmarusak, mpitt, mvollmer, ptoscano, ssekidde, zpytela |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 8.7 | Flags: | pm-rhel:
mirror+
|
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | CockpitTest | ||
| Fixed In Version: | selinux-policy-3.14.3-106.el8 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-11-08 10:44:31 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
Jelle van der Waa
2022-07-07 13:00:46 UTC
Jelle, The gpg files and directory seem to have incorrect context. Do you know how they were created, and with which packages versions in place? Hi Jelle, this looks to me that bug 2077778 should be the actual root cause of this issue. (In reply to Zdenek Pytela from comment #1) > Jelle, > > The gpg files and directory seem to have incorrect context. Do you know how > they were created, and with which packages versions in place? From what I understood from Pino Toscano cockpit runs insights-client which might explain the incorrect context. This now also affects RHEL 9.1. (In reply to Martin Pitt from comment #4) > This now also affects RHEL 9.1. Most likely this is bug 2077777. Just to register here, we have following BZ for RHEL9: Bug 2107363 - [RHEL9] insights-client raises SELinux issues (https://bugzilla.redhat.com/show_bug.cgi?id=2107363) Disgraceful. Jelle, Do you still see a similar issue with the latest selinux-policy build? All info was provided in comment #10. Clearing out 'needs info'. After another update we now see another set of messages.
# insights-client --version
Client: 3.1.7
Core: 3.0.292-1
# rpmquery selinux-policy-targeted
selinux-policy-targeted-3.14.3-107.el8.noarch
audit: type=1400 audit(1662161037.179:6): avc: denied { read } for pid=23710 comm="gpg" name="redhattools.pub.gpg" dev="vda3" ino=16797881 scontext=system_u:system_r:gpg_t:s0 tcontext=system_u:object_r:insights_client_etc_t:s0 tclass=file permissive=1
audit: type=1400 audit(1662161037.179:7): avc: denied { open } for pid=23710 comm="gpg" path="/etc/insights-client/redhattools.pub.gpg" dev="vda3" ino=16797881 scontext=system_u:system_r:gpg_t:s0 tcontext=system_u:object_r:insights_client_etc_t:s0 tclass=file permissive=1
audit: type=1400 audit(1662161037.179:8): avc: denied { getattr } for pid=23710 comm="gpg" path="/etc/insights-client/redhattools.pub.gpg" dev="vda3" ino=16797881 scontext=system_u:system_r:gpg_t:s0 tcontext=system_u:object_r:insights_client_etc_t:s0 tclass=file permissive=1
audit: type=1400 audit(1662161037.191:9): avc: denied { read } for pid=23710 comm="gpg" name="last_stable.egg.asc" dev="vda3" ino=16915715 scontext=system_u:system_r:gpg_t:s0 tcontext=unconfined_u:object_r:insights_client_var_lib_t:s0 tclass=file permissive=1
audit: type=1400 audit(1662161037.191:10): avc: denied { open } for pid=23710 comm="gpg" path="/var/lib/insights/last_stable.egg.asc" dev="vda3" ino=16915715 scontext=system_u:system_r:gpg_t:s0 tcontext=unconfined_u:object_r:insights_client_var_lib_t:s0 tclass=file permissive=1
audit: type=1400 audit(1662161044.234:11): avc: denied { read } for pid=23799 comm="gpg" name="redhattools.pub.gpg" dev="vda3" ino=16797881 scontext=system_u:system_r:gpg_t:s0 tcontext=system_u:object_r:insights_client_etc_t:s0 tclass=file permissive=1
audit: type=1400 audit(1662161044.234:12): avc: denied { open } for pid=23799 comm="gpg" path="/etc/insights-client/redhattools.pub.gpg" dev="vda3" ino=16797881 scontext=system_u:system_r:gpg_t:s0 tcontext=system_u:object_r:insights_client_etc_t:s0 tclass=file permissive=1
audit: type=1400 audit(1662161044.234:13): avc: denied { getattr } for pid=23799 comm="gpg" path="/etc/insights-client/redhattools.pub.gpg" dev="vda3" ino=16797881 scontext=system_u:system_r:gpg_t:s0 tcontext=system_u:object_r:insights_client_etc_t:s0 tclass=file permissive=1
audit: type=1400 audit(1662161072.521:14): avc: denied { read } for pid=23923 comm="gpg" name=".cache.json.asc" dev="vda3" ino=16802000 scontext=system_u:system_r:gpg_t:s0 tcontext=unconfined_u:object_r:insights_client_etc_rw_t:s0 tclass=file permissive=1
audit: type=1400 audit(1662161072.521:15): avc: denied { open } for pid=23923 comm="gpg" path="/etc/insights-client/.cache.json.asc" dev="vda3" ino=16802000 scontext=system_u:system_r:gpg_t:s0 tcontext=unconfined_u:object_r:insights_client_etc_rw_t:s0 tclass=file permissive=1
audit: type=1400 audit(1662161119.928:16): avc: denied { write } for pid=24381 comm="vdo" name="_etc_vdoconf.yml.lock" dev="tmpfs" ino=26272 scontext=system_u:system_r:insights_client_t:s0 tcontext=system_u:object_r:var_lock_t:s0 tclass=file permissive=1
audit: type=1400 audit(1662161120.731:17): avc: denied { write } for pid=24403 comm="virsh" name="libvirt-sock-ro" dev="tmpfs" ino=24246 scontext=system_u:system_r:insights_client_t:s0 tcontext=system_u:object_r:virt_var_run_t:s0 tclass=sock_file permissive=1
audit: type=1400 audit(1662161120.731:18): avc: denied { connectto } for pid=24403 comm="virsh" path="/run/libvirt/libvirt-sock-ro" scontext=system_u:system_r:insights_client_t:s0 tcontext=system_u:system_r:virtd_t:s0-s0:c0.c1023 tclass=unix_stream_socket permissive=1
audit: type=1400 audit(1662161150.816:19): avc: denied { write } for pid=24594 comm="sealert" name="setroubleshoot_server" dev="tmpfs" ino=95842 scontext=system_u:system_r:insights_client_t:s0 tcontext=system_u:object_r:setroubleshoot_var_run_t:s0 tclass=sock_file permissive=1
audit: type=1400 audit(1662161150.816:20): avc: denied { connectto } for pid=24594 comm="sealert" path="/run/setroubleshoot/setroubleshoot_server" scontext=system_u:system_r:insights_client_t:s0 tcontext=system_u:system_r:setroubleshootd_t:s0 tclass=unix_stream_socket permissive=1
audit: type=1400 audit(1662161174.240:21): avc: denied { setrlimit } for pid=24771 comm="multipath" scontext=system_u:system_r:insights_client_t:s0 tcontext=system_u:system_r:insights_client_t:s0 tclass=process permissive=1
audit: type=1400 audit(1662161174.301:22): avc: denied { read write } for pid=24771 comm="multipath" name="control" dev="devtmpfs" ino=13255 scontext=system_u:system_r:insights_client_t:s0 tcontext=system_u:object_r:lvm_control_t:s0 tclass=chr_file permissive=1
audit: type=1400 audit(1662161174.301:23): avc: denied { open } for pid=24771 comm="multipath" path="/dev/mapper/control" dev="devtmpfs" ino=13255 scontext=system_u:system_r:insights_client_t:s0 tcontext=system_u:object_r:lvm_control_t:s0 tclass=chr_file permissive=1
audit: type=1400 audit(1662161174.301:24): avc: denied { ioctl } for pid=24771 comm="multipath" path="/dev/mapper/control" dev="devtmpfs" ino=13255 ioctlcmd=0xfd00 scontext=system_u:system_r:insights_client_t:s0 tcontext=system_u:object_r:lvm_control_t:s0 tclass=chr_file permissive=1
audit: type=1400 audit(1662161174.302:25): avc: denied { ipc_info } for pid=24771 comm="multipath" scontext=system_u:system_r:insights_client_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=system permissive=1
audit: type=1400 audit(1662161180.733:30): avc: denied { read } for pid=24910 comm="gluster" name="random" dev="devtmpfs" ino=9424 scontext=system_u:system_r:insights_client_t:s0 tcontext=system_u:object_r:random_device_t:s0 tclass=chr_file permissive=1
audit: type=1400 audit(1662161180.734:31): avc: denied { create } for pid=24910 comm="gluster" name="cli.log" scontext=system_u:system_r:insights_client_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=file permissive=1
audit: type=1400 audit(1662161232.626:32): avc: denied { setrlimit } for pid=25306 comm="journalctl" scontext=system_u:system_r:insights_client_t:s0 tcontext=system_u:system_r:insights_client_t:s0 tclass=process permissive=1
audit: type=1400 audit(1662161232.627:33): avc: denied { map } for pid=25306 comm="journalctl" path="/var/log/journal/344419c3fa2b4fa3b5afb245cc7f9981/system.journal" dev="vda3" ino=9164828 scontext=system_u:system_r:insights_client_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=file permissive=1
audit: type=1400 audit(1662161234.316:34): avc: denied { write } for pid=25353 comm="podman" name="bolt_state.db" dev="vda3" ino=1012468 scontext=system_u:system_r:insights_client_t:s0 tcontext=unconfined_u:object_r:container_var_lib_t:s0 tclass=file permissive=1
audit: type=1400 audit(1662161234.316:35): avc: denied { map } for pid=25353 comm="podman" path="/var/lib/containers/storage/libpod/bolt_state.db" dev="vda3" ino=1012468 scontext=system_u:system_r:insights_client_t:s0 tcontext=unconfined_u:object_r:container_var_lib_t:s0 tclass=file permissive=1
audit: type=1400 audit(1662161234.338:36): avc: denied { mounton } for pid=25353 comm="podman" path="/var/lib/containers/storage/overlay" dev="vda3" ino=27252250 scontext=system_u:system_r:insights_client_t:s0 tcontext=unconfined_u:object_r:container_ro_file_t:s0 tclass=dir permissive=1
audit: type=1400 audit(1662161234.338:37): avc: denied { write } for pid=25353 comm="podman" name="overlay" dev="vda3" ino=27252250 scontext=system_u:system_r:insights_client_t:s0 tcontext=unconfined_u:object_r:container_ro_file_t:s0 tclass=dir permissive=1
audit: type=1400 audit(1662161234.338:38): avc: denied { mknod } for pid=25353 comm="podman" capability=27 scontext=system_u:system_r:insights_client_t:s0 tcontext=system_u:system_r:insights_client_t:s0 tclass=capability permissive=1
audit: type=1400 audit(1662161234.338:39): avc: denied { add_name } for pid=25353 comm="podman" name="backingFsBlockDev.tmp" scontext=system_u:system_r:insights_client_t:s0 tcontext=unconfined_u:object_r:container_ro_file_t:s0 tclass=dir permissive=1
audit: type=1400 audit(1662161234.338:40): avc: denied { create } for pid=25353 comm="podman" name="backingFsBlockDev.tmp" scontext=system_u:system_r:insights_client_t:s0 tcontext=system_u:object_r:container_ro_file_t:s0 tclass=blk_file permissive=1
audit: type=1400 audit(1662161234.338:41): avc: denied { remove_name } for pid=25353 comm="podman" name="backingFsBlockDev.tmp" dev="vda3" ino=27294791 scontext=system_u:system_r:insights_client_t:s0 tcontext=unconfined_u:object_r:container_ro_file_t:s0 tclass=dir permissive=1
audit: type=1400 audit(1662161248.331:52): avc: denied { read } for pid=25785 comm="gpg" name="redhattools.pub.gpg" dev="vda3" ino=16797881 scontext=system_u:system_r:gpg_t:s0 tcontext=system_u:object_r:insights_client_etc_t:s0 tclass=file permissive=1
audit: type=1400 audit(1662161248.331:53): avc: denied { open } for pid=25785 comm="gpg" path="/etc/insights-client/redhattools.pub.gpg" dev="vda3" ino=16797881 scontext=system_u:system_r:gpg_t:s0 tcontext=system_u:object_r:insights_client_etc_t:s0 tclass=file permissive=1
audit: type=1400 audit(1662161248.331:54): avc: denied { getattr } for pid=25785 comm="gpg" path="/etc/insights-client/redhattools.pub.gpg" dev="vda3" ino=16797881 scontext=system_u:system_r:gpg_t:s0 tcontext=system_u:object_r:insights_client_etc_t:s0 tclass=file permissive=1
audit: type=1400 audit(1662161248.331:55): avc: denied { read } for pid=25785 comm="gpg" name="last_stable.egg.asc" dev="vda3" ino=16915715 scontext=system_u:system_r:gpg_t:s0 tcontext=unconfined_u:object_r:insights_client_var_lib_t:s0 tclass=file permissive=1
audit: type=1400 audit(1662161248.331:56): avc: denied { open } for pid=25785 comm="gpg" path="/var/lib/insights/last_stable.egg.asc" dev="vda3" ino=16915715 scontext=system_u:system_r:gpg_t:s0 tcontext=unconfined_u:object_r:insights_client_var_lib_t:s0 tclass=file permissive=1
(In reply to Marius Vollmer from comment #22) > After another update we now see another set of messages. > > # insights-client --version > Client: 3.1.7 > Core: 3.0.292-1 > ... This bz as reported has been verified. For new issues please open a new bz, or use any which is currently being worked on. > For new issues please open a new bz, or use any which is currently being worked on.
Please do that yourself if you feel there is still work to do and you need a new bug report to track it.
Here is a new BZ which will address the findings listed in the comment#22: * https://bugzilla.redhat.com/show_bug.cgi?id=2124550 When you find any SELinux denials related to insights-client programs, please add them into BZ#2124550. Thank you. (In reply to Milos Malik from comment #30) > When you find any SELinux denials related to insights-client programs, > please add them into BZ#2124550. Will do, thank you! 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 (selinux-policy bug fix and enhancement update), 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/RHBA-2022:7691 |