Bug 2356680

Summary: SELinux is preventing sadc from 'search' accesses on the directory pressure.
Product: [Fedora] Fedora Reporter: Michael <michael.scheiffler>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 42CC: dwalsh, johannes.lips, laurent.rineau__fedora, lvrabec, michael.scheiffler, mikhail.v.gavrilov, mmalik, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---Flags: zpytela: mirror+
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:8b23d80a71064f0b301e73b85e30b7cfd5710b987d17fc4dc3e2dd0399f0e0c8;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-41.36-1.fc42 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-04-11 18:29:56 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:
Attachments:
Description Flags
File: description
none
File: os_info none

Description Michael 2025-04-01 16:40:43 UTC
Description of problem:
SELinux is preventing sadc from 'search' accesses on the directory pressure.

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

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

Additional Information:
Source Context                system_u:system_r:sysstat_t:s0
Target Context                system_u:object_r:proc_psi_t:s0
Target Objects                pressure [ dir ]
Source                        sadc
Source Path                   sadc
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-41.35-1.fc42.noarch
Local Policy RPM              selinux-policy-targeted-41.35-1.fc42.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.14.0-63.fc42.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Mon Mar 24 19:53:37 UTC 2025
                              x86_64
Alert Count                   3
First Seen                    2025-04-01 18:40:05 CEST
Last Seen                     2025-04-01 18:40:05 CEST
Local ID                      5ee5d84c-49b9-47fd-873e-99d644df03d7

Raw Audit Messages
type=AVC msg=audit(1743525605.622:418): avc:  denied  { search } for  pid=6659 comm="sadc" name="pressure" dev="proc" ino=4026532088 scontext=system_u:system_r:sysstat_t:s0 tcontext=system_u:object_r:proc_psi_t:s0 tclass=dir permissive=0


Hash: sadc,sysstat_t,proc_psi_t,dir,search

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

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing sadc from 'search' accesses on the directory pressure.
package:        selinux-policy-targeted-41.35-1.fc42.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.14.0-63.fc42.x86_64
component:      selinux-policy

Comment 1 Michael 2025-04-01 16:40:46 UTC
Created attachment 2082936 [details]
File: description

Comment 2 Michael 2025-04-01 16:40:47 UTC
Created attachment 2082937 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-04-03 20:56:42 UTC
*** Bug 2356694 has been marked as a duplicate of this bug. ***

Comment 4 Zdenek Pytela 2025-04-03 20:56:51 UTC
*** Bug 2356847 has been marked as a duplicate of this bug. ***

Comment 5 Zdenek Pytela 2025-04-03 20:57:08 UTC
*** Bug 2357113 has been marked as a duplicate of this bug. ***

Comment 6 Zdenek Pytela 2025-04-03 20:57:30 UTC
*** Bug 2357155 has been marked as a duplicate of this bug. ***

Comment 7 Zdenek Pytela 2025-04-03 20:57:39 UTC
*** Bug 2357157 has been marked as a duplicate of this bug. ***

Comment 8 Zdenek Pytela 2025-04-03 20:59:49 UTC
I'd like to ask anybody who hits this issue to try the coprbuild from

https://github.com/fedora-selinux/selinux-policy/pull/2621
checks -> rpmbuild -> rawhide

to check if the fix is complete.

Comment 9 Colin J Thomson 2025-04-04 16:52:19 UTC
I just tested but I am still seeing a fair few of similar alerts related to directory pressure:

sealert -l 2cdb66c2-413a-40f9-aee8-2e8ae1e2a8b9
SELinux is preventing pmdalinux from search access on the directory pressure.

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

If you believe that pmdalinux should be allowed search access on the pressure directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
To allow this access for now by executing:
# ausearch -c 'pmdalinux' --raw | audit2allow -M my-pmdalinux
# semodule -X 300 -i my-pmdalinux.pp

Additional Information:
Source Context                system_u:system_r:pcp_pmcd_t:s0
Target Context                system_u:object_r:proc_psi_t:s0
Target Objects                pressure [ dir ]
Source                        pmdalinux
Source Path                   pmdalinux
Port                          <Unknown>
Host                          fedorabox
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-41.35-
                              1.20250403205740768115.pr2621.7.g19e2ea744.fc42.no
                              arch
Local Policy RPM              pcp-selinux-6.3.7-1.fc42.x86_64
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     fedorabox
Platform                      Linux fedorabox 6.14.0-63.fc42.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Mon Mar 24 19:53:37 UTC 2025
                              x86_64
Alert Count                   32
First Seen                    2025-04-04 17:31:14 BST
Last Seen                     2025-04-04 17:38:14 BST
Local ID                      2cdb66c2-413a-40f9-aee8-2e8ae1e2a8b9

Raw Audit Messages
type=AVC msg=audit(1743784694.822:292): avc:  denied  { search } for  pid=1647 comm="pmdalinux" name="pressure" dev="proc" ino=4026532088 scontext=system_u:system_r:pcp_pmcd_t:s0 tcontext=system_u:object_r:proc_psi_t:s0 tclass=dir permissive=0

Hash: pmdalinux,pcp_pmcd_t,proc_psi_t,dir,search

Rolling back to 41.34-1.fc42 stops them.

Comment 10 Fedora Update System 2025-04-08 11:26:01 UTC
FEDORA-2025-a63bd9d838 (selinux-policy-41.36-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-a63bd9d838

Comment 11 Fedora Update System 2025-04-09 02:39:13 UTC
FEDORA-2025-a63bd9d838 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-a63bd9d838`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-a63bd9d838

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

Comment 12 Fedora Update System 2025-04-11 18:29:56 UTC
FEDORA-2025-a63bd9d838 (selinux-policy-41.36-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.