Bug 1323458

Summary: SELinux is preventing systemd-gpt-aut from 'read' accesses on the blk_file mmcblk0.
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 24CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:b4060f92b0b6a1c7fc21fab9c1e21c4770ed1b6bff011f2f50d136edaf055ea5;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-3.13.1-182.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-19 20:32:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nicolas Mailhot 2016-04-03 09:18:53 UTC
Description of problem:
SELinux is preventing systemd-gpt-aut from 'read' accesses on the blk_file mmcblk0.

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

If vous pensez que systemd-gpt-aut devrait être autorisé à accéder read sur mmcblk0 blk_file par défaut.
Then vous devriez rapporter ceci en tant qu'anomalie.
Vous pouvez générer un module de stratégie local pour autoriser cet accès.
Do
autoriser cet accès pour le moment en exécutant :
# grep systemd-gpt-aut /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:systemd_gpt_generator_t:s0
Target Context                system_u:object_r:removable_device_t:s0
Target Objects                mmcblk0 [ blk_file ]
Source                        systemd-gpt-aut
Source Path                   systemd-gpt-aut
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-180.fc24.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.5.0-0.rc7.git0.2.fc24.x86_64 #1
                              SMP Tue Mar 8 02:20:08 UTC 2016 x86_64 x86_64
Alert Count                   16
First Seen                    2016-03-19 12:06:05 CET
Last Seen                     2016-04-02 12:38:10 CEST
Local ID                      02c18a20-4574-4793-b46b-0f9bac319c8d

Raw Audit Messages
type=AVC msg=audit(1459593490.622:469): avc:  denied  { read } for  pid=19954 comm="systemd-gpt-aut" name="mmcblk0" dev="devtmpfs" ino=11286 scontext=system_u:system_r:systemd_gpt_generator_t:s0 tcontext=system_u:object_r:removable_device_t:s0 tclass=blk_file permissive=1


Hash: systemd-gpt-aut,systemd_gpt_generator_t,removable_device_t,blk_file,read

Version-Release number of selected component:
selinux-policy-3.13.1-180.fc24.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.5.0-302.fc24.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2016-04-04 12:12:55 UTC
*** Bug 1323457 has been marked as a duplicate of this bug. ***

Comment 2 Lukas Vrabec 2016-04-04 12:13:03 UTC
*** Bug 1323456 has been marked as a duplicate of this bug. ***

Comment 3 Lukas Vrabec 2016-04-04 12:13:08 UTC
*** Bug 1323455 has been marked as a duplicate of this bug. ***

Comment 4 Fedora Update System 2016-04-11 11:05:07 UTC
selinux-policy-3.13.1-182.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-a04caa95a2

Comment 5 Fedora Update System 2016-04-12 10:54:15 UTC
selinux-policy-3.13.1-182.fc24 has been pushed to the Fedora 24 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-a04caa95a2

Comment 6 Fedora Update System 2016-04-19 20:32:04 UTC
selinux-policy-3.13.1-182.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.