Bug 2537252
| Summary: | SELinux is preventing lsblk from read access on the file swaps. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Christian Stadelmann <fedora> |
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 44 | CC: | dwalsh, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | selinux-policy-44.11-1.fc44 | Doc Type: | --- |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2026-10-03 01:12:00 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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
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
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 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. 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. |
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