Bug 1404956 - SELinux is preventing firewalld from 'relabelto' accesses on the file ifcfg-br0.bak.
Summary: SELinux is preventing firewalld from 'relabelto' accesses on the file ifcfg-b...
Keywords:
Status: CLOSED DUPLICATE of bug 1469806
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c72888503d7256c35f245aa02dc...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-15 08:36 UTC by Pawel Zaskorski
Modified: 2017-10-02 09:43 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-10-02 09:43:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.