Bug 2521604 - SELinux is preventing crun from 'mounton' accesses on the directory /var/lib/boinc/.local/share/containers/storage/overlay/7d838935d4ed5d8b86be2d906b8f0d458a01b6668d1d4becf245557a80bf7792/merged/sys/fs/cgroup.
Summary: SELinux is preventing crun from 'mounton' accesses on the directory /var/lib/...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 44
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:65c9e4732c33d312195eea13b7d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-23 13:05 UTC by Mr Beedell, Roke Julian Lockhart
Modified: 2026-08-23 13:06 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.91 KB, text/plain)
2026-08-23 13:06 UTC, Mr Beedell, Roke Julian Lockhart
no flags Details
File: os_info (712 bytes, text/plain)
2026-08-23 13:06 UTC, Mr Beedell, Roke Julian Lockhart
no flags Details

Description Mr Beedell, Roke Julian Lockhart 2026-08-23 13:05:59 UTC
Description of problem:
Observe https://bugzilla.redhat.com/show_bug.cgi?id=2521586#c0.
SELinux is preventing crun from 'mounton' accesses on the directory /var/lib/boinc/.local/share/containers/storage/overlay/7d838935d4ed5d8b86be2d906b8f0d458a01b6668d1d4becf245557a80bf7792/merged/sys/fs/cgroup.

*****  Plugin restorecon (99.5 confidence) suggests   ************************

If you want to fix the label. 
/var/lib/boinc/.local/share/containers/storage/overlay/7d838935d4ed5d8b86be2d906b8f0d458a01b6668d1d4becf245557a80bf7792/merged/sys/fs/cgroup default label should be boinc_var_lib_t.
Then you can run restorecon. The access attempt may have been stopped due to insufficient permissions to access a parent directory in which case try to change the following command accordingly.
Do
# /sbin/restorecon -v /var/lib/boinc/.local/share/containers/storage/overlay/7d838935d4ed5d8b86be2d906b8f0d458a01b6668d1d4becf245557a80bf7792/merged/sys/fs/cgroup

*****  Plugin catchall (1.49 confidence) suggests   **************************

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

Additional Information:
Source Context                system_u:system_r:boinc_t:s0
Target Context                system_u:object_r:cgroup_t:s0
Target Objects                /var/lib/boinc/.local/share/containers/storage/ove
                              rlay/7d838935d4ed5d8b86be2d906b8f0d458a01b6668d1d4
                              becf245557a80bf7792/merged/sys/fs/cgroup [ dir ]
Source                        crun
Source Path                   crun
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-44.6-1.fc44.noarch
Local Policy RPM              selinux-policy-targeted-44.6-1.fc44.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 7.1.9-200.fc44.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Wed Aug 19 17:41:40 UTC 2026
                              x86_64
Alert Count                   1
First Seen                    2026-08-23 13:56:29 BST
Last Seen                     2026-08-23 13:56:29 BST
Local ID                      ede0eb6e-2773-4505-9468-0a0d2ad4eb01

Raw Audit Messages
type=AVC msg=audit(1787489789.19:697): avc:  denied  { mounton } for  pid=29513 comm="crun" path="/var/lib/boinc/.local/share/containers/storage/overlay/7d838935d4ed5d8b86be2d906b8f0d458a01b6668d1d4becf245557a80bf7792/merged/sys/fs/cgroup" dev="cgroup2" ino=30212 scontext=system_u:system_r:boinc_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=dir permissive=1


Hash: crun,boinc_t,cgroup_t,dir,mounton

Version-Release number of selected component:
selinux-policy-targeted-44.6-1.fc44.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing crun from 'mounton' accesses on the directory /var/lib/boinc/.local/share/containers/storage/overlay/7d838935d4ed5d8b86be2d906b8f0d458a01b6668d1d4becf245557a80bf7792/merged/sys/fs/cgroup.
package:        selinux-policy-targeted-44.6-1.fc44.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         7.1.9-200.fc44.x86_64
event_log:      2026-08-23-13:59:46> Looking for similar problems in bugzilla
comment:        Observe https://bugzilla.redhat.com/show_bug.cgi?id=2521586#c0.
component:      selinux-policy

Comment 1 Mr Beedell, Roke Julian Lockhart 2026-08-23 13:06:01 UTC
Created attachment 2155387 [details]
File: description

Comment 2 Mr Beedell, Roke Julian Lockhart 2026-08-23 13:06:03 UTC
Created attachment 2155388 [details]
File: os_info


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