Bug 2256274 - SELinux is preventing mariadbd from 'write' accesses on the Datei memory.pressure.
Summary: SELinux is preventing mariadbd from 'write' accesses on the Datei memory.pres...
Keywords:
Status: CLOSED DUPLICATE of bug 2256002
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 39
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:2a51c9f7bff4129d178f8633ae1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-12-30 16:57 UTC by aannoaanno
Modified: 2024-02-09 10:03 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-02-09 10:03:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.96 KB, text/plain)
2023-12-30 16:57 UTC, aannoaanno
no flags Details
File: os_info (699 bytes, text/plain)
2023-12-30 16:57 UTC, aannoaanno
no flags Details

Description aannoaanno 2023-12-30 16:57:49 UTC
Description of problem:
SELinux is preventing mariadbd from 'write' accesses on the Datei memory.pressure.

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

Wenn Sie denken, dass es mariadbd standardmäßig erlaubt sein sollte, write Zugriff auf memory.pressure file zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# ausearch -c 'mariadbd' --raw | audit2allow -M my-mariadbd
# semodule -X 300 -i my-mariadbd.pp

Additional Information:
Source Context                system_u:system_r:mysqld_t:s0
Target Context                system_u:object_r:cgroup_t:s0
Target Objects                memory.pressure [ file ]
Source                        mariadbd
Source Path                   mariadbd
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-39.3-1.fc39.noarch
Local Policy RPM              selinux-policy-targeted-39.3-1.fc39.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.6.8-200.fc39.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Dec 21 04:01:49 UTC 2023
                              x86_64
Alert Count                   24
First Seen                    2023-12-26 12:02:04 CET
Last Seen                     2023-12-30 16:59:58 CET
Local ID                      826f3f56-06b3-416a-917f-8bf68259e820

Raw Audit Messages
type=AVC msg=audit(1703951998.915:137): avc:  denied  { write } for  pid=2607 comm="mariadbd" name="memory.pressure" dev="cgroup2" ino=6170 scontext=system_u:system_r:mysqld_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=file permissive=0


Hash: mariadbd,mysqld_t,cgroup_t,file,write

Version-Release number of selected component:
selinux-policy-targeted-39.3-1.fc39.noarch

Additional info:
reporter:       libreport-2.17.11
reason:         SELinux is preventing mariadbd from 'write' accesses on the Datei memory.pressure.
package:        selinux-policy-targeted-39.3-1.fc39.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.6.8-200.fc39.x86_64
component:      selinux-policy

Comment 1 aannoaanno 2023-12-30 16:57:55 UTC
Created attachment 2006649 [details]
File: description

Comment 2 aannoaanno 2023-12-30 16:57:57 UTC
Created attachment 2006650 [details]
File: os_info

Comment 3 Zdenek Pytela 2024-02-09 10:03:12 UTC

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


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