Bug 2173363 - SELinux is preventing rpmdb_migrate from 'execute_no_trans' accesses on the file /usr/bin/rm.
Summary: SELinux is preventing rpmdb_migrate from 'execute_no_trans' accesses on the f...
Keywords:
Status: CLOSED DUPLICATE of bug 2164752
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 38
Hardware: x86_64
OS: Unspecified
medium
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:bad8af449d9a9f15c84bb567f15...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-26 02:10 UTC by Ian Laurie
Modified: 2023-02-27 15:58 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-02-27 15:58:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.95 KB, text/plain)
2023-02-26 02:10 UTC, Ian Laurie
no flags Details
File: os_info (689 bytes, text/plain)
2023-02-26 02:10 UTC, Ian Laurie
no flags Details

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 ***


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