Bug 1319446

Summary: SELinux is preventing systemd-gpt-aut from 'create' accesses on the lnk_file dev-sda6.swap.
Product: [Fedora] Fedora Reporter: Kohei Takahashi <flast>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: dominick.grift, dwalsh, lvrabec, mgrepl, mikhail.v.gavrilov, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e00036a51bb833228ca9e6c3869868cbbccd3569eed86534fee1c91d24802759;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-3.13.1-180.fc25 selinux-policy-3.13.1-208.fc25 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-17 03:04:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Kohei Takahashi 2016-03-20 07:47:45 UTC
Description of problem:
SELinux is preventing systemd-gpt-aut from 'create' accesses on the lnk_file dev-sda6.swap.

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

If systemd-gpt-aut に、 dev-sda6.swap lnk_file の create アクセスがデフォルトで許可されるべきです。   
Then バグとして報告してください。 
ローカルのポリシーモジュールを生成すると、
 このアクセスを許可することができます。
Do
このアクセスを一時的に許可するには、以下を実行してください。
# 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-sda6.swap [ lnk_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.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.6.0-0.rc0.git5.1.fc25.x86_64 #1
                              SMP Wed Mar 16 23:42:51 UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-03-20 16:47:06 JST
Last Seen                     2016-03-20 16:47:06 JST
Local ID                      5978f504-c6d8-424d-93a7-eb083123b7e6

Raw Audit Messages
type=AVC msg=audit(1458460026.536:527): avc:  denied  { create } for  pid=5503 comm="systemd-gpt-aut" name="dev-sda6.swap" scontext=system_u:system_r:systemd_gpt_generator_t:s0 tcontext=system_u:object_r:systemd_unit_file_t:s0 tclass=lnk_file permissive=1


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

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

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.6.0-0.rc0.git5.1.fc25.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2016-03-29 21:51:15 UTC
*** Bug 1322112 has been marked as a duplicate of this bug. ***

Comment 2 Lukas Vrabec 2016-03-30 10:24:38 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 3 Jan Kurik 2016-07-26 04:44:09 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 4 Fedora Update System 2016-08-12 15:57:01 UTC
selinux-policy-3.13.1-208.fc25 has been pushed to the Fedora 25 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-662487f8f1

Comment 5 Fedora Update System 2016-08-17 03:02:32 UTC
selinux-policy-3.13.1-208.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.