Bug 2004248
| Summary: | AVC denials on new instance of 6.9.6 snap 2 | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Stephen Wadeley <swadeley> |
| Component: | Pulp | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED ERRATA | QA Contact: | Stephen Wadeley <swadeley> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.9.0 | CC: | jjeffers, mdepaulo, osousa, paji, pcreech, smallamp, ttereshc |
| Target Milestone: | 6.9.7 | Keywords: | Regression, Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | tfm-rubygem-katello-3.18.1.44-1 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-11-10 16:23:39 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: | |||
Hello just for comparison, this is from a system in beaker that has not gone through the change-hostname process. I just added and synced some RHEL 8 repos. ~]# rpm -q satellite satellite-6.9.6-1.el7sat.noarch ~]# ausearch -m AVC,USER_AVC -ts today ---- time->Wed Sep 15 07:52:01 2021 type=USER_AVC msg=audit(1631685121.097:1266): pid=801 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc: received policyload notice (seqno=14) exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?' ---- time->Wed Sep 15 07:52:09 2021 type=USER_AVC msg=audit(1631685129.627:1278): pid=801 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc: received policyload notice (seqno=15) exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?' ---- time->Wed Sep 15 07:52:12 2021 type=USER_AVC msg=audit(1631685132.157:1281): pid=801 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc: received policyload notice (seqno=16) exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?' ---- time->Wed Sep 15 07:52:50 2021 type=USER_AVC msg=audit(1631685170.187:1287): pid=801 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc: received policyload notice (seqno=17) exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?' ---- time->Wed Sep 15 07:53:38 2021 type=USER_AVC msg=audit(1631685218.415:1300): pid=801 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc: received policyload notice (seqno=18) exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?' ---- time->Wed Sep 15 07:53:39 2021 type=USER_AVC msg=audit(1631685219.561:1303): pid=801 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc: received policyload notice (seqno=19) exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?' ---- time->Wed Sep 15 07:53:42 2021 type=USER_AVC msg=audit(1631685222.419:1304): pid=801 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc: received policyload notice (seqno=20) exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?' ---- time->Wed Sep 15 07:54:34 2021 type=USER_AVC msg=audit(1631685274.100:1307): pid=801 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc: received policyload notice (seqno=21) exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?' ---- time->Wed Sep 15 07:54:37 2021 type=USER_AVC msg=audit(1631685277.843:1309): pid=801 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc: received policyload notice (seqno=22) exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?' ---- time->Wed Sep 15 07:56:56 2021 type=USER_AVC msg=audit(1631685416.802:1379): pid=801 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc: received policyload notice (seqno=23) exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?' ---- time->Wed Sep 15 07:57:11 2021 type=USER_AVC msg=audit(1631685431.253:1381): pid=801 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc: received policyload notice (seqno=24) exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?' ---- time->Wed Sep 15 07:57:25 2021 type=USER_AVC msg=audit(1631685445.534:1383): pid=801 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc: received policyload notice (seqno=25) exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?' ---- time->Wed Sep 15 07:58:32 2021 type=USER_AVC msg=audit(1631685512.455:1388): pid=801 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc: received policyload notice (seqno=26) exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?' ---- time->Wed Sep 15 08:05:16 2021 type=USER_AVC msg=audit(1631685916.490:1461): pid=801 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc: received policyload notice (seqno=27) exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?' ---- time->Wed Sep 15 08:05:19 2021 type=USER_AVC msg=audit(1631685919.354:1462): pid=801 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc: received policyload notice (seqno=28) exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?' ---- time->Wed Sep 15 08:06:27 2021 type=USER_AVC msg=audit(1631685987.725:1488): pid=801 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc: received policyload notice (seqno=29) exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?' ---- time->Wed Sep 15 08:06:30 2021 type=USER_AVC msg=audit(1631685990.596:1489): pid=801 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc: received policyload notice (seqno=30) exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?' [root@smqa-x3550m3-03 ~]# Hello I checked on new instance of SatLab 6.8.6 VM: ~]# rpm -q satellite satellite-6.8.6-1.el7sat.noarch ~]# ausearch -m AVC,USER_AVC -ts today <no matches> added manifest and clone tools repo ~]# ausearch -m AVC,USER_AVC -ts today <no matches> so this is a regression thank you Hello
I checked on new instance of SatLab 6.9.5 VM:
~]# rpm -q satellite
satellite-6.9.5-1.el7sat.noarch
~]# ausearch -m AVC,USER_AVC -ts today
----
time->Wed Sep 15 10:42:00 2021
type=PROCTITLE msg=audit(1631716920.825:319): proctitle=7368002D630073797374656D63746C2069732D656E61626C65642070756C70636F72652D6170692E7365727669636520263E2F6465762F6E756C6C
type=SYSCALL msg=audit(1631716920.825:319): arch=c000003e syscall=4 success=no exit=-13 a0=1886110 a1=7ffe910680d0 a2=7ffe910680d0 a3=13 items=0 ppid=2763 pid=3425 auid=4294967295 uid=995 gid=993 euid=995 suid=995 fsuid=995 egid=993 sgid=993 fsgid=993 tty=(none) ses=4294967295 comm="sh" exe="/usr/bin/bash" subj=system_u:system_r:foreman_rails_t:s0 key=(null)
type=AVC msg=audit(1631716920.825:319): avc: denied { getattr } for pid=3425 comm="sh" path="/usr/bin/systemctl" dev="vda1" ino=12853053 scontext=system_u:system_r:foreman_rails_t:s0 tcontext=system_u:object_r:systemd_systemctl_exec_t:s0 tclass=file permissive=0
[root@dhcp-3-170 ~]#
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 (Satellite 6.9.7 Async Bug Fix 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-2021:4612 |
Description of problem: On an a new instance of Satellite, created from an image and having undergone change-hostname, AVC denials are seen. Version-Release number of selected component (if applicable): ~]# rpm -q pulpcore-selinux pulpcore-selinux-1.2.3-2.el7pc.x86_64 How reproducible: not sure Steps to Reproduce: 1. Create image of satellite 2. Create instance of image 3. Run change hostname script (the above is summary of SatLab process) 4. Synced two RHEL8 repos Actual results: ~]# ausearch -m AVC,USER_AVC -ts today ---- time->Tue Sep 14 12:15:28 2021 type=PROCTITLE msg=audit(1631636128.242:1334): proctitle=737368643A20726F6F74205B707269765D type=SYSCALL msg=audit(1631636128.242:1334): arch=c000003e syscall=2 success=no exit=-13 a0=7f577ac0632e a1=0 a2=0 a3=3 items=0 ppid=1092 pid=39659 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=162 comm="sshd" exe="/usr/sbin/sshd" subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 key=(null) type=AVC msg=audit(1631636128.242:1334): avc: denied { read } for pid=39659 comm="sshd" name="lastlog" dev="vda1" ino=12667799 scontext=system_u:system_r:sshd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:cron_log_t:s0 tclass=file permissive=0 ---- time->Tue Sep 14 12:20:18 2021 type=PROCTITLE msg=audit(1631636418.581:1366): proctitle=7368002D630073797374656D63746C2069732D656E61626C65642070756C70636F72652D6170692E7365727669636520263E2F6465762F6E756C6C type=SYSCALL msg=audit(1631636418.581:1366): arch=c000003e syscall=4 success=no exit=-13 a0=13fd030 a1=7fff6f8fc600 a2=7fff6f8fc600 a3=13 items=0 ppid=36741 pid=39953 auid=4294967295 uid=995 gid=993 euid=995 suid=995 fsuid=995 egid=993 sgid=993 fsgid=993 tty=(none) ses=4294967295 comm="sh" exe="/usr/bin/bash" subj=system_u:system_r:foreman_rails_t:s0 key=(null) type=AVC msg=audit(1631636418.581:1366): avc: denied { getattr } for pid=39953 comm="sh" path="/usr/bin/systemctl" dev="vda1" ino=12853052 scontext=system_u:system_r:foreman_rails_t:s0 tcontext=system_u:object_r:systemd_systemctl_exec_t:s0 tclass=file permissive=0 ---- time->Tue Sep 14 12:20:19 2021 type=PROCTITLE msg=audit(1631636419.034:1367): proctitle=7368002D630073797374656D63746C2069732D656E61626C65642070756C70636F72652D6170692E7365727669636520263E2F6465762F6E756C6C type=SYSCALL msg=audit(1631636419.034:1367): arch=c000003e syscall=4 success=no exit=-13 a0=12b2030 a1=7ffdf02f66a0 a2=7ffdf02f66a0 a3=13 items=0 ppid=36741 pid=39963 auid=4294967295 uid=995 gid=993 euid=995 suid=995 fsuid=995 egid=993 sgid=993 fsgid=993 tty=(none) ses=4294967295 comm="sh" exe="/usr/bin/bash" subj=system_u:system_r:foreman_rails_t:s0 key=(null) type=AVC msg=audit(1631636419.034:1367): avc: denied { getattr } for pid=39963 comm="sh" path="/usr/bin/systemctl" dev="vda1" ino=12853052 scontext=system_u:system_r:foreman_rails_t:s0 tcontext=system_u:object_r:systemd_systemctl_exec_t:s0 tclass=file permissive=0 ---- time->Tue Sep 14 13:57:57 2021 type=PROCTITLE msg=audit(1631642277.723:1433): proctitle=737368643A20726F6F74205B707269765D type=SYSCALL msg=audit(1631642277.723:1433): arch=c000003e syscall=2 success=no exit=-13 a0=7f66f7dc032e a1=0 a2=0 a3=3 items=0 ppid=1092 pid=41762 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=170 comm="sshd" exe="/usr/sbin/sshd" subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 key=(null) type=AVC msg=audit(1631642277.723:1433): avc: denied { read } for pid=41762 comm="sshd" name="lastlog" dev="vda1" ino=12667799 scontext=system_u:system_r:sshd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:cron_log_t:s0 tclass=file permissive=0 Expected results: no AVCs