Bug 1319727 - SELinux is preventing systemd-gpt-aut from 'open' accesses on the blk_file /dev/sda.
Summary: SELinux is preventing systemd-gpt-aut from 'open' accesses on the blk_file /d...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:85081db8522ecf1dd452004abbc...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-21 11:49 UTC by Vít Ondruch
Modified: 2016-03-21 12:46 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-21 12:46:26 UTC
Type: ---


Attachments (Terms of Use)

Description Vít Ondruch 2016-03-21 11:49:34 UTC
Description of problem:
SELinux is preventing systemd-gpt-aut from 'open' accesses on the blk_file /dev/sda.

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

If you believe that systemd-gpt-aut should be allowed open access on the sda blk_file 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:
# 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:fixed_disk_device_t:s0
Target Objects                /dev/sda [ 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-178.fc25.noarch selinux-
                              policy-3.13.1-179.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.5.0-1.fc25.x86_64 #1 SMP Mon Mar
                              14 16:59:49 UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-03-21 12:31:47 CET
Last Seen                     2016-03-21 12:31:47 CET
Local ID                      113c12c6-f8d7-40cf-a5bb-82235b1c567a

Raw Audit Messages
type=AVC msg=audit(1458559907.510:667): avc:  denied  { open } for  pid=23997 comm="systemd-gpt-aut" path="/dev/sda" dev="devtmpfs" ino=1194 scontext=system_u:system_r:systemd_gpt_generator_t:s0 tcontext=system_u:object_r:fixed_disk_device_t:s0 tclass=blk_file permissive=1


Hash: systemd-gpt-aut,systemd_gpt_generator_t,fixed_disk_device_t,blk_file,open

Version-Release number of selected component:
selinux-policy-3.13.1-178.fc25.noarch
selinux-policy-3.13.1-179.fc25.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.5.0-1.fc25.x86_64
type:           libreport

Potential duplicate: bug 1317174


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