Bug 1608028

Summary: SELinux is preventing ebtables from using the 'net_raw' capabilities.
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: ardillon.42, dwalsh, flast, lvrabec, mgrepl, nicolas.mailhot, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:3c1c84b67f32280291c1c53499cf89bd271e46687d2bc9dbe22c8c9387f111ac;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-3.14.2-34.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-12 03:00:35 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 Mikhail 2018-07-24 19:13:01 UTC
Description of problem:
SELinux is preventing ebtables from using the 'net_raw' capabilities.

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

If you believe that ebtables should have the net_raw capability 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 'ebtables' --raw | audit2allow -M my-ebtables
# semodule -X 300 -i my-ebtables.pp

Additional Information:
Source Context                system_u:system_r:firewalld_t:s0
Target Context                system_u:system_r:firewalld_t:s0
Target Objects                Unknown [ capability ]
Source                        ebtables
Source Path                   ebtables
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.2-28.fc29.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.18.0-0.rc5.git4.1.fc29.x86_64 #1
                              SMP Fri Jul 20 17:00:15 UTC 2018 x86_64 x86_64
Alert Count                   4
First Seen                    2018-07-24 18:59:39 +05
Last Seen                     2018-07-24 18:59:39 +05
Local ID                      d7f17130-ad73-4a92-a412-67795569a825

Raw Audit Messages
type=AVC msg=audit(1532440779.939:155): avc:  denied  { net_raw } for  pid=1088 comm="ebtables" capability=13  scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:system_r:firewalld_t:s0 tclass=capability permissive=1


Hash: ebtables,firewalld_t,firewalld_t,capability,net_raw

Version-Release number of selected component:
selinux-policy-3.14.2-28.fc29.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.18.0-0.rc5.git4.1.fc29.x86_64
type:           libreport

Comment 1 Jan Kurik 2018-08-14 11:16:11 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle.
Changing version to '29'.

Comment 2 Lukas Vrabec 2018-08-27 22:49:03 UTC
*** Bug 1622117 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Update System 2018-09-11 12:53:56 UTC
selinux-policy-3.14.2-34.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-db240a1726

Comment 4 Fedora Update System 2018-09-12 03:00:35 UTC
selinux-policy-3.14.2-34.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.