Bug 2537252 - SELinux is preventing lsblk from read access on the file swaps.
Summary: SELinux is preventing lsblk from read access on the file swaps.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 44
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-20 13:12 UTC by Christian Stadelmann
Modified: 2026-10-03 01:12 UTC (History)
7 users (show)

Fixed In Version: selinux-policy-44.11-1.fc44
Clone Of:
Environment:
Last Closed: 2026-10-03 01:12:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 3434 0 None open Allow bootupd read /proc/swaps 2026-09-22 07:24:15 UTC

Description Christian Stadelmann 2026-09-20 13:12:34 UTC
No noticeable problems.

Reproducible: Always

Steps to Reproduce:
1. Have Fedora atomic running (Silverblue in my case)
2. Boot
3. Have a look at SEAlerts
Actual Results:
After each boot, SELinux Alert Browser notifies me of an issue, suggesting:
> You should report this as a bug.
> You can generate a local policy module to allow this access.
> Allow this access for now by executing:
> # ausearch -c 'lsblk' --raw | audit2allow -M my-lsblk
> # semodule -X 300 -i my-lsblk.pp

Expected Results:
No alert from seapplet.

Additional Information:
Output from SELinux Alert Browser's Detail window:
====================
SELinux is preventing lsblk from read access on the file swaps.

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

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

Additional Information:
Source Context                system_u:system_r:bootupd_t:s0
Target Context                system_u:object_r:proc_t:s0
Target Objects                swaps [ file ]
Source                        lsblk
Source Path                   lsblk
Port                          <Unknown>
Host                          [redacted]
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-44.9-1.fc44.noarch
Local Policy RPM              
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     [redacted]
Platform                      Linux [redacted] 7.2.5-200.fc44.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Fri Sep 11 15:11:05 UTC 2026
                              x86_64
Alert Count                   34
First Seen                    2026-08-23 16:01:05 CEST
Last Seen                     2026-09-19 09:55:26 CEST
Local ID                      50900f0a-a29a-4a67-9006-a161886096dc

Raw Audit Messages
type=AVC msg=audit(1789804526.636:111): avc:  denied  { read } for  pid=1060 comm="lsblk" name="swaps" dev="proc" ino=4026532097 scontext=system_u:system_r:bootupd_t:s0 tcontext=system_u:object_r:proc_t:s0 tclass=file permissive=1


Hash: lsblk,bootupd_t,proc_t,file,read

Comment 1 Christian Stadelmann 2026-09-20 13:15:03 UTC
At the same time (also at each boot), I get a very similar problem for file `/proc/swaps`. I guess this is the same issue, just with a different path.

Here is the details page from that denial:
===================
SELinux is preventing lsblk from open access on the file /proc/swaps.

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

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

Additional Information:
Source Context                system_u:system_r:bootupd_t:s0
Target Context                system_u:object_r:proc_t:s0
Target Objects                /proc/swaps [ file ]
Source                        lsblk
Source Path                   lsblk
Port                          <Unknown>
Host                          [redacted]
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-44.9-1.fc44.noarch
Local Policy RPM              
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     [redacted]
Platform                      Linux [redacted] 7.2.5-200.fc44.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Fri Sep 11 15:11:05 UTC 2026
                              x86_64
Alert Count                   34
First Seen                    2026-08-23 16:01:05 CEST
Last Seen                     2026-09-19 09:55:26 CEST
Local ID                      a61f24d6-0679-4f27-b168-2a8ce93a9aae

Raw Audit Messages
type=AVC msg=audit(1789804526.636:112): avc:  denied  { open } for  pid=1060 comm="lsblk" path="/proc/swaps" dev="proc" ino=4026532097 scontext=system_u:system_r:bootupd_t:s0 tcontext=system_u:object_r:proc_t:s0 tclass=file permissive=1


Hash: lsblk,bootupd_t,proc_t,file,open

Comment 2 Christian Stadelmann 2026-09-20 13:16:24 UTC
And another one with `getattr` instead of `open`/`read` as before, also with the same time stamps:
=====================
SELinux is preventing lsblk from getattr access on the file /proc/swaps.

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

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

Additional Information:
Source Context                system_u:system_r:bootupd_t:s0
Target Context                system_u:object_r:proc_t:s0
Target Objects                /proc/swaps [ file ]
Source                        lsblk
Source Path                   lsblk
Port                          <Unknown>
Host                          [redacted]
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-44.9-1.fc44.noarch
Local Policy RPM              
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     [redacted]
Platform                      Linux [redacted] 7.2.5-200.fc44.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Fri Sep 11 15:11:05 UTC 2026
                              x86_64
Alert Count                   34
First Seen                    2026-08-23 16:01:05 CEST
Last Seen                     2026-09-19 09:55:26 CEST
Local ID                      37afe8f0-fa99-4775-a696-e2d3beff7916

Raw Audit Messages
type=AVC msg=audit(1789804526.638:113): avc:  denied  { getattr } for  pid=1060 comm="lsblk" path="/proc/swaps" dev="proc" ino=4026532097 scontext=system_u:system_r:bootupd_t:s0 tcontext=system_u:object_r:proc_t:s0 tclass=file permissive=1


Hash: lsblk,bootupd_t,proc_t,file,getattr

Comment 3 Fedora Update System 2026-09-30 13:30:35 UTC
FEDORA-2026-fbe94e8d5e (selinux-policy-44.11-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-fbe94e8d5e

Comment 4 Fedora Update System 2026-10-01 02:01:23 UTC
FEDORA-2026-fbe94e8d5e has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-fbe94e8d5e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-fbe94e8d5e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2026-10-03 01:12:00 UTC
FEDORA-2026-fbe94e8d5e (selinux-policy-44.11-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.


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