Bug 1816869

Summary: SELinux is preventing firewalld from using the 'sys_nice' capabilities.
Product: [Fedora] Fedora Reporter: Ankur Sinha (FranciscoD) <sanjay.ankur>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 32CC: dwalsh, grepl.miroslav, lvrabec, makruiten, plautrba, rafiki21.21.21, ttomasz, vmojzis, zpytela
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:522a55dffd978f5c78fb8a7fb48d745f19cfc6e9dd8739ec573ea515e9de0ee7;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-25 16:06:25 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 Ankur Sinha (FranciscoD) 2020-03-24 22:39:49 UTC
Description of problem:
SELinux is preventing firewalld from using the 'sys_nice' capabilities.

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

If you believe that firewalld should have the sys_nice 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 '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                system_u:system_r:firewalld_t:s0
Target Objects                Unknown [ capability ]
Source                        firewalld
Source Path                   firewalld
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-3.14.5-31.fc32.noarch
Local Policy RPM              selinux-policy-targeted-3.14.5-31.fc32.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.6.0-0.rc7.git0.2.fc32.x86_64 #1
                              SMP Mon Mar 23 18:38:45 UTC 2020 x86_64 x86_64
Alert Count                   1
First Seen                    2020-03-24 22:36:31 GMT
Last Seen                     2020-03-24 22:36:31 GMT
Local ID                      c1ed5551-89da-4bb4-a56f-cd2735696a12

Raw Audit Messages
type=AVC msg=audit(1585089391.974:641): avc:  denied  { sys_nice } for  pid=775 comm="firewalld" capability=23  scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:system_r:firewalld_t:s0 tclass=capability permissive=0


Hash: firewalld,firewalld_t,firewalld_t,capability,sys_nice

Version-Release number of selected component:
selinux-policy-3.14.5-31.fc32.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.12.0
hashmarkername: setroubleshoot
kernel:         5.6.0-0.rc7.git0.2.fc32.x86_64
type:           libreport

Potential duplicate: bug 1812165

Comment 1 Zdenek Pytela 2020-03-25 16:06:25 UTC

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

Comment 2 Rafa 2020-04-30 00:28:25 UTC
*** Bug 1829643 has been marked as a duplicate of this bug. ***