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 1585415 - SELinux is preventing node_exporter from 'getattr' accesses on the netlink_generic_socket Unknown.
Summary: SELinux is preventing node_exporter from 'getattr' accesses on the netlink_ge...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: container-selinux
Version: 28
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lokesh Mandvekar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ccc7501f30db324afa482f5d9a4...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-02 14:57 UTC by Ognjen Stanić
Modified: 2018-08-02 16:21 UTC (History)
9 users (show)

Fixed In Version: container-selinux-2.68-1.git25277c8.fc28 container-selinux-2.69-1.git452b90d.fc28
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-27 16:46:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ognjen Stanić 2018-06-02 14:57:26 UTC
Description of problem:
After restart notification about this issue poped up.
SELinux is preventing node_exporter from 'getattr' accesses on the netlink_generic_socket Unknown.

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

If you believe that node_exporter should be allowed getattr access on the Unknown netlink_generic_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 'node_exporter' --raw | audit2allow -M my-nodeexporter
# semodule -X 300 -i my-nodeexporter.pp

Additional Information:
Source Context                system_u:system_r:container_t:s0:c70,c987
Target Context                system_u:system_r:container_t:s0:c70,c987
Target Objects                Unknown [ netlink_generic_socket ]
Source                        node_exporter
Source Path                   node_exporter
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.1-30.fc28.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.16.12-300.fc28.x86_64 #1 SMP Fri
                              May 25 21:13:28 UTC 2018 x86_64 x86_64
Alert Count                   1178
First Seen                    2018-06-02 10:45:58 CEST
Last Seen                     2018-06-02 16:55:15 CEST
Local ID                      a7d8d659-f0d1-4c25-8eb7-5fa31e06d684

Raw Audit Messages
type=AVC msg=audit(1527951315.688:318): avc:  denied  { getattr } for  pid=3102 comm="node_exporter" scontext=system_u:system_r:container_t:s0:c70,c987 tcontext=system_u:system_r:container_t:s0:c70,c987 tclass=netlink_generic_socket permissive=0


Hash: node_exporter,container_t,container_t,netlink_generic_socket,getattr

Version-Release number of selected component:
selinux-policy-3.14.1-30.fc28.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.16.12-300.fc28.x86_64
type:           libreport

Comment 1 Fedora Update System 2018-07-09 11:03:49 UTC
container-selinux-2.67-1.git0407867.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-5a6ebba054

Comment 2 Fedora Update System 2018-07-11 23:40:57 UTC
container-selinux-2.67-1.git0407867.fc28 has been pushed to the Fedora 28 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-2018-5a6ebba054

Comment 3 Fedora Update System 2018-07-16 16:43:52 UTC
container-selinux-2.68-1.git25277c8.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-e57fd96913

Comment 4 Fedora Update System 2018-07-19 20:17:37 UTC
container-selinux-2.68-1.git25277c8.fc28 has been pushed to the Fedora 28 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-2018-e57fd96913

Comment 5 Fedora Update System 2018-07-26 11:52:41 UTC
container-selinux-2.69-1.git452b90d.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-42991b7a1d

Comment 6 Fedora Update System 2018-07-26 16:33:57 UTC
container-selinux-2.69-1.git452b90d.fc28 has been pushed to the Fedora 28 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-2018-42991b7a1d

Comment 7 Fedora Update System 2018-07-27 16:46:52 UTC
container-selinux-2.68-1.git25277c8.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2018-08-02 16:21:39 UTC
container-selinux-2.69-1.git452b90d.fc28 has been pushed to the Fedora 28 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.