Fedora Account System
Red Hat Associate
Red Hat Customer
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
Created attachment 2110460 [details] File: description
Created attachment 2110461 [details] File: os_info
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
I found a similar report which this is functionality-wise a duplicate of. *** This bug has been marked as a duplicate of bug 2359828 ***