Bug 1401127

Summary: SELinux is preventing polkitd from 'connectto' accesses on the unix_stream_socket /var/lib/sss/pipes/nss.
Product: [Fedora] Fedora Reporter: bedny
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, pmoore, ssekidde
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:28714b32eaad173b774d4cd90627f8c15338205722a615cec18e1d32b94de04c;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-08 09:44:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description bedny 2016-12-02 22:21:45 UTC
Description of problem:
SELinux is preventing polkitd from 'connectto' accesses on the unix_stream_socket /var/lib/sss/pipes/nss.

*****  Plugin catchall (100. confidence) suggests   **************************

If вы считаете, что polkitd следует разрешить доступ connectto к nss unix_stream_socket по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
Do
allow this access for now by executing:
# ausearch -c 'polkitd' --raw | audit2allow -M my-polkitd
# semodule -X 300 -i my-polkitd.pp

Additional Information:
Source Context                system_u:system_r:policykit_t:s0
Target Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Objects                /var/lib/sss/pipes/nss [ unix_stream_socket ]
Source                        polkitd
Source Path                   polkitd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-224.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.8-300.fc25.x86_64 #1 SMP Tue
                              Nov 15 18:10:06 UTC 2016 x86_64 x86_64
Alert Count                   16
First Seen                    2016-11-26 04:54:19 MSK
Last Seen                     2016-11-26 05:09:10 MSK
Local ID                      ab70033a-cb3d-462d-8a63-07e25ce5b9fa

Raw Audit Messages
type=AVC msg=audit(1480126150.571:456): avc:  denied  { connectto } for  pid=868 comm="polkitd" path="/var/lib/sss/pipes/nss" scontext=system_u:system_r:policykit_t:s0 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=unix_stream_socket permissive=0


Hash: polkitd,policykit_t,unconfined_t,unix_stream_socket,connectto

Version-Release number of selected component:
selinux-policy-3.13.1-224.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.10-300.fc25.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2016-12-08 09:44:36 UTC

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