Bug 1816840 - SELinux is preventing systemd-journal from 'read' accesses on the lnk_file /run/user/1000/systemd/units/invocation:dbus-:1.2-org.kde.krunner.
Summary: SELinux is preventing systemd-journal from 'read' accesses on the lnk_file /r...
Keywords:
Status: CLOSED DUPLICATE of bug 1816383
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 32
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8565ee3d50cbd10afac2aa70ff3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-24 21:15 UTC by Tomas Toth
Modified: 2020-03-25 15:23 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-03-25 15:23:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tomas Toth 2020-03-24 21:15:19 UTC
Description of problem:
SELinux is preventing systemd-journal from 'read' accesses on the lnk_file /run/user/1000/systemd/units/invocation:dbus-:1.2-org.kde.krunner.

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

If you believe that systemd-journal should be allowed read access on the invocation:dbus-:1.2-org.kde.krunner lnk_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                unconfined_u:object_r:session_dbusd_tmp_t:s0
Target Objects                /run/user/1000/systemd/units/invocation:dbus-:1.2-
                              org.kde.krunner [ lnk_file ]
Source                        systemd-journal
Source Path                   systemd-journal
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-245.2-1.fc32.x86_64
Target RPM Packages           
SELinux Policy RPM            selinux-policy-3.14.5-31.fc32.noarch
Local Policy RPM              selinux-policy-targeted-3.14.5-31.fc32.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.6.0-0.rc7.git0.2.fc32.x86_64 #1
                              SMP Mon Mar 23 18:38:45 UTC 2020 x86_64 x86_64
Alert Count                   2
First Seen                    2020-03-24 21:39:09 CET
Last Seen                     2020-03-24 22:13:58 CET
Local ID                      4ba66a7b-0ff9-4a28-8b04-6b641fe9c56d

Raw Audit Messages
type=AVC msg=audit(1585084438.338:360): avc:  denied  { read } for  pid=613 comm="systemd-journal" name="invocation:dbus-:1.2-org.kde.krunner" dev="tmpfs" ino=1609144 scontext=system_u:system_r:syslogd_t:s0 tcontext=unconfined_u:object_r:session_dbusd_tmp_t:s0 tclass=lnk_file permissive=1


type=SYSCALL msg=audit(1585084438.338:360): arch=x86_64 syscall=readlinkat success=yes exit=EPIPE a0=ffffff9c a1=55ca6fdc9680 a2=55ca6fdf1a50 a3=1000 items=1 ppid=1 pid=613 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(1585084438.338:360): cwd=/

type=PATH msg=audit(1585084438.338:360): item=0 name=/run/user/1000/systemd/units/invocation:dbus-:1.2-org.kde.krunner inode=1609144 dev=00:25 mode=0120777 ouid=1000 ogid=1000 rdev=00:00 obj=unconfined_u:object_r:session_dbusd_tmp_t:s0 nametype=NORMAL cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0

Hash: systemd-journal,syslogd_t,session_dbusd_tmp_t,lnk_file,read

Version-Release number of selected component:
selinux-policy-3.14.5-31.fc32.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.12.0
hashmarkername: setroubleshoot
kernel:         5.6.0-0.rc7.git0.2.fc32.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2020-03-25 15:23:32 UTC

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


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