Bug 2072272 - SELinux is preventing rm from 'unlink' accesses on the file tlp-run.conf_tmp2Dz8Wi.
Summary: SELinux is preventing rm from 'unlink' accesses on the file tlp-run.conf_tmp2...
Keywords:
Status: CLOSED DUPLICATE of bug 2070329
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 36
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a76afff768ede34d9df86818574...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-05 21:58 UTC by Michael
Modified: 2022-04-20 14:50 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-04-20 14:50:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 2070329 1 medium CLOSED SELinux is preventing mktemp from 'write' accesses on the directory tlp. 2022-04-26 02:40:11 UTC

Internal Links: 2070329

Description Michael 2022-04-05 21:58:11 UTC
Description of problem:
SELinux is preventing rm from 'unlink' accesses on the file tlp-run.conf_tmp2Dz8Wi.

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

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

Additional Information:
Source Context                system_u:system_r:NetworkManager_dispatcher_t:s0
Target Context                system_u:object_r:var_run_t:s0
Target Objects                tlp-run.conf_tmp2Dz8Wi [ file ]
Source                        rm
Source Path                   rm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-36.5-1.fc36.noarch
Local Policy RPM              selinux-policy-targeted-36.5-1.fc36.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.16.16-200.fc35.x86_64 #1 SMP
                              PREEMPT Wed Mar 23 00:44:58 CET 2022 x86_64 x86_64
Alert Count                   9
First Seen                    2022-04-05 23:55:50 CEST
Last Seen                     2022-04-05 23:56:34 CEST
Local ID                      e901c4c9-af18-436a-8f88-f1001fe07bf1

Raw Audit Messages
type=AVC msg=audit(1649195794.216:471): avc:  denied  { unlink } for  pid=6095 comm="rm" name="tlp-run.conf_tmp2Dz8Wi" dev="tmpfs" ino=2250 scontext=system_u:system_r:NetworkManager_dispatcher_t:s0 tcontext=system_u:object_r:var_run_t:s0 tclass=file permissive=1


Hash: rm,NetworkManager_dispatcher_t,var_run_t,file,unlink

Version-Release number of selected component:
selinux-policy-targeted-36.5-1.fc36.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.17.1
hashmarkername: setroubleshoot
kernel:         5.16.16-200.fc35.x86_64
type:           libreport

Comment 1 Kevin P. Fleming 2022-04-06 19:57:06 UTC
This is almost certainly caused by /usr/lib/NetworkManager/dispatcher.d/99tlp-rdw-nm, as in #2070329.

Comment 2 Zdenek Pytela 2022-04-20 14:50:49 UTC

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


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