Bug 2173363

Summary: SELinux is preventing rpmdb_migrate from 'execute_no_trans' accesses on the file /usr/bin/rm.
Product: [Fedora] Fedora Reporter: Ian Laurie <nixuser>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 38CC: dwalsh, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:bad8af449d9a9f15c84bb567f15370495a8c9a7314b0ffc693ff45eba87a8407;VARIANT_ID=;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-02-27 15:58:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: description
none
File: os_info none

Description Ian Laurie 2023-02-26 02:10:42 UTC
Description of problem:
Just booted and logged into Xfce.
SELinux is preventing rpmdb_migrate from 'execute_no_trans' accesses on the file /usr/bin/rm.

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

If you believe that rpmdb_migrate should be allowed execute_no_trans access on the rm 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 'rpmdb_migrate' --raw | audit2allow -M my-rpmdbmigrate
# semodule -X 300 -i my-rpmdbmigrate.pp

Additional Information:
Source Context                system_u:system_r:rpmdb_t:s0
Target Context                system_u:object_r:bin_t:s0
Target Objects                /usr/bin/rm [ file ]
Source                        rpmdb_migrate
Source Path                   rpmdb_migrate
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           coreutils-9.1-11.fc38.x86_64
SELinux Policy RPM            selinux-policy-targeted-38.6-1.fc38.noarch
Local Policy RPM              selinux-policy-targeted-38.6-1.fc38.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.2.0-63.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Mon Feb 20 15:07:34 UTC 2023
                              x86_64
Alert Count                   1
First Seen                    2023-02-26 13:09:30 AEDT
Last Seen                     2023-02-26 13:09:30 AEDT
Local ID                      f625bb60-302d-4c9f-9dd7-5fe1bf8173aa

Raw Audit Messages
type=AVC msg=audit(1677377370.94:65): avc:  denied  { execute_no_trans } for  pid=645 comm="rpmdb_migrate" path="/usr/bin/rm" dev="sda3" ino=2383978 scontext=system_u:system_r:rpmdb_t:s0 tcontext=system_u:object_r:bin_t:s0 tclass=file permissive=0


Hash: rpmdb_migrate,rpmdb_t,bin_t,file,execute_no_trans

Version-Release number of selected component:
selinux-policy-targeted-38.6-1.fc38.noarch

Additional info:
reporter:       libreport-2.17.7
reason:         SELinux is preventing rpmdb_migrate from 'execute_no_trans' accesses on the file /usr/bin/rm.
package:        selinux-policy-targeted-38.6-1.fc38.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.2.0-63.fc38.x86_64
comment:        Just booted and logged into Xfce.
component:      selinux-policy

Comment 1 Ian Laurie 2023-02-26 02:10:44 UTC
Created attachment 1946474 [details]
File: description

Comment 2 Ian Laurie 2023-02-26 02:10:45 UTC
Created attachment 1946475 [details]
File: os_info

Comment 3 Zdenek Pytela 2023-02-27 15:58:08 UTC

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