Bug 1692154 - SELinux is preventing tlp from 'getattr' accesses on the blk_file /dev/nvme0n1.
Summary: SELinux is preventing tlp from 'getattr' accesses on the blk_file /dev/nvme0n1.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 29
Hardware: x86_64
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:be27593b61ea7677beff42842b5...
: 1693878 1694327 1694856 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-24 18:54 UTC by Davide
Modified: 2019-04-08 01:52 UTC (History)
14 users (show)

Fixed In Version: selinux-policy-3.14.2-53.fc29
Clone Of:
Environment:
Last Closed: 2019-04-08 01:52:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Davide 2019-03-24 18:54:57 UTC
Description of problem:
fedora login
SELinux is preventing tlp from 'getattr' accesses on the blk_file /dev/nvme0n1.

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

Se ci credi tlp dovrebbe essere consentito getattr accesso al nvme0n1 blk_file per impostazione predefinita.
Then si dovrebbe riportare il problema come bug.
E' possibile generare un modulo di politica locale per consentire questo accesso.
Do
consentire questo accesso per ora eseguendo: # ausearch -c 'tlp'--raw | audit2allow -M my-$MODULE_NOME # semodule -X 300 -i miei-tlp.pp

Additional Information:
Source Context                system_u:system_r:tlp_t:s0
Target Context                system_u:object_r:nvme_device_t:s0
Target Objects                /dev/nvme0n1 [ blk_file ]
Source                        tlp
Source Path                   tlp
Port                          <Sconosciuto>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.2-51.fc29.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.20.16-200.fc29.x86_64 #1 SMP Thu
                              Mar 14 15:10:22 UTC 2019 x86_64 x86_64
Alert Count                   2
First Seen                    2019-03-24 20:43:35 EET
Last Seen                     2019-03-24 20:43:35 EET
Local ID                      4b56d3b4-aa55-430d-b67d-e34804558bc6

Raw Audit Messages
type=AVC msg=audit(1553453015.45:234): avc:  denied  { getattr } for  pid=1955 comm="tlp" path="/dev/nvme0n1" dev="devtmpfs" ino=15071 scontext=system_u:system_r:tlp_t:s0 tcontext=system_u:object_r:nvme_device_t:s0 tclass=blk_file permissive=0


Hash: tlp,tlp_t,nvme_device_t,blk_file,getattr

Version-Release number of selected component:
selinux-policy-3.14.2-51.fc29.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.10.0
hashmarkername: setroubleshoot
kernel:         4.20.16-200.fc29.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2019-03-25 14:02:24 UTC
commit 7feacf8c3c3d5e2d7408d89a51ebb68fa9abf411
Author: Lukas Vrabec <lvrabec>
Date:   Mon Mar 25 14:59:57 2019 +0100

    Allow tlp_t domain to read nvme block devices BZ(1692154)

Comment 2 Cenk Kulacoglu 2019-03-25 18:29:31 UTC
Description of problem:
Booted system, presented with error. Occurs after every boot.

Version-Release number of selected component:
selinux-policy-3.14.2-51.fc29.noarch

Additional info:
reporter:       libreport-2.10.0
hashmarkername: setroubleshoot
kernel:         4.20.16-200.fc29.x86_64
type:           libreport

Comment 3 Zdeněk Zikán 2019-03-28 21:44:47 UTC
Description of problem:
It happens when start up laptop or wake up from sleep (suspend-to-ram)

Version-Release number of selected component:
selinux-policy-3.14.2-51.fc29.noarch

Additional info:
reporter:       libreport-2.10.0
hashmarkername: setroubleshoot
kernel:         5.0.3-200.fc29.x86_64
type:           libreport

Comment 4 Zdenek Pytela 2019-03-29 06:40:41 UTC
*** Bug 1693878 has been marked as a duplicate of this bug. ***

Comment 5 Zdenek Pytela 2019-03-31 21:26:42 UTC
*** Bug 1694327 has been marked as a duplicate of this bug. ***

Comment 6 Jonathan Haas 2019-04-01 18:37:43 UTC
Description of problem:
Opening laptop lid

Version-Release number of selected component:
selinux-policy-3.14.3-23.fc30.noarch

Additional info:
reporter:       libreport-2.10.0
hashmarkername: setroubleshoot
kernel:         5.0.5-300.fc30.x86_64
type:           libreport

Comment 7 Zdenek Pytela 2019-04-02 07:25:20 UTC
*** Bug 1694856 has been marked as a duplicate of this bug. ***

Comment 8 Ben LC 2019-04-03 09:24:47 UTC
Description of problem:
It started to appear few days ago after my last Fedora update. It happens each time I unplug the laptop.

Version-Release number of selected component:
selinux-policy-3.14.2-51.fc29.noarch

Additional info:
reporter:       libreport-2.10.0
hashmarkername: setroubleshoot
kernel:         5.0.4-200.fc29.x86_64
type:           libreport

Comment 9 Zdenek Pytela 2019-04-03 10:15:21 UTC
Thank you for reporting the bug, it should be addressed soon with the selinux-policy package update.

Comment 10 Thomas Marangoni 2019-04-04 11:59:31 UTC
Description of problem:
This error happend after/while booting.

Version-Release number of selected component:
selinux-policy-3.14.2-51.fc29.noarch

Additional info:
reporter:       libreport-2.10.0
hashmarkername: setroubleshoot
kernel:         5.0.5-200.fc29.x86_64
type:           libreport

Comment 11 Fedora Update System 2019-04-05 17:27:45 UTC
selinux-policy-3.14.2-53.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-bf377d92c7

Comment 12 Fedora Update System 2019-04-06 20:51:04 UTC
selinux-policy-3.14.2-53.fc29 has been pushed to the Fedora 29 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-2019-bf377d92c7

Comment 13 Fedora Update System 2019-04-08 01:52:51 UTC
selinux-policy-3.14.2-53.fc29 has been pushed to the Fedora 29 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.