Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1400559 - SELinux is preventing ruby from 'create' accesses on the netlink_connector_socket Unknown.
Summary: SELinux is preventing ruby from 'create' accesses on the netlink_connector_so...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ec2ea9c191e96904173998919a5...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-01 13:45 UTC by KhabMan
Modified: 2016-12-12 23:58 UTC (History)
7 users (show)

Fixed In Version: selinux-policy-3.13.1-225.3.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-12 23:58:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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