Bug 2316356 - SELinux is preventing /usr/bin/abrt-dump-journal-core from 'connectto' accesses on the unix_stream_socket /run/systemd/userdb/io.systemd.Home.
Summary: SELinux is preventing /usr/bin/abrt-dump-journal-core from 'connectto' access...
Keywords:
Status: CLOSED DUPLICATE of bug 2315813
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:10ffeaa1984024ed420cffcca94...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-03 19:50 UTC by Mikhail
Modified: 2024-10-04 11:37 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-10-04 11:37:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.90 KB, text/plain)
2024-10-03 19:50 UTC, Mikhail
no flags Details
File: os_info (770 bytes, text/plain)
2024-10-03 19:50 UTC, Mikhail
no flags Details

Description Mikhail 2024-10-03 19:50:49 UTC
Description of problem:
SELinux is preventing /usr/bin/abrt-dump-journal-core from 'connectto' accesses on the unix_stream_socket /run/systemd/userdb/io.systemd.Home.

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

If you believe that abrt-dump-journal-core should be allowed connectto access on the io.systemd.Home unix_stream_socket 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 'abrt-dump-journ' --raw | audit2allow -M my-abrtdumpjourn
# semodule -X 300 -i my-abrtdumpjourn.pp

Additional Information:
Source Context                system_u:system_r:abrt_dump_oops_t:s0
Target Context                system_u:system_r:systemd_homed_t:s0
Target Objects                /run/systemd/userdb/io.systemd.Home [
                              unix_stream_socket ]
Source                        abrt-dump-journ
Source Path                   /usr/bin/abrt-dump-journal-core
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           abrt-addon-ccpp-2.17.6-2.fc42.x86_64
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-41.19-1.fc42.noarch
Local Policy RPM              selinux-policy-targeted-41.19-1.fc42.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.11.0-rc6-13b-
                              f8d112a4e657c65c888e6b8a8435ef61a66e4ab8+ #720 SMP
                              PREEMPT_DYNAMIC Thu Oct 3 00:02:04 +05 2024 x86_64
Alert Count                   11
First Seen                    2024-09-27 04:24:07 +05
Last Seen                     2024-10-03 22:12:26 +05
Local ID                      481c7287-cba6-4f0d-9bb6-4eb223f57b06

Raw Audit Messages
type=AVC msg=audit(1727975546.979:693): avc:  denied  { connectto } for  pid=1683 comm="abrt-dump-journ" path="/run/systemd/userdb/io.systemd.Home" scontext=system_u:system_r:abrt_dump_oops_t:s0 tcontext=system_u:system_r:systemd_homed_t:s0 tclass=unix_stream_socket permissive=1


type=SYSCALL msg=audit(1727975546.979:693): arch=x86_64 syscall=connect success=yes exit=0 a0=4c a1=7fff8b621ef0 a2=26 a3=0 items=1 ppid=1 pid=1683 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=abrt-dump-journ exe=/usr/bin/abrt-dump-journal-core subj=system_u:system_r:abrt_dump_oops_t:s0 key=(null)

type=CWD msg=audit(1727975546.979:693): cwd=/

type=PATH msg=audit(1727975546.979:693): item=0 name=/run/systemd/userdb/io.systemd.Home inode=3210 dev=00:1b mode=0140666 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:systemd_userdbd_runtime_t:s0 nametype=NORMAL cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0

Hash: abrt-dump-journ,abrt_dump_oops_t,systemd_homed_t,unix_stream_socket,connectto

Version-Release number of selected component:
selinux-policy-targeted-41.19-1.fc42.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing /usr/bin/abrt-dump-journal-core from 'connectto' accesses on the unix_stream_socket /run/systemd/userdb/io.systemd.Home.
package:        selinux-policy-targeted-41.19-1.fc42.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.11.0-rc6-13b-f8d112a4e657c65c888e6b8a8435ef61a66e4ab8+
component:      selinux-policy

Comment 1 Mikhail 2024-10-03 19:50:51 UTC
Created attachment 2050274 [details]
File: description

Comment 2 Mikhail 2024-10-03 19:50:53 UTC
Created attachment 2050275 [details]
File: os_info

Comment 3 Zdenek Pytela 2024-10-04 11:37:27 UTC

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


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