Bug 1400559

Summary: SELinux is preventing ruby from 'create' accesses on the netlink_connector_socket Unknown.
Product: [Fedora] Fedora Reporter: KhabMan <bun_sasha>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA 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:ec2ea9c191e96904173998919a5187df12c5125f2f69cffa31614fc236483b89;
Fixed In Version: selinux-policy-3.13.1-225.3.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-12 23:58:32 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 KhabMan 2016-12-01 13:45:45 UTC
Description of problem:
SELinux is preventing ruby from 'create' accesses on the netlink_connector_socket Unknown.

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

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

Additional Information:
Source Context                system_u:system_r:container_t:s0:c409,c446
Target Context                system_u:system_r:container_t:s0:c409,c446
Target Objects                Unknown [ netlink_connector_socket ]
Source                        ruby
Source Path                   ruby
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.10-300.fc25.x86_64 #1 SMP Mon
                              Nov 21 18:59:16 UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-12-01 22:36:57 +10
Last Seen                     2016-12-01 22:36:57 +10
Local ID                      b23905e5-5053-4269-8552-607b94955157

Raw Audit Messages
type=AVC msg=audit(1480595817.398:320): avc:  denied  { create } for  pid=5992 comm="ruby" scontext=system_u:system_r:container_t:s0:c409,c446 tcontext=system_u:system_r:container_t:s0:c409,c446 tclass=netlink_connector_socket permissive=0


Hash: ruby,container_t,container_t,netlink_connector_socket,create

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 2 Daniel Walsh 2016-12-01 18:23:19 UTC
Created a pull request to allow containers access to all netlink sockets.

Comment 3 Lukas Vrabec 2016-12-08 11:21:17 UTC
Dan, Thanks for PR.

Comment 4 Fedora Update System 2016-12-09 13:47:05 UTC
selinux-policy-3.13.1-225.3.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-f24b3ddc6a

Comment 5 Fedora Update System 2016-12-10 03:58:08 UTC
selinux-policy-3.13.1-225.3.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-f24b3ddc6a

Comment 6 Fedora Update System 2016-12-12 23:58:32 UTC
selinux-policy-3.13.1-225.3.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.