Bug 1862684
| Summary: | SELinux is preventing systemd-logind from 'connectto' accesses on the unix_stream_socket /run/systemd/userdb/io.systemd.Machine. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mikhail <mikhail.v.gavrilov> |
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 33 | CC: | dwalsh, grepl.miroslav, lvrabec, mmalik, plautrba, vmojzis, zpytela |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:1b19a188d204246af9d5874f119cf50a7a57cd0d494b04ab7ad079cc97083773;VARIANT_ID=workstation; | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-08-12 11:54:14 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: | |||
| Bug Depends On: | 1812955 | ||
| Bug Blocks: | |||
This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle. Changing version to 33. *** This bug has been marked as a duplicate of bug 1865748 *** |
Description of problem: SELinux is preventing systemd-logind from 'connectto' accesses on the unix_stream_socket /run/systemd/userdb/io.systemd.Machine. ***** Plugin catchall_boolean (89.3 confidence) suggests ****************** If you want to allow daemons to enable cluster mode Then you must tell SELinux about this by enabling the 'daemons_enable_cluster_mode' boolean. Do setsebool -P daemons_enable_cluster_mode 1 ***** Plugin catchall (11.6 confidence) suggests ************************** If you believe that systemd-logind should be allowed connectto access on the io.systemd.Machine 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 'systemd-logind' --raw | audit2allow -M my-systemdlogind # semodule -X 300 -i my-systemdlogind.pp Additional Information: Source Context system_u:system_r:systemd_logind_t:s0 Target Context system_u:system_r:systemd_machined_t:s0 Target Objects /run/systemd/userdb/io.systemd.Machine [ unix_stream_socket ] Source systemd-logind Source Path systemd-logind Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages SELinux Policy RPM selinux-policy-targeted-3.14.6-20.fc33.noarch Local Policy RPM selinux-policy-targeted-3.14.6-20.fc33.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 5.8.0-0.rc7.1.fc33.x86_64 #1 SMP Thu Jul 30 18:24:26 UTC 2020 x86_64 x86_64 Alert Count 2 First Seen 2020-08-01 14:59:44 +05 Last Seen 2020-08-01 14:59:51 +05 Local ID 64ee3323-d575-4ca1-a918-1cd5673bda91 Raw Audit Messages type=AVC msg=audit(1596275991.37:282): avc: denied { connectto } for pid=1190 comm="systemd-logind" path="/run/systemd/userdb/io.systemd.Machine" scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:system_r:systemd_machined_t:s0 tclass=unix_stream_socket permissive=1 Hash: systemd-logind,systemd_logind_t,systemd_machined_t,unix_stream_socket,connectto Version-Release number of selected component: selinux-policy-targeted-3.14.6-20.fc33.noarch Additional info: component: selinux-policy reporter: libreport-2.13.1 hashmarkername: setroubleshoot kernel: 5.8.0-0.rc7.1.fc33.x86_64 type: libreport