Bug 2315813 - 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 ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
medium
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:10ffeaa1984024ed420cffcca94...
: 2315796 2316356 2316932 2317722 2317960 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-01 02:17 UTC by Mikhail
Modified: 2024-10-11 11:49 UTC (History)
10 users (show)

Fixed In Version: selinux-policy-41.20-1.fc41
Clone Of:
Environment:
Last Closed: 2024-10-08 02:02:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.90 KB, text/plain)
2024-10-01 02:17 UTC, Mikhail
no flags Details
File: os_info (770 bytes, text/plain)
2024-10-01 02:18 UTC, Mikhail
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 2372 0 None Draft Draft: update systemd-homed policy 2024-10-03 14:21:28 UTC

Description Mikhail 2024-10-01 02:17:56 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-09-
                              58e60f8284276d46709a5768dfd6d0e57f04cf45+ #715 SMP
                              PREEMPT_DYNAMIC Tue Oct 1 04:33:11 +05 2024 x86_64
Alert Count                   9
First Seen                    2024-09-27 04:24:07 +05
Last Seen                     2024-10-01 07:12:21 +05
Local ID                      481c7287-cba6-4f0d-9bb6-4eb223f57b06

Raw Audit Messages
type=AVC msg=audit(1727748741.793:302): avc:  denied  { connectto } for  pid=2471 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(1727748741.793:302): arch=x86_64 syscall=connect success=yes exit=0 a0=4b a1=7ffdcd4323b0 a2=26 a3=0 items=1 ppid=1 pid=2471 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(1727748741.793:302): cwd=/

type=PATH msg=audit(1727748741.793:302): item=0 name=/run/systemd/userdb/io.systemd.Home inode=3258 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-09-58e60f8284276d46709a5768dfd6d0e57f04cf45+
component:      selinux-policy

Comment 1 Mikhail 2024-10-01 02:17:58 UTC
Created attachment 2049713 [details]
File: description

Comment 2 Mikhail 2024-10-01 02:18:00 UTC
Created attachment 2049714 [details]
File: os_info

Comment 3 Zdenek Pytela 2024-10-03 14:22:17 UTC
*** Bug 2315796 has been marked as a duplicate of this bug. ***

Comment 4 Zdenek Pytela 2024-10-04 11:37:27 UTC
*** Bug 2316356 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Update System 2024-10-04 12:30:30 UTC
FEDORA-2024-97e0eb13c3 (selinux-policy-41.20-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-97e0eb13c3

Comment 6 Fedora Update System 2024-10-05 02:58:30 UTC
FEDORA-2024-97e0eb13c3 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-97e0eb13c3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-97e0eb13c3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Zdenek Pytela 2024-10-07 11:54:31 UTC
*** Bug 2316932 has been marked as a duplicate of this bug. ***

Comment 8 Fedora Update System 2024-10-08 02:02:39 UTC
FEDORA-2024-97e0eb13c3 (selinux-policy-41.20-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Zdenek Pytela 2024-10-10 07:22:53 UTC
*** Bug 2317722 has been marked as a duplicate of this bug. ***

Comment 10 Zdenek Pytela 2024-10-11 11:49:42 UTC
*** Bug 2317960 has been marked as a duplicate of this bug. ***


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