Bug 1960468
| Summary: | SELinux is preventing /usr/lib/systemd/systemd-timesyncd from 'watch' accesses on the directory /run/dbus. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | John Apple II <jappleii> |
| 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: | 34 | CC: | dwalsh, grepl.miroslav, lvrabec, mmalik, omosnace, redhat, valsu, vmojzis, zpytela |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:23fc93b626ebb291822ac9401e0518abfc7ca56e5cab9cffdb9b16e546c700b7;VARIANT_ID=kde; | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-06-15 14:46:08 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: | |||
duplicate of bug 1965720 ...? *** Bug 1972263 has been marked as a duplicate of this bug. *** *** This bug has been marked as a duplicate of bug 1965720 *** |
Description of problem: Happened on system startup after upgrading to Fedora 34 SELinux is preventing /usr/lib/systemd/systemd-timesyncd from 'watch' accesses on the directory /run/dbus. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that systemd-timesyncd should be allowed watch access on the dbus directory 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-timesyn' --raw | audit2allow -M my-systemdtimesyn # semodule -X 300 -i my-systemdtimesyn.pp Additional Information: Source Context system_u:system_r:systemd_timedated_t:s0 Target Context system_u:object_r:system_dbusd_var_run_t:s0 Target Objects /run/dbus [ dir ] Source systemd-timesyn Source Path /usr/lib/systemd/systemd-timesyncd Port <Unknown> Host (removed) Source RPM Packages systemd-udev-248.2-1.fc34.x86_64 Target RPM Packages dbus-daemon-1.12.20-3.fc34.x86_64 SELinux Policy RPM selinux-policy-targeted-34.6-1.fc34.noarch Local Policy RPM selinux-policy-targeted-34.6-1.fc34.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 5.11.19-300.fc34.x86_64 #1 SMP Fri May 7 14:17:15 UTC 2021 x86_64 x86_64 Alert Count 2 First Seen 2021-05-14 09:03:28 AEST Last Seen 2021-05-14 10:00:34 AEST Local ID 60f9c35a-d2ff-49ec-998d-660fd86e04f9 Raw Audit Messages type=AVC msg=audit(1620950434.649:149): avc: denied { watch } for pid=4020 comm="systemd-timesyn" path="/run/dbus" dev="tmpfs" ino=2261 scontext=system_u:system_r:systemd_timedated_t:s0 tcontext=system_u:object_r:system_dbusd_var_run_t:s0 tclass=dir permissive=0 type=SYSCALL msg=audit(1620950434.649:149): arch=x86_64 syscall=inotify_add_watch success=no exit=EACCES a0=b a1=56235fab0aa0 a2=2000d84 a3=1000 items=1 ppid=1 pid=4020 auid=4294967295 uid=995 gid=991 euid=995 suid=995 fsuid=995 egid=991 sgid=991 fsgid=991 tty=(none) ses=4294967295 comm=systemd-timesyn exe=/usr/lib/systemd/systemd-timesyncd subj=system_u:system_r:systemd_timedated_t:s0 key=(null) type=CWD msg=audit(1620950434.649:149): cwd=/ type=PATH msg=audit(1620950434.649:149): item=0 name=/run/dbus inode=2261 dev=00:1a mode=040755 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-timesyn,systemd_timedated_t,system_dbusd_var_run_t,dir,watch Version-Release number of selected component: selinux-policy-targeted-34.6-1.fc34.noarch Additional info: component: selinux-policy reporter: libreport-2.14.0 hashmarkername: setroubleshoot kernel: 5.11.19-300.fc34.x86_64 type: libreport