Bug 2405707 - SELinux is preventing (tmux) from 'execute' accesses on the file tmux.
Summary: SELinux is preventing (tmux) from 'execute' accesses on the file tmux.
Keywords:
Status: CLOSED DUPLICATE of bug 2359828
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 42
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:2f90f6540e43d7c9e03713644d6...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-10-22 13:16 UTC by Tomas Dolezal
Modified: 2026-01-26 15:07 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-01-26 15:07:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.84 KB, text/plain)
2025-10-22 13:16 UTC, Tomas Dolezal
no flags Details
File: os_info (645 bytes, text/plain)
2025-10-22 13:16 UTC, Tomas Dolezal
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy issues 2500 0 None open `run0` is almost unusable. 2026-01-26 14:59:52 UTC

Description Tomas Dolezal 2025-10-22 13:16:04 UTC
Description of problem:
`sudo run0 tmux` causes these denials
workaround: `sudo run0 sh -c tmux`

type=AVC msg=audit(1761138446.744:857): avc:  denied  { execute } for  pid=58075 comm="(tmux)" name="tmux" dev="dm-1" ino=4230094 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:screen_exec_t:s0 tclass=file permissive=0
type=AVC msg=audit(1761138459.316:872): avc:  denied  { execute } for  pid=58231 comm="(tmux)" name="tmux" dev="dm-1" ino=4230094 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:screen_exec_t:s0 tclass=file permissive=0
type=AVC msg=audit(1761138495.364:908): avc:  denied  { execute } for  pid=58389 comm="(tmux)" name="tmux" dev="dm-1" ino=4230094 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:screen_exec_t:s0 tclass=file permissive=1
type=AVC msg=audit(1761138495.364:909): avc:  denied  { read open } for  pid=58389 comm="(tmux)" path="/usr/bin/tmux" dev="dm-1" ino=4230094 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:screen_exec_t:s0 tclass=file permissive=1
type=AVC msg=audit(1761138495.364:910): avc:  denied  { entrypoint } for  pid=58389 comm="(tmux)" path="/usr/bin/tmux" dev="dm-1" ino=4230094 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=system_u:object_r:screen_exec_t:s0 tclass=file permissive=1

pkg versions:
systemd-257.10-1.fc42.x86_64
tmux-3.5a-4.fc42.x86_64
selinux-policy-42.13-1.fc42.noarch
SELinux is preventing (tmux) from 'execute' accesses on the file tmux.

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

If you believe that (tmux) should be allowed execute access on the tmux 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 '(tmux)' --raw | audit2allow -M my-tmux
# semodule -X 300 -i my-tmux.pp

Additional Information:
Source Context                system_u:system_r:init_t:s0
Target Context                system_u:object_r:screen_exec_t:s0
Target Objects                tmux [ file ]
Source                        (tmux)
Source Path                   (tmux)
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-42.13-1.fc42.noarch
Local Policy RPM              selinux-policy-targeted-42.13-1.fc42.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.16.12-200.fc42.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Sun Oct 12 16:31:16 UTC 2025
                              x86_64
Alert Count                   10
First Seen                    2025-05-19 13:49:49 CEST
Last Seen                     2025-10-22 15:08:15 CEST
Local ID                      70806de7-fa25-49ac-928a-b7ec4bc924c2

Raw Audit Messages
type=AVC msg=audit(1761138495.364:908): avc:  denied  { execute } for  pid=58389 comm="(tmux)" name="tmux" dev="dm-1" ino=4230094 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:screen_exec_t:s0 tclass=file permissive=1


Hash: (tmux),init_t,screen_exec_t,file,execute

Version-Release number of selected component:
selinux-policy-targeted-42.13-1.fc42.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing (tmux) from 'execute' accesses on the file tmux.
package:        selinux-policy-targeted-42.13-1.fc42.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.16.12-200.fc42.x86_64
component:      selinux-policy

Comment 1 Tomas Dolezal 2025-10-22 13:16:07 UTC
Created attachment 2110460 [details]
File: description

Comment 2 Tomas Dolezal 2025-10-22 13:16:09 UTC
Created attachment 2110461 [details]
File: os_info

Comment 3 Tomas Dolezal 2026-01-26 13:27:06 UTC
Hello Zdeněk,

I am sorry to bother though could you please look at this issue? It's is still valid on f43 and has an unintuitive workaround. This use of run0 may have more similar issues which are possibly not clearly linked to it (as this report's automated output).

selinux-policy-42.22-1.fc43.noarch
6.18.7-200.fc43.x86_64

Comment 4 Tomas Dolezal 2026-01-26 15:07:34 UTC
I found a similar report which this is functionality-wise a duplicate of.

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


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