Bug 2383703
| Summary: | SELinux is preventing /usr/lib/systemd/systemd-oomd from 'watch' accesses on the sock_file /run/dbus/system_bus_socket. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Radek Valasek <reddy> | ||||||
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> | ||||||
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 42 | CC: | dwalsh, lvrabec, mmalik, omosnacek, pkoncity, reddy, vmojzis, zpytela | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | abrt_hash:aa6cf2c5d13f5f3597a22a1b9c5918a561419dd724ffe1198af6b470a00c4f43;VARIANT_ID=workstation; | ||||||||
| Fixed In Version: | Doc Type: | --- | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2025-07-28 11:30:38 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
Created attachment 2098374 [details]
File: description
Created attachment 2098375 [details]
File: os_info
*** This bug has been marked as a duplicate of bug 2383472 *** |
Description of problem: Hello, seems it started after latest update of 'selinux-policy' and 'selinux-policy-targeted' to version 42.2-1.fc42. Here I am unsure it is correct warning or a bug. SELinux is preventing /usr/lib/systemd/systemd-oomd from 'watch' accesses on the sock_file /run/dbus/system_bus_socket. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that systemd-oomd should be allowed watch access on the system_bus_socket sock_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-oomd' --raw | audit2allow -M my-systemdoomd # semodule -X 300 -i my-systemdoomd.pp Additional Information: Source Context system_u:system_r:systemd_oomd_t:s0 Target Context system_u:object_r:system_dbusd_var_run_t:s0 Target Objects /run/dbus/system_bus_socket [ sock_file ] Source systemd-oomd Source Path /usr/lib/systemd/systemd-oomd Port <Unknown> Host (removed) Source RPM Packages systemd-udev-257.7-1.fc42.x86_64 Target RPM Packages SELinux Policy RPM selinux-policy-targeted-42.2-1.fc42.noarch Local Policy RPM selinux-policy-targeted-42.2-1.fc42.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 6.15.7-200.fc42.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 17 17:57:16 UTC 2025 x86_64 Alert Count 1 First Seen 2025-07-27 13:09:54 CEST Last Seen 2025-07-27 13:09:54 CEST Local ID bfdd1e1d-5e9f-44b6-a52f-39db0c8a342d Raw Audit Messages type=AVC msg=audit(1753614594.320:78): avc: denied { watch } for pid=1630 comm="systemd-oomd" path="/run/dbus/system_bus_socket" dev="tmpfs" ino=3112 scontext=system_u:system_r:systemd_oomd_t:s0 tcontext=system_u:object_r:system_dbusd_var_run_t:s0 tclass=sock_file permissive=1 type=SYSCALL msg=audit(1753614594.320:78): arch=x86_64 syscall=inotify_add_watch success=yes exit=EINTR a0=7 a1=557344ebe650 a2=2000d84 a3=557344ebe8c0 items=1 ppid=1 pid=1630 auid=4294967295 uid=998 gid=998 euid=998 suid=998 fsuid=998 egid=998 sgid=998 fsgid=998 tty=(none) ses=4294967295 comm=systemd-oomd exe=/usr/lib/systemd/systemd-oomd subj=system_u:system_r:systemd_oomd_t:s0 key=(null) type=CWD msg=audit(1753614594.320:78): cwd=/ type=PATH msg=audit(1753614594.320:78): item=0 name=/run/dbus/system_bus_socket inode=3112 dev=00:1a mode=0140666 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:system_dbusd_var_run_t:s0 nametype=NORMAL cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0 Hash: systemd-oomd,systemd_oomd_t,system_dbusd_var_run_t,sock_file,watch Version-Release number of selected component: selinux-policy-targeted-42.2-1.fc42.noarch Additional info: reporter: libreport-2.17.15 kernel: 6.15.7-200.fc42.x86_64 type: libreport hashmarkername: setroubleshoot package: selinux-policy-targeted-42.2-1.fc42.noarch component: selinux-policy reason: SELinux is preventing /usr/lib/systemd/systemd-oomd from 'watch' accesses on the sock_file /run/dbus/system_bus_socket. component: selinux-policy