Bug 1323454

Summary: SELinux is preventing systemd-gpt-aut from using the 'sys_rawio' capabilities.
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 24CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e350226415285639e915300fcf3a973024bdd47f9ac7d89387809d13ca786583;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-3.13.1-182.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-19 20:32:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nicolas Mailhot 2016-04-03 09:16:57 UTC
Description of problem:
SELinux is preventing systemd-gpt-aut from using the 'sys_rawio' capabilities.

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

If vous pensez que systemd-gpt-aut devrait avoir des capacités sys_rawio 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:system_r:systemd_gpt_generator_t:s0
Target Objects                Unknown [ capability ]
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                   12
First Seen                    2016-03-22 19:56:16 CET
Last Seen                     2016-04-02 12:38:10 CEST
Local ID                      fae36d13-88ef-4874-81b1-740c939ac260

Raw Audit Messages
type=AVC msg=audit(1459593490.626:473): avc:  denied  { sys_rawio } for  pid=19954 comm="systemd-gpt-aut" capability=17  scontext=system_u:system_r:systemd_gpt_generator_t:s0 tcontext=system_u:system_r:systemd_gpt_generator_t:s0 tclass=capability permissive=1


Hash: systemd-gpt-aut,systemd_gpt_generator_t,systemd_gpt_generator_t,capability,sys_rawio

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 Fedora Update System 2016-04-11 11:05:03 UTC
selinux-policy-3.13.1-182.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-a04caa95a2

Comment 2 Fedora Update System 2016-04-12 10:54:12 UTC
selinux-policy-3.13.1-182.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-a04caa95a2

Comment 3 Fedora Update System 2016-04-19 20:32:01 UTC
selinux-policy-3.13.1-182.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.