Bug 1323456

Summary: SELinux is preventing systemd-gpt-aut from 'getattr' accesses on the blk_file /dev/mmcblk0.
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:58750228967bd13648f3a5580af3746c2bae54234c3269277bf8f06143bceda7;VARIANT_ID=workstation;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-04 12:13:03 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:17:44 UTC
Description of problem:
SELinux is preventing systemd-gpt-aut from 'getattr' accesses on the blk_file /dev/mmcblk0.

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

If vous pensez que systemd-gpt-aut devrait être autorisé à accéder getattr 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                /dev/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                   11
First Seen                    2016-03-22 19:56:16 CET
Last Seen                     2016-04-02 12:38:10 CEST
Local ID                      c2cd4c48-d7cc-41ce-9a6a-86c5f2639192

Raw Audit Messages
type=AVC msg=audit(1459593490.625:471): avc:  denied  { getattr } for  pid=19954 comm="systemd-gpt-aut" path="/dev/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,getattr

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:13:03 UTC

*** This bug has been marked as a duplicate of bug 1323458 ***