Bug 1622111

Summary: SELinux is preventing ebtables from 'getopt' accesses on the rawip_socket labeled firewalld_t.
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:3f7b8e3d50b561e82705e3ced3eb9cd9ab0650e52d03d98810acdc10b1a9315a;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-27 22:56:47 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 2018-08-24 13:25:46 UTC
Description of problem:
On clean boot
SELinux is preventing ebtables from 'getopt' accesses on the rawip_socket labeled firewalld_t.

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

Si vous pensez que ebtables devrait être autorisé à accéder getopt sur Unknown rawip_socket 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 :
# 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 [ rawip_socket ]
Source                        ebtables
Source Path                   ebtables
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.2-32.fc29.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.19.0-0.rc0.git10.1.fc30.x86_64
                              #1 SMP Thu Aug 23 14:22:05 UTC 2018 x86_64 x86_64
Alert Count                   1
First Seen                    2018-08-24 15:33:07 CEST
Last Seen                     2018-08-24 15:33:07 CEST
Local ID                      c932c15e-f28e-47d9-9c98-de79ddf4e50b

Raw Audit Messages
type=AVC msg=audit(1535117587.440:127): avc:  denied  { getopt } for  pid=889 comm="ebtables" lport=2 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:system_r:firewalld_t:s0 tclass=rawip_socket permissive=1


Hash: ebtables,firewalld_t,firewalld_t,rawip_socket,getopt

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

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.19.0-0.rc0.git10.1.fc30.x86_64
type:           libreport

Potential duplicate: bug 1608029

Comment 1 Lukas Vrabec 2018-08-27 22:56:47 UTC

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