Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1959771

Summary: SELinux is preventing /usr/libexec/platform-python3.6 from execute_no_trans access on the file /usr/bin/gpgsm
Product: Red Hat Enterprise Linux 8 Reporter: Davide Maglio <dmaglio>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.3CC: lvrabec, mmalik, plautrba, ssekidde
Target Milestone: betaFlags: dmaglio: needinfo-
pm-rhel: mirror+
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-19 08:51:46 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 Davide Maglio 2021-05-12 10:26:38 UTC
Description of problem:


Version-Release number of selected component (if applicable):
SELinux is preventing /usr/libexec/platform-python3.6 from execute_no_trans access on the file /usr/bin/gpgsm.

***** Plugin catchall (100. confidence) suggests **************************

If you believe that platform-python3.6 should be allowed execute_no_trans access on the gpgsm file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'rhsmcertd-worke' --raw | audit2allow -M my-rhsmcertdworke
# semodule -X 300 -i my-rhsmcertdworke.pp

Additional Information:
Source Context system_u:system_r:rhsmcertd_t:s0
Target Context system_u:object_r:gpg_exec_t:s0
Target Objects /usr/bin/gpgsm [ file ]
Source rhsmcertd-worke
Source Path /usr/libexec/platform-python3.6
Port
Host dell-rina
Source RPM Packages
Target RPM Packages gnupg2-smime-2.2.20-2.el8.x86_64
SELinux Policy RPM selinux-policy-targeted-3.14.3-54.el8_3.4.noarch
Local Policy RPM selinux-policy-targeted-3.14.3-54.el8_3.4.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name dell-rina
Platform Linux dell-rina 4.18.0-240.22.1.el8_3.x86_64 #1
SMP Thu Mar 25 14:36:04 EDT 2021 x86_64 x86_64
Alert Count 6
First Seen 2021-05-11 15:16:01 CEST
Last Seen 2021-05-12 11:09:20 CEST
Local ID 6807f477-8e6a-46c1-b54d-6b5bca3b6efd

Raw Audit Messages
type=AVC msg=audit(1620810560.612:154): avc: denied { execute_no_trans } for pid=12641 comm="rhsmcertd-worke" path="/usr/bin/gpgsm" dev="dm-0" ino=559434 scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=system_u:object_r:gpg_exec_t:s0 tclass=file permissive=0


Hash: rhsmcertd-worke,rhsmcertd_t,gpg_exec_t,file,execute_no_trans

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Zdenek Pytela 2021-05-12 11:03:26 UTC
Davide,

Could you share the reproducing steps to trigger this issue?

Comment 2 Zdenek Pytela 2021-05-19 08:51:46 UTC

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