Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2004248 - AVC denials on new instance of 6.9.6 snap 2
Summary: AVC denials on new instance of 6.9.6 snap 2
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.9.7
Assignee: satellite6-bugs
QA Contact: Stephen Wadeley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-14 19:22 UTC by Stephen Wadeley
Modified: 2021-12-17 21:32 UTC (History)
7 users (show)

Fixed In Version: tfm-rubygem-katello-3.18.1.44-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-10 16:23:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 32787 0 Normal Closed Check for pulpcore-api.service in ping 2021-09-30 19:48:01 UTC
Red Hat Product Errata RHBA-2021:4612 0 None None None 2021-11-10 16:23:52 UTC

Description Stephen Wadeley 2021-09-14 19:22:44 UTC
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

Comment 1 Stephen Wadeley 2021-09-15 08:04:01 UTC
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 ~]#

Comment 2 Stephen Wadeley 2021-09-15 14:00:26 UTC
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

Comment 3 Stephen Wadeley 2021-09-15 15:05:17 UTC
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 ~]#

Comment 4 Sudhir Mallamprabhakara 2021-09-16 12:57:04 UTC
resetting TM based on comment 3

Comment 15 errata-xmlrpc 2021-11-10 16:23:39 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 (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


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