Bug 1871022 - SELinux is preventing pkla-check-auth from 'connectto' accesses on the unix_stream_socket /run/systemd/userdb/io.systemd.Machine.
Summary: SELinux is preventing pkla-check-auth from 'connectto' accesses on the unix_s...
Keywords:
Status: CLOSED DUPLICATE of bug 1865748
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:938e07515d1e6f630ea302e5a89...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-21 07:15 UTC by Mikhail
Modified: 2020-08-21 07:48 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-08-21 07:48:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2020-08-21 07:15:36 UTC
Description of problem:
SELinux is preventing pkla-check-auth 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 pkla-check-auth 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 'pkla-check-auth' --raw | audit2allow -M my-pklacheckauth
# semodule -X 300 -i my-pklacheckauth.pp

Additional Information:
Source Context                system_u:system_r:policykit_auth_t:s0
Target Context                system_u:system_r:systemd_machined_t:s0
Target Objects                /run/systemd/userdb/io.systemd.Machine [
                              unix_stream_socket ]
Source                        pkla-check-auth
Source Path                   pkla-check-auth
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-3.14.6-23.fc33.noarch
Local Policy RPM              selinux-policy-targeted-3.14.6-23.fc33.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.8.0-1.fc33.x86_64 #1 SMP Mon Aug
                              3 16:15:24 UTC 2020 x86_64 x86_64
Alert Count                   936
First Seen                    2020-08-16 16:45:58 +05
Last Seen                     2020-08-21 12:14:32 +05
Local ID                      b33430e9-40b5-41ad-8c10-32239664abb3

Raw Audit Messages
type=AVC msg=audit(1597994072.782:4328): avc:  denied  { connectto } for  pid=616683 comm="pkla-check-auth" path="/run/systemd/userdb/io.systemd.Machine" scontext=system_u:system_r:policykit_auth_t:s0 tcontext=system_u:system_r:systemd_machined_t:s0 tclass=unix_stream_socket permissive=1


Hash: pkla-check-auth,policykit_auth_t,systemd_machined_t,unix_stream_socket,connectto

Version-Release number of selected component:
selinux-policy-targeted-3.14.6-23.fc33.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.13.1
hashmarkername: setroubleshoot
kernel:         5.8.0-1.fc33.x86_64
type:           libreport

Potential duplicate: bug 1862681

Comment 1 Zdenek Pytela 2020-08-21 07:48:19 UTC
Fixed in the latest selinux-policy package version.

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


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