Bug 1988138 - SELinux is preventing firewalld from using the 'setcap' accesses on a process.
Summary: SELinux is preventing firewalld from using the 'setcap' accesses on a process.
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:e709e2a7fee40a27c54b65bbe3e...
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:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2021-07-29 20:31:32 UTC
Description of problem:
SELinux is preventing firewalld from using the 'setcap' accesses on a process.

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

If you believe that firewalld should be allowed setcap access on processes labeled firewalld_t 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 [ process ]
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                      497541fb-40d2-40e9-b1ef-ebce463fb7ab

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


Hash: firewalld,firewalld_t,firewalld_t,process,setcap

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:40 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.