Bug 2417501 - SELinux is preventing bwrap from 'mounton' accesses on the directory /tmp.
Summary: SELinux is preventing bwrap from 'mounton' accesses on the directory /tmp.
Keywords:
Status: CLOSED DUPLICATE of bug 2415016
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 43
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3760feb4b3de0c9bfea2b290318...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-11-27 02:38 UTC by Matt Fagnani
Modified: 2025-11-27 09:35 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-11-27 09:35:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (712 bytes, text/plain)
2025-11-27 02:38 UTC, Matt Fagnani
no flags Details
File: description (1.85 KB, text/plain)
2025-11-27 02:38 UTC, Matt Fagnani
no flags Details

Description Matt Fagnani 2025-11-27 02:38:49 UTC
Description of problem:
I used Plasma 6.5.3 on Wayland in a Fedora 43 KDE installation. I ran dnf offline-upgrade with updates-testing enabled which included selinux-policy-42.17-1.fc43.noarch. On the next boot, I ran Dolphin. I selected the Trash folder on the left bar in Dolphin which had some deleted videos. I moved the cursor over the video files. There were repeated SELinux denial notifications shown. bwrap was denied mounting /tmp which had the tmp_t label. ls -laZ /tmp showed
drwxrwxrwt. 20 root root system_u:object_r:tmp_t:s0           480 Nov 26 21:30 .

blocking-1 and blocking-2 were denied connecting to /run/systemd/userdb/io.systemd.Home with the systemd_homed_t label as I reported at Bug 2415075.

Nov 26 21:11:45 audit[3378]: AVC avc:  denied  { mounton } for  pid=3378 comm="bwrap" path="/tmp" dev="tmpfs" ino=1 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmp_t:s0 tclass=dir permissive=0
Nov 26 21:11:45 audit[3381]: AVC avc:  denied  { mounton } for  pid=3381 comm="bwrap" path="/tmp" dev="tmpfs" ino=1 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmp_t:s0 tclass=dir permissive=0
Nov 26 21:11:45 audit[3341]: AVC avc:  denied  { connectto } for  pid=3341 comm="blocking-1" path="/run/systemd/userdb/io.systemd.Home" scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=system_u:system_r:systemd_homed_t:s0 tclass=unix_stream_socket permissive=0
...

Bug 2415016 had bwrap denials mounting /tmp which involved the labels thumb_tmpfs_t and tmpfs_t. 
SELinux is preventing bwrap from 'mounton' accesses on the directory /tmp.

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

If you believe that bwrap should be allowed mounton access on the tmp directory 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 'bwrap' --raw | audit2allow -M my-bwrap
# semodule -X 300 -i my-bwrap.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023
Target Context                system_u:object_r:tmp_t:s0
Target Objects                /tmp [ dir ]
Source                        bwrap
Source Path                   bwrap
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-42.17-1.fc43.noarch
Local Policy RPM              selinux-policy-targeted-42.17-1.fc43.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.17.9-300.fc43.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Mon Nov 24 23:31:27 UTC 2025
                              x86_64
Alert Count                   148
First Seen                    2025-11-26 21:11:45 EST
Last Seen                     2025-11-26 21:12:14 EST
Local ID                      07916b22-4a82-42cc-94ba-43431e825e34

Raw Audit Messages
type=AVC msg=audit(1764209534.735:560): avc:  denied  { mounton } for  pid=5585 comm="bwrap" path="/tmp" dev="tmpfs" ino=1 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmp_t:s0 tclass=dir permissive=0


Hash: bwrap,thumb_t,tmp_t,dir,mounton

Version-Release number of selected component:
selinux-policy-targeted-42.17-1.fc43.noarch

Additional info:
reporter:       libreport-2.17.15
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.17.9-300.fc43.x86_64
component:      selinux-policy
package:        selinux-policy-targeted-42.17-1.fc43.noarch
reason:         SELinux is preventing bwrap from 'mounton' accesses on the directory /tmp.
component:      selinux-policy

Comment 1 Matt Fagnani 2025-11-27 02:38:52 UTC
Created attachment 2116297 [details]
File: os_info

Comment 2 Matt Fagnani 2025-11-27 02:38:53 UTC
Created attachment 2116298 [details]
File: description

Comment 3 Zdenek Pytela 2025-11-27 09:35:08 UTC

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


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