Bug 2102538

Summary: SELinux is preventing firewalld from 'read' accesses on the file /sys/devices/system/cpu/possible.
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, grepl.miroslav, lvrabec, mmalik, omosnace, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:ee39ac46d8147136228d9e68546b4a670680ec293486a27e4c616da557bf220e;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-30 08:20:24 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:
Attachments:
Description Flags
list of upgraded packages none

Description Mikhail 2022-06-30 07:34:09 UTC
Description of problem:
This happened while I upgrading packages.
SELinux is preventing firewalld from 'read' accesses on the file /sys/devices/system/cpu/possible.

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

If you believe that firewalld should be allowed read access on the possible file 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:object_r:sysfs_t:s0
Target Objects                /sys/devices/system/cpu/possible [ file ]
Source                        firewalld
Source Path                   firewalld
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-37.5-1.fc37.noarch
Local Policy RPM              selinux-policy-targeted-37.5-1.fc37.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              5.19.0-0.rc0.20220525gitfdaf9a5840ac.2.fc37.x86_64
                              #1 SMP PREEMPT_DYNAMIC Wed May 25 21:41:55 UTC
                              2022 x86_64 x86_64
Alert Count                   1
First Seen                    2022-06-30 12:30:53 +05
Last Seen                     2022-06-30 12:30:53 +05
Local ID                      4a1c3dfb-5dc8-41b2-8e26-1ece159b48af

Raw Audit Messages
type=AVC msg=audit(1656574253.237:499): avc:  denied  { read } for  pid=92528 comm="firewalld" name="possible" dev="sysfs" ino=46 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=file permissive=0


Hash: firewalld,firewalld_t,sysfs_t,file,read

Version-Release number of selected component:
selinux-policy-targeted-37.5-1.fc37.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.17.1
hashmarkername: setroubleshoot
kernel:         5.19.0-0.rc0.20220525gitfdaf9a5840ac.2.fc37.x86_64
type:           libreport

Comment 1 Mikhail 2022-06-30 07:36:28 UTC
Created attachment 1893554 [details]
list of upgraded packages

Comment 2 Zdenek Pytela 2022-06-30 08:20:24 UTC

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