Bug 2227455 - SELinux is preventing systemd-journal from 'write' accesses on the file memory.pressure.
Summary: SELinux is preventing systemd-journal from 'write' accesses on the file memor...
Keywords:
Status: CLOSED DUPLICATE of bug 2223218
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:897ace4c38ed55b9971900722b7...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-29 20:53 UTC by Mikhail
Modified: 2023-07-31 08:02 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-31 08:02:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.01 KB, text/plain)
2023-07-29 20:53 UTC, Mikhail
no flags Details
File: os_info (770 bytes, text/plain)
2023-07-29 20:53 UTC, Mikhail
no flags Details

Description Mikhail 2023-07-29 20:53:50 UTC
Description of problem:
SELinux is preventing systemd-journal from 'write' accesses on the file memory.pressure.

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

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

Additional Information:
Source Context                system_u:system_r:syslogd_t:s0
Target Context                system_u:object_r:cgroup_t:s0
Target Objects                memory.pressure [ file ]
Source                        systemd-journal
Source Path                   systemd-journal
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.22-1.fc39.noarch
Local Policy RPM              selinux-policy-targeted-38.22-1.fc39.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.5.0-
                              0.rc3.20230728git57012c57536f.27.fc39.x86_64+debug
                              #1 SMP PREEMPT_DYNAMIC Fri Jul 28 19:18:00 +05
                              2023 x86_64
Alert Count                   3
First Seen                    2023-07-26 10:54:31 +05
Last Seen                     2023-07-30 01:53:01 +05
Local ID                      48e505ce-2a97-4bf1-9cdd-c51d5b3b300b

Raw Audit Messages
type=AVC msg=audit(1690663981.945:4955): avc:  denied  { write } for  pid=194478 comm="systemd-journal" name="memory.pressure" dev="cgroup2" ino=40010 scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=file permissive=1


Hash: systemd-journal,syslogd_t,cgroup_t,file,write

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

Additional info:
reporter:       libreport-2.17.11
reason:         SELinux is preventing systemd-journal from 'write' accesses on the file memory.pressure.
package:        selinux-policy-targeted-38.22-1.fc39.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.5.0-0.rc3.20230728git57012c57536f.27.fc39.x86_64+debug
component:      selinux-policy

Comment 1 Mikhail 2023-07-29 20:53:52 UTC
Created attachment 1980636 [details]
File: description

Comment 2 Mikhail 2023-07-29 20:53:54 UTC
Created attachment 1980637 [details]
File: os_info

Comment 3 Zdenek Pytela 2023-07-31 08:02:19 UTC

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


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