Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: ---- type=PROCTITLE msg=audit(06/06/2024 19:28:40.852:1239) : proctitle=/usr/bin/pkla-check-authorization mikhail true true org.freedesktop.login1.suspend-multiple-sessions type=PATH msg=audit(06/06/2024 19:28:40.852:1239) : item=0 name=/run/systemd/userdb/io.systemd.NamespaceResource inode=1394 dev=00:1b mode=socket,666 ouid=root ogid=root rdev=00:00 obj=system_u:object_r:init_var_run_t:s0 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0 type=CWD msg=audit(06/06/2024 19:28:40.852:1239) : cwd=/ type=SOCKADDR msg=audit(06/06/2024 19:28:40.852:1239) : saddr={ saddr_fam=local path=/run/systemd/userdb/io.systemd.NamespaceResource } type=SYSCALL msg=audit(06/06/2024 19:28:40.852:1239) : arch=x86_64 syscall=connect success=yes exit=0 a0=0xa a1=0x7fffecd36f50 a2=0x33 a3=0x160 items=1 ppid=1344 pid=81650 auid=unset uid=polkitd gid=polkitd euid=polkitd suid=polkitd fsuid=polkitd egid=polkitd sgid=polkitd fsgid=polkitd tty=(none) ses=unset comm=pkla-check-auth exe=/usr/bin/pkla-check-authorization subj=system_u:system_r:policykit_auth_t:s0 key=(null) type=AVC msg=audit(06/06/2024 19:28:40.852:1239) : avc: denied { connectto } for pid=81650 comm=pkla-check-auth path=/run/systemd/io.systemd.NamespaceResource scontext=system_u:system_r:policykit_auth_t:s0 tcontext=system_u:system_r:systemd_nsresourced_t:s0 tclass=unix_stream_socket permissive=1 SELinux is preventing /usr/bin/pkla-check-authorization from 'connectto' accesses on the unix_stream_socket /run/systemd/io.systemd.NamespaceResource. ***** 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-authorization should be allowed connectto access on the io.systemd.NamespaceResource 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_nsresourced_t:s0 Target Objects /run/systemd/io.systemd.NamespaceResource [ unix_stream_socket ] Source pkla-check-auth Source Path /usr/bin/pkla-check-authorization Port <Unknown> Host (removed) Source RPM Packages polkit-pkla-compat-0.1-28.fc40.x86_64 Target RPM Packages SELinux Policy RPM selinux-policy-targeted-41.1-1.fc41.noarch Local Policy RPM selinux-policy-targeted-41.1-1.fc41.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 6.10.0- 0.rc2.20240605git32f88d65f01b.28.fc41.x86_64+debug #1 SMP PREEMPT_DYNAMIC Thu Jun 6 10:28:48 +05 2024 x86_64 Alert Count 599 First Seen 2024-06-05 09:52:55 +05 Last Seen 2024-06-06 19:29:28 +05 Local ID 118453b2-1689-4787-a65a-775c70ee791b Raw Audit Messages type=AVC msg=audit(1717684168.636:1244): avc: denied { connectto } for pid=81924 comm="pkla-check-auth" path="/run/systemd/io.systemd.NamespaceResource" scontext=system_u:system_r:policykit_auth_t:s0 tcontext=system_u:system_r:systemd_nsresourced_t:s0 tclass=unix_stream_socket permissive=1 type=SYSCALL msg=audit(1717684168.636:1244): arch=x86_64 syscall=connect success=yes exit=0 a0=a a1=7ffee464daf0 a2=33 a3=160 items=1 ppid=1344 pid=81924 auid=4294967295 uid=114 gid=114 euid=114 suid=114 fsuid=114 egid=114 sgid=114 fsgid=114 tty=(none) ses=4294967295 comm=pkla-check-auth exe=/usr/bin/pkla-check-authorization subj=system_u:system_r:policykit_auth_t:s0 key=(null) type=CWD msg=audit(1717684168.636:1244): cwd=/ type=PATH msg=audit(1717684168.636:1244): item=0 name=/run/systemd/userdb/io.systemd.NamespaceResource inode=1394 dev=00:1b mode=0140666 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:init_var_run_t:s0 nametype=NORMAL cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0 Hash: pkla-check-auth,policykit_auth_t,systemd_nsresourced_t,unix_stream_socket,connectto Version-Release number of selected component: selinux-policy-targeted-41.1-1.fc41.noarch Additional info: reporter: libreport-2.17.15 reason: SELinux is preventing /usr/bin/pkla-check-authorization from 'connectto' accesses on the unix_stream_socket /run/systemd/io.systemd.NamespaceResource. package: selinux-policy-targeted-41.1-1.fc41.noarch component: selinux-policy hashmarkername: setroubleshoot type: libreport kernel: 6.10.0-0.rc2.20240605git32f88d65f01b.28.fc41.x86_64+debug component: selinux-policy
Created attachment 2036565 [details] File: description
Created attachment 2036566 [details] File: os_info
*** This bug has been marked as a duplicate of bug 2282040 ***