Bug 1323456 - SELinux is preventing systemd-gpt-aut from 'getattr' accesses on the blk_file /dev/mmcblk0.
Summary: SELinux is preventing systemd-gpt-aut from 'getattr' accesses on the blk_file...
Keywords:
Status: CLOSED DUPLICATE of bug 1323458
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 24
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:58750228967bd13648f3a5580af...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-03 09:17 UTC by Nicolas Mailhot
Modified: 2016-04-04 12:13 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-04 12:13:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


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