Bug 1322116 - SELinux is preventing systemd-gpt-aut from 'create' accesses on the file dev-sda2.swap.
Summary: SELinux is preventing systemd-gpt-aut from 'create' accesses on the file dev-...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 24
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:02afaa5750d422c9c6d9e97525b...
: 1319448 1322114 1322115 1322117 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-29 20:26 UTC by Mikhail
Modified: 2016-04-09 20:17 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.13.1-180.fc24
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-09 20:17:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2016-03-29 20:26:31 UTC
Description of problem:
SELinux is preventing systemd-gpt-aut from 'create' accesses on the file dev-sda2.swap.

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

If you believe that systemd-gpt-aut should be allowed create access on the dev-sda2.swap 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:systemd_unit_file_t:s0
Target Objects                dev-sda2.swap [ 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-179.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                   6
First Seen                    2016-03-30 01:08:06 YEKT
Last Seen                     2016-03-30 01:23:52 YEKT
Local ID                      7970050e-13c1-4fa6-bd0c-103443f0cfd0

Raw Audit Messages
type=AVC msg=audit(1459283032.126:411): avc:  denied  { create } for  pid=3861 comm="systemd-gpt-aut" name="dev-sda2.swap" scontext=system_u:system_r:systemd_gpt_generator_t:s0 tcontext=system_u:object_r:systemd_unit_file_t:s0 tclass=file permissive=1


Hash: systemd-gpt-aut,systemd_gpt_generator_t,systemd_unit_file_t,file,create

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

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.5.0-0.rc7.git0.2.fc24.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2016-03-29 22:34:32 UTC
*** Bug 1322117 has been marked as a duplicate of this bug. ***

Comment 2 Lukas Vrabec 2016-03-29 22:34:58 UTC
*** Bug 1319448 has been marked as a duplicate of this bug. ***

Comment 3 Lukas Vrabec 2016-03-29 22:35:09 UTC
*** Bug 1322114 has been marked as a duplicate of this bug. ***

Comment 4 Lukas Vrabec 2016-03-29 22:35:24 UTC
*** Bug 1322115 has been marked as a duplicate of this bug. ***

Comment 5 Lukas Vrabec 2016-03-30 10:25:29 UTC
commit 72f5896809f308ad30374dc85c6b5cacd465419c
Author: Lukas Vrabec <lvrabec>
Date:   Wed Mar 30 00:45:26 2016 +0200

    Allow systemd-gpt-generator to create and manage
    systemd gpt generator unit files. BZ(1319446)

Comment 6 Fedora Update System 2016-03-30 14:07:18 UTC
selinux-policy-3.13.1-180.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-ffb5ed99b4

Comment 7 Fedora Update System 2016-03-30 22:25:23 UTC
selinux-policy-3.13.1-180.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-ffb5ed99b4

Comment 8 Fedora Update System 2016-04-09 20:17:22 UTC
selinux-policy-3.13.1-180.fc24 has been pushed to the Fedora 24 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.