Bug 2280399 - SELinux is preventing /usr/lib/systemd/systemd-journald from 'read' accesses on the file /usr/lib/systemd/journald.conf.
Summary: SELinux is preventing /usr/lib/systemd/systemd-journald from 'read' accesses ...
Keywords:
Status: CLOSED DUPLICATE of bug 2279923
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:5c5d3d9610511971514a02ce809...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-05-14 20:58 UTC by Mikhail
Modified: 2024-05-17 17:54 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-05-17 17:54:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (3.04 KB, text/plain)
2024-05-14 20:58 UTC, Mikhail
no flags Details
File: os_info (770 bytes, text/plain)
2024-05-14 20:58 UTC, Mikhail
no flags Details

Description Mikhail 2024-05-14 20:58:02 UTC
Description of problem:
SELinux is preventing /usr/lib/systemd/systemd-journald from 'read' accesses on the file /usr/lib/systemd/journald.conf.

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

If you believe that systemd-journald should be allowed read access on the journald.conf 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:init_exec_t:s0
Target Objects                /usr/lib/systemd/journald.conf [ file ]
Source                        systemd-journal
Source Path                   /usr/lib/systemd/systemd-journald
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-256~rc1^20240509git1781de1-2.fc41.x86_64
Target RPM Packages           systemd-256~rc1^20240509git1781de1-2.fc41.x86_64
SELinux Policy RPM            selinux-policy-targeted-40.18-2.fc41.noarch
Local Policy RPM              selinux-policy-targeted-40.18-2.fc41.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.9.0-64.fc41.x86_64+debug #1 SMP
                              PREEMPT_DYNAMIC Mon May 13 11:40:30 UTC 2024
                              x86_64
Alert Count                   1
First Seen                    2024-05-14 22:48:10 +05
Last Seen                     2024-05-14 22:48:10 +05
Local ID                      c7832a53-8b17-4123-a1ad-e413f6b128cf

Raw Audit Messages
type=AVC msg=audit(1715708890.120:1636): avc:  denied  { read } for  pid=204699 comm="systemd-journal" name="journald.conf" dev="nvme0n1p2" ino=448678 scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:object_r:init_exec_t:s0 tclass=file permissive=1


type=AVC msg=audit(1715708890.120:1636): avc:  denied  { open } for  pid=204699 comm="systemd-journal" path="/usr/lib/systemd/journald.conf" dev="nvme0n1p2" ino=448678 scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:object_r:init_exec_t:s0 tclass=file permissive=1


type=SYSCALL msg=audit(1715708890.120:1636): arch=x86_64 syscall=openat success=yes exit=ETIMEDOUT a0=ffffff9c a1=55b5b33c1380 a2=80000 a3=0 items=1 ppid=1 pid=204699 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=systemd-journal exe=/usr/lib/systemd/systemd-journald subj=system_u:system_r:syslogd_t:s0 key=(null)

type=CWD msg=audit(1715708890.120:1636): cwd=/

type=PATH msg=audit(1715708890.120:1636): item=0 name=/usr/lib/systemd/journald.conf inode=448678 dev=00:21 mode=0100644 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:init_exec_t:s0 nametype=NORMAL cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0

Hash: systemd-journal,syslogd_t,init_exec_t,file,read

Version-Release number of selected component:
selinux-policy-targeted-40.18-2.fc41.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing /usr/lib/systemd/systemd-journald from 'read' accesses on the file /usr/lib/systemd/journald.conf.
package:        selinux-policy-targeted-40.18-2.fc41.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.10.0-0.rc0.20240514gita5131c3fdf26.2.fc41.x86_64+debug
component:      selinux-policy

Comment 1 Mikhail 2024-05-14 20:58:04 UTC
Created attachment 2033237 [details]
File: description

Comment 2 Mikhail 2024-05-14 20:58:06 UTC
Created attachment 2033238 [details]
File: os_info

Comment 3 Zdenek Pytela 2024-05-17 17:54:04 UTC

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


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