Bug 1988139 - SELinux is preventing firewalld from using the 'setpcap' capabilities.
Summary: SELinux is preventing firewalld from using the 'setpcap' capabilities.
Keywords:
Status: CLOSED DUPLICATE of bug 1985494
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:072909c4dd916fd613be1948b48...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-29 20:31 UTC by Mikhail
Modified: 2021-07-30 07:46 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-30 07:46:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2021-07-29 20:31:57 UTC
Description of problem:
SELinux is preventing firewalld from using the 'setpcap' capabilities.

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

If you believe that firewalld should have the setpcap 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-targeted-34.14-2.fc35.noarch
Local Policy RPM              selinux-policy-targeted-34.14-2.fc35.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.14.0-
                              0.rc3.20210728git7d549995d4e0.31.fc35.x86_64 #1
                              SMP Wed Jul 28 16:15:57 UTC 2021 x86_64 x86_64
Alert Count                   1
First Seen                    2021-07-30 00:31:11 +05
Last Seen                     2021-07-30 00:31:11 +05
Local ID                      dee115b3-beb6-41d4-80be-aacb53221865

Raw Audit Messages
type=AVC msg=audit(1627587071.746:165): avc:  denied  { setpcap } for  pid=1267 comm="firewalld" capability=8  scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:system_r:firewalld_t:s0 tclass=capability permissive=1


Hash: firewalld,firewalld_t,firewalld_t,capability,setpcap

Version-Release number of selected component:
selinux-policy-targeted-34.14-2.fc35.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.15.2
hashmarkername: setroubleshoot
kernel:         5.14.0-0.rc3.20210728git7d549995d4e0.31.fc35.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2021-07-30 07:46:47 UTC

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


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