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 1982836 - /usr/libexec/rhsmcertd-worker (rhsmcertd_t) tries gpg_exec_t:file execute
Summary: /usr/libexec/rhsmcertd-worker (rhsmcertd_t) tries gpg_exec_t:file execute
Keywords:
Status: CLOSED DUPLICATE of bug 1887572
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: selinux-policy
Version: 8.4
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: beta
: ---
Assignee: Zdenek Pytela
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-15 20:08 UTC by Robert Scheck
Modified: 2022-10-06 14:50 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-16 07:13:50 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Robert Scheck 2021-07-15 20:08:40 UTC
Description of problem:
type=AVC msg=audit(1626266161.404:102781): avc:  denied  { execute } for  pid=635719 comm="rhsmcertd-worke" name="gpg" dev="sdc" ino=144374 scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=system_u:object_r:gpg_exec_t:s0 tclass=file permissive=0
type=SYSCALL msg=audit(1626266161.404:102781): arch=x86_64 syscall=execve success=no exit=EACCES a0=557662993060 a1=7ffd40ed5870 a2=7ffd40edb500 a3=0 items=0 ppid=635718 pid=635719 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=rhsmcertd-worke exe=/usr/libexec/platform-python3.6 subj=system_u:system_r:rhsmcertd_t:s0 key=(null)

Version-Release number of selected component (if applicable):
platform-python-3.6.8-37.el8.x86_64
subscription-manager-1.28.13-3.el8_4.x86_64
selinux-policy-targeted-3.14.3-67.el8.noarch

How reproducible:
Not sure, just happened while no administrative tasks were performed.

Actual results:
/usr/libexec/rhsmcertd-worker (rhsmcertd_t) tries gpg_exec_t:file execute

Expected results:
Allow or dontaudit, whatever is suitable. Or fix subscription-manager code.

Additional info:
/var/log/rhsm/rhsmcertd.log:
Wed Jul 14 14:36:04 2021 [INFO] (Cert Check) Certificates updated.

/var/log/rhsm/rhsm.log:
2021-07-14 13:38:34,002 [WARNING] dnf.py:632518:MainThread @logutil.py:154 - logging already initialized
2021-07-14 14:35:55,467 [INFO] rhsmcertd-worker:635627:MainThread @entcertlib.py:131 - certs updated:
Total updates: 0
Found (local) serial# [<removed>]
Expected (UEP) serial# [<removed>]
Added (new)
  <NONE>
Deleted (rogue):
  <NONE>
2021-07-14 14:36:00,806 [WARNING] rhsmcertd-worker:635627:MainThread @dmiinfo.py:130 - Error reading system DMI information: # SMBIOS implementations newer than version 2.7 are not
# fully supported by this version of dmidecode.

NoneType: None
2021-07-14 14:36:01,745 [ERROR] rhsmcertd-worker:635627:MainThread @profile.py:93 - Unable to create sack object: Failed to download metadata for repo 'remi-modular': repomd.xml GPG signature verification error: gpgme_engine_check_version() error: Invalid crypto engine
2021-07-14 18:35:54,973 [INFO] rhsmcertd-worker:645143:MainThread @entcertlib.py:131 - certs updated:
Total updates: 0
Found (local) serial# [<removed>]
Expected (UEP) serial# [<removed>]
Added (new)
  <NONE>
Deleted (rogue):
  <NONE>
2021-07-14 18:36:00,234 [WARNING] rhsmcertd-worker:645143:MainThread @dmiinfo.py:130 - Error reading system DMI information: # SMBIOS implementations newer than version 2.7 are not
# fully supported by this version of dmidecode.

$ ps aux | grep [g]pg
root      724488  0.0  0.0 166116   812 ?        Ss   21:57   0:00 gpg-agent --homedir /var/cache/dnf/remi-modular-6408ecca79e22107/pubring --use-standard-socket --daemon
root      724528  0.0  0.0 166116   680 ?        Ss   21:57   0:00 gpg-agent --homedir /var/cache/dnf/remi-safe-ff04689114f71b24/pubring --use-standard-socket --daemon
$

Comment 1 Robert Scheck 2021-07-15 20:13:36 UTC
Cross-filed case 02989593 at the Red Hat customer portal together with sosreport and rhsm* and dnf* logs.

Comment 2 Zdenek Pytela 2021-07-16 07:13:50 UTC

*** This bug has been marked as a duplicate of bug 1887572 ***


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