RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 1490961 - [AVC denied] /usr/libexec/rhsmcertd-worker (rhsmcertd_t) sends signull to snmpd_t
Summary: [AVC denied] /usr/libexec/rhsmcertd-worker (rhsmcertd_t) sends signull to snm...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.4
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-12 15:19 UTC by Michal Dekan
Modified: 2021-06-10 13:01 UTC (History)
7 users (show)

Fixed In Version: selinux-policy-3.13.1-175.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 12:42:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Temporary workaround works in case 01925369 (182 bytes, text/plain)
2017-09-20 08:14 UTC, Jan Jansky
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0763 0 None None None 2018-04-10 12:42:56 UTC

Description Michal Dekan 2017-09-12 15:19:32 UTC
Description of problem:

 > grep AVC var/log/audit/audit.log | grep rhsmcertd_t
type=AVC msg=audit(1504534843.134:211675): avc:  denied  { signull } for  pid=34390 comm="rhsmcertd-worke" scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=system_u:system_r:snmpd_t:s0 tclass=process
type=AVC msg=audit(1504549243.119:214055): avc:  denied  { signull } for  pid=47588 comm="rhsmcertd-worke" scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=system_u:system_r:snmpd_t:s0 tclass=process
type=AVC msg=audit(1504563643.494:216440): avc:  denied  { signull } for  pid=60721 comm="rhsmcertd-worke" scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=system_u:system_r:snmpd_t:s0 tclass=process
type=AVC msg=audit(1504578043.791:218815): avc:  denied  { signull } for  pid=8813 comm="rhsmcertd-worke" scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=system_u:system_r:snmpd_t:s0 tclass=process
type=AVC msg=audit(1504592443.288:221212): avc:  denied  { signull } for  pid=23019 comm="rhsmcertd-worke" scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=system_u:system_r:snmpd_t:s0 tclass=process
type=AVC msg=audit(1504606843.105:223597): avc:  denied  { signull } for  pid=36091 comm="rhsmcertd-worke" scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=system_u:system_r:snmpd_t:s0 tclass=process
type=AVC msg=audit(1504621243.569:225957): avc:  denied  { signull } for  pid=49303 comm="rhsmcertd-worke" scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=system_u:system_r:snmpd_t:s0 tclass=process
type=AVC msg=audit(1504635643.773:228343): avc:  denied  { signull } for  pid=63246 comm="rhsmcertd-worke" scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=system_u:system_r:snmpd_t:s0 tclass=process



Version-Release number of selected component (if applicable):

> cat etc/redhat-release 
Red Hat Enterprise Linux Server release 7.4 (Maipo)

> grep selinux installed-rpms 
libselinux-2.5-11.el7.i686                                  Sat Aug 19 22:40:27 2017
libselinux-2.5-11.el7.x86_64                                Sat Aug 19 22:36:22 2017
libselinux-python-2.5-11.el7.x86_64                         Sat Aug 19 22:37:38 2017
libselinux-utils-2.5-11.el7.x86_64                          Sat Aug 19 22:38:23 2017
selinux-policy-3.13.1-166.el7.noarch                        Sat Aug 19 22:41:45 2017
selinux-policy-targeted-3.13.1-166.el7.noarch               Sat Aug 19 22:44:54 2017



How reproducible:

Not sure.

There is no rule, which would allow this:

[root@vm-199 ~]# sesearch -A -s rhsmcertd_t -t snmpd_t -p signull

[root@vm-199 ~]# 

Actual results:

AVC denied messages in audit log.

Expected results:

No AVC denied messages.

Additional info:

Customer's sosreport is attached to the case.

Comment 3 Jan Jansky 2017-09-20 08:14:09 UTC
Created attachment 1328304 [details]
Temporary workaround works in case 01925369

Created temporary workaround with audit2allow -M rhsmcertd.t -i sosreport/var/log/audit.log

It works for customer from case 01925369, however i am not specialist in SELinux, can someone check if this policy is correct and why the audit happened?

Comment 7 yuk 2018-03-21 11:14:03 UTC
==> Status: ON_QA → VERIFIED

Are the correct rpms available on RH repos?

Comment 8 Milos Malik 2018-03-21 11:45:33 UTC
RPMs with the fix will be available in RH repositories as soon as RHEL-7.5 goes public.

Comment 10 errata-xmlrpc 2018-04-10 12:42:01 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/RHBA-2018:0763


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