Bug 1404956

Summary: SELinux is preventing firewalld from 'relabelto' accesses on the file ifcfg-br0.bak.
Product: [Fedora] Fedora Reporter: Pawel Zaskorski <p.zaskorski>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: dominick.grift, dwalsh, lvrabec, mgrepl, okrh, plautrba, pmoore, samuel.rakitnican, ssekidde
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:c72888503d7256c35f245aa02dc62714b067dd579b221462a79f28919b902018;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-02 09:43:51 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 Pawel Zaskorski 2016-12-15 08:36:03 UTC
Description of problem:
SELinux is preventing firewalld from 'relabelto' accesses on the file ifcfg-br0.bak.

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

If you believe that firewalld should be allowed relabelto access on the ifcfg-br0.bak 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:
# ausearch -c 'firewalld' --raw | audit2allow -M my-firewalld
# semodule -X 300 -i my-firewalld.pp

Additional Information:
Source Context                system_u:system_r:firewalld_t:s0
Target Context                unconfined_u:object_r:net_conf_t:s0
Target Objects                ifcfg-br0.bak [ file ]
Source                        firewalld
Source Path                   firewalld
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-225.3.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.8-300.fc25.x86_64 #1 SMP Tue
                              Nov 15 18:10:06 UTC 2016 x86_64 x86_64
Alert Count                   2
First Seen                    2016-12-15 09:34:54 CET
Last Seen                     2016-12-15 09:35:00 CET
Local ID                      428fda35-f54a-4cc6-aa99-c6b8729de7af

Raw Audit Messages
type=AVC msg=audit(1481790900.227:2612): avc:  denied  { relabelto } for  pid=13529 comm="firewalld" name="ifcfg-br0.bak" dev="dm-2" ino=374314 scontext=system_u:system_r:firewalld_t:s0 tcontext=unconfined_u:object_r:net_conf_t:s0 tclass=file permissive=0


Hash: firewalld,firewalld_t,net_conf_t,file,relabelto

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

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.8-300.fc25.x86_64
type:           libreport

Potential duplicate: bug 1364992

Comment 1 srakitnican 2017-06-19 17:15:52 UTC
Description of problem:
Something is making ifcfg-br0.bak file probably on upgrade, which gives this error. I am pretty sure I was not made this file since I've removed it last time. Either selinux should allow this or something has to clean up by itself.

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

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.11.3-202.fc25.x86_64
type:           libreport

Comment 2 John Freed 2017-10-01 16:41:26 UTC
Also seeing this on FC26

selinux-policy-3.13.1-260.3.fc26.noarch

Comment 3 Lukas Vrabec 2017-10-02 09:43:51 UTC

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