Bug 1386933

Summary: SELinux is preventing nmbd from using the 'net_admin' capabilities.
Product: [Fedora] Fedora Reporter: Juan Orti <jorti>
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, hx, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:354974a907a8b45b4f3ab199210145fe8f30a673361422886513f7f52034f12d;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-07 21:37:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Juan Orti 2016-10-19 21:21:30 UTC
Description of problem:
SELinux is preventing nmbd from using the 'net_admin' capabilities.

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

If cree que nmbd debería tener la capacidad net_admin de forma predeterminada.
Then debería reportar esto como un error.
Puede generar un módulo de política local para permitir este acceso.
Do
allow this access for now by executing:
# ausearch -c 'nmbd' --raw | audit2allow -M my-nmbd
# semodule -X 300 -i my-nmbd.pp

Additional Information:
Source Context                system_u:system_r:nmbd_t:s0
Target Context                system_u:system_r:nmbd_t:s0
Target Objects                Unknown [ capability ]
Source                        nmbd
Source Path                   nmbd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-219.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.1-1.fc25.x86_64 #1 SMP Fri Oct
                              7 14:38:22 UTC 2016 x86_64 x86_64
Alert Count                   91
First Seen                    2016-10-13 19:54:20 CEST
Last Seen                     2016-10-19 21:16:12 CEST
Local ID                      129edc45-8659-4c55-a4ab-79a2d3d2834e

Raw Audit Messages
type=AVC msg=audit(1476904572.901:230): avc:  denied  { net_admin } for  pid=1386 comm="nmbd" capability=12  scontext=system_u:system_r:nmbd_t:s0 tcontext=system_u:system_r:nmbd_t:s0 tclass=capability permissive=0


Hash: nmbd,nmbd_t,nmbd_t,capability,net_admin

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

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.1-1.fc25.x86_64
type:           libreport

Potential duplicate: bug 1341722

Comment 1 Lukas Vrabec 2016-11-07 21:37:53 UTC

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