Bug 1319448

Summary: SELinux is preventing systemd-gpt-aut from 'write' accesses on the directory generator.late.
Product: [Fedora] Fedora Reporter: Kohei Takahashi <flast>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, lvrabec, mgrepl, mikhail.v.gavrilov, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:23e242a37449df66928e90d979892ff61868da0f051f8bc8bfde3f76b617651c;VARIANT_ID=workstation;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-29 22:34:58 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:50:09 UTC
Description of problem:
SELinux is preventing systemd-gpt-aut from 'write' accesses on the directory generator.late.

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

If systemd-gpt-aut に、 generator.late directory の write アクセスがデフォルトで許可されるべきです。   
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                generator.late [ dir ]
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                      d4c25d29-1a72-42bb-8e59-ce594b3d675c

Raw Audit Messages
type=AVC msg=audit(1458460026.534:521): avc:  denied  { write } for  pid=5503 comm="systemd-gpt-aut" name="generator.late" dev="tmpfs" ino=168859 scontext=system_u:system_r:systemd_gpt_generator_t:s0 tcontext=system_u:object_r:systemd_unit_file_t:s0 tclass=dir permissive=1


Hash: systemd-gpt-aut,systemd_gpt_generator_t,systemd_unit_file_t,dir,write

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:55:37 UTC
*** Bug 1322118 has been marked as a duplicate of this bug. ***

Comment 2 Lukas Vrabec 2016-03-29 22:34:58 UTC

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