Bug 2357113 - SELinux is preventing sadc from 'open' accesses on the file /proc/pressure/memory.
Summary: SELinux is preventing sadc from 'open' accesses on the file /proc/pressure/me...
Keywords:
Status: CLOSED DUPLICATE of bug 2356680
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 42
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:4f7bd75f3c1ce09a25007c8e16a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-03 04:35 UTC by hannes
Modified: 2025-04-03 20:57 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-04-03 20:57:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.86 KB, text/plain)
2025-04-03 04:35 UTC, hannes
no flags Details
File: os_info (729 bytes, text/plain)
2025-04-03 04:35 UTC, hannes
no flags Details

Description hannes 2025-04-03 04:35:37 UTC
Description of problem:
It happened after an upgrade to the following versions:
Upgrade  selinux-policy-0:41.35-1.fc42.noarch              Dependency      updates-testing
  Upgrade  selinux-policy-targeted-0:41.35-1.fc42.noarch     External User   updates-testing
  Upgrade  selinux-policy-doc-0:41.35-1.fc42.noarch          User            updates-testing
  Upgrade  selinux-policy-devel-0:41.35-1.fc42.noarch        User            updates-testing
  Upgrade  selinux-policy-sandbox-0:41.35-1.fc42.noarch      User            updates-testing
SELinux is preventing sadc from 'open' accesses on the file /proc/pressure/memory.

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

If you believe that sadc should be allowed open access on the memory 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 '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                /proc/pressure/memory [ file ]
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-03 06:30:08 CEST
Last Seen                     2025-04-03 06:30:08 CEST
Local ID                      311b8865-fed4-4413-ad9a-70885ca6f85a

Raw Audit Messages
type=AVC msg=audit(1743654608.432:217): avc:  denied  { open } for  pid=5164 comm="sadc" path="/proc/pressure/memory" dev="proc" ino=4026532092 scontext=system_u:system_r:sysstat_t:s0 tcontext=system_u:object_r:proc_psi_t:s0 tclass=file permissive=0


Hash: sadc,sysstat_t,proc_psi_t,file,open

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 'open' accesses on the file /proc/pressure/memory.
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 hannes 2025-04-03 04:35:40 UTC
Created attachment 2083165 [details]
File: description

Comment 2 hannes 2025-04-03 04:35:41 UTC
Created attachment 2083166 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-04-03 20:57:08 UTC

*** This bug has been marked as a duplicate of bug 2356680 ***


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