Bug 1802677 - SELinux is preventing /usr/lib/systemd/systemd-journald from 'read' accesses on the lnk_file invocation:dbus-:1.2-org.fedoraproject.Setroubleshootd.
Summary: SELinux is preventing /usr/lib/systemd/systemd-journald from 'read' accesses ...
Keywords:
Status: CLOSED DUPLICATE of bug 1800927
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:481ca6e5756fbb5dfdd2515a735...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-13 17:12 UTC by Mikhail
Modified: 2020-02-13 17:29 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-02-13 17:29:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2020-02-13 17:12:24 UTC
Description of problem:
SELinux is preventing /usr/lib/systemd/systemd-journald from 'read' accesses on the lnk_file invocation:dbus-:1.2-org.fedoraproject.Setroubleshootd.

*****  Plugin restorecon (99.5 confidence) suggests   ************************

If you want to fix the label. 
invocation:dbus-:1.2-org.fedoraproject.Setroubleshootd default label should be session_dbusd_tmp_t.
Then you can run restorecon. The access attempt may have been stopped due to insufficient permissions to access a parent directory in which case try to change the following command accordingly.
Do
# /sbin/restorecon -v invocation:dbus-:1.2-org.fedoraproject.Setroubleshootd

*****  Plugin catchall (1.49 confidence) suggests   **************************

If you believe that systemd-journald should be allowed read access on the invocation:dbus-:1.2-org.fedoraproject.Setroubleshootd 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:user_tmp_t:s0
Target Objects                invocation:dbus-:1.2-org.fedoraproject.Setroublesh
                              ootd [ lnk_file ]
Source                        systemd-journal
Source Path                   /usr/lib/systemd/systemd-journald
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-245~rc1-2.fc32.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.5-24.fc32.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.6.0-0.rc1.git0.1.fc32.x86_64 #1
                              SMP Mon Feb 10 16:14:51 UTC 2020 x86_64 x86_64
Alert Count                   476
First Seen                    2020-02-09 17:04:47 +05
Last Seen                     2020-02-13 22:11:14 +05
Local ID                      b9ac8013-2678-476c-88f6-5573454932c1

Raw Audit Messages
type=AVC msg=audit(1581613874.498:5545): avc:  denied  { read } for  pid=788 comm="systemd-journal" name="invocation:dbus-:1.2-org.fedoraproject.Setroubleshootd" dev="tmpfs" ino=1326312 scontext=system_u:system_r:syslogd_t:s0 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=lnk_file permissive=1


type=SYSCALL msg=audit(1581613874.498:5545): arch=x86_64 syscall=readlinkat success=yes exit=EPIPE a0=ffffff9c a1=55feb416feb0 a2=55feb4187a80 a3=1000 items=1 ppid=1 pid=788 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)

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

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

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

Potential duplicate: bug 1800927

Comment 1 Zdenek Pytela 2020-02-13 17:29:33 UTC

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


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